Skip to content

Commit

Permalink
Update nixos to 24.05
Browse files Browse the repository at this point in the history
  • Loading branch information
yshym committed Sep 14, 2024
1 parent 93b03f5 commit 1cb770c
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 20 deletions.
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
inherit (flake-utils.lib) eachSystem;

supportedSystems = [ "aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux" ];
# NOTE `system` should be replaced with your current host system
system = "aarch64-darwin";
# NOTE `<system>` should be replaced with your current host system
system = "<system>";
pkgs = import nixpkgs {
inherit system;
overlays = [
Expand Down
2 changes: 1 addition & 1 deletion home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
++ (lib.my.mapModulesRec' ./modules import);
# HACK https://github.com/nix-community/home-manager/issues/2595
manual.manpages.enable = false;
home.stateVersion = "23.11";
home.stateVersion = "24.05";
}
4 changes: 2 additions & 2 deletions home/modules/editors/emacs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let
{ system = pkgs.stdenv.system; }).emacs29;
# emacsGit is a legacy package name
emacs-git = pkgs.emacsGit;
emacs = if pkgs.stdenv.isDarwin then emacs29 else pkgs.emacsPgtkGcc;
emacs = if pkgs.stdenv.isDarwin then emacs29 else emacsPgtk;
# emacs =
# if pkgs.stdenv.isDarwin then
# emacs-git.overrideAttrs
Expand All @@ -22,7 +22,7 @@ let
# ]);
# })
# else
# pkgs.emacsPgtkGcc;
# pkgs.emacsPgtk;
in
{
config = mkIf cfg.enable {
Expand Down
10 changes: 9 additions & 1 deletion home/modules/shell/mimi/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
{ config, lib, pkgs, ... }:

with lib;
let cfg = config.programs.mimi; in
let
cfg = config.programs.mimi;
xdg-utils = (import
(fetchTarball {
url = "https://github.com/abathur/nixpkgs/archive/fix_xdg-utils_mimisupport.tar.gz";
sha256 = "1agvcfkqpgy3h0cqh76zb643wvv368h3sk4dfahsnmf3g46d8szh";
})
{ system = pkgs.stdenv.system; }).xdg-utils;
in
{
options.programs.mimi = {
enable = mkEnableOption "Mimi";
Expand Down
13 changes: 12 additions & 1 deletion hosts/fl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ with lib.my; {
tmp.cleanOnBoot = true;
kernelPackages = pkgs.linuxPackages_6_6;
resumeDevice = "/dev/disk/by-label/swap";
kernelParams = [ "mem_sleep_default=deep" "usbcore.autosuspend=-1" "resume_offset=0" ];
kernelParams = [ "mem_sleep_default=deep" "usbcore.autosuspend=-1" ];
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
Expand All @@ -28,7 +28,16 @@ with lib.my; {
};

services = {
fwupd.enable = true;
geoclue2.enable = true;
logind = {
lidSwitch = "suspend-then-hibernate";
extraConfig = ''
HandlePowerKey=suspend-then-hibernate
IdleAction=suspend-then-hibernate
IdleActionSec=30m
'';
};
pipewire = {
enable = true;
alsa = {
Expand Down Expand Up @@ -97,6 +106,8 @@ with lib.my; {
};
};

systemd.sleep.extraConfig = "HibernateDelaySec=30s";

security = {
pam = {
yubico = {
Expand Down
2 changes: 1 addition & 1 deletion hosts/fl/hardware.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ config, inputs, lib, pkgs, modulesPath, ... }:

{
imports = [ inputs.nixos-hardware.nixosModules.framework (modulesPath + "/installer/scan/not-detected.nix") ];
imports = [ inputs.nixos-hardware.nixosModules.framework-11th-gen-intel (modulesPath + "/installer/scan/not-detected.nix") ];

boot = {
initrd = {
Expand Down
2 changes: 2 additions & 0 deletions hosts/fl/home/services/sway/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ in
{
config = {
wayland.windowManager.sway = {
# HACK https://github.com/nix-community/home-manager/issues/5311
checkConfig = false;
enable = true;
systemd.enable = true;
xwayland = false;
Expand Down
2 changes: 1 addition & 1 deletion hosts/fl/home/themes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ with pkgs; {
};
qt = {
enable = true;
platformTheme = "gtk";
platformTheme.name = "gtk";
};

home.packages = [ dconf bibata-cursors ];
Expand Down
4 changes: 2 additions & 2 deletions platforms/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ with pkgs; {

security = { sudo.wheelNeedsPassword = false; };

programs = { gnupg.agent.pinentryFlavor = "curses"; zsh.enable = true; };
programs = { gnupg.agent.pinentryPackage = pinentry; zsh.enable = true; };

services = { openssh = { enable = true; }; };

i18n.extraLocaleSettings = { LC_TIME = "en_GB.UTF-8"; };

system.stateVersion = "23.11";
system.stateVersion = "24.05";
}

0 comments on commit 1cb770c

Please sign in to comment.