diff --git a/flake.lock b/flake.lock index c8cd8a0c..cbc5482d 100644 --- a/flake.lock +++ b/flake.lock @@ -23,32 +23,32 @@ ] }, "locked": { - "lastModified": 1728041527, - "narHash": "sha256-03liqiJtk9UP7YQHW4r8MduKCK242FQzud8iWvvlK+o=", + "lastModified": 1726592409, + "narHash": "sha256-2Y6CDvD/BD43WLS77PHu6dUHbdUfFhuzkY8oJAecD/U=", "owner": "nix-community", "repo": "home-manager", - "rev": "509dbf8d45606b618e9ec3bbe4e936b7c5bc6c1e", + "rev": "2ab00f89dd3ecf8012f5090e6d7ca1a7ea30f594", "type": "github" }, "original": { "owner": "nix-community", - "ref": "master", + "ref": "release-24.05", "repo": "home-manager", "type": "github" } }, "nixpkgs": { "locked": { - "lastModified": 1728018373, - "narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=", + "lastModified": 1726447378, + "narHash": "sha256-2yV8nmYE1p9lfmLHhOCbYwQC/W8WYfGQABoGzJOb1JQ=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "bc947f541ae55e999ffdb4013441347d83b00feb", + "rev": "086b448a5d54fd117f4dc2dee55c9f0ff461bdc1", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-unstable", + "ref": "nixos-24.05", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 135a0d43..368e0d7c 100644 --- a/flake.nix +++ b/flake.nix @@ -2,11 +2,11 @@ description = "FunctionalHacker's NixOS config"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; nur.url = "github:nix-community/NUR"; home-manager = { - url = "github:nix-community/home-manager/master"; + url = "github:nix-community/home-manager/release-24.05"; inputs.nixpkgs.follows = "nixpkgs"; }; diff --git a/hosts/Mirkwood/configuration.nix b/hosts/Mirkwood/configuration.nix index 1bdd71de..5b38c22c 100644 --- a/hosts/Mirkwood/configuration.nix +++ b/hosts/Mirkwood/configuration.nix @@ -7,5 +7,11 @@ ]; networking.hostName = "Mirkwood"; - boot.initrd.kernelModules = [ "amdgpu" ]; + + boot = { + initrd = { + luks.devices."luks-cf2ca44e-d8d1-4ec8-a072-921f29ed693d".device = "/dev/disk/by-uuid/cf2ca44e-d8d1-4ec8-a072-921f29ed693d"; + kernelModules = [ "amdgpu" ]; + }; + }; } diff --git a/hosts/Shire/configuration.nix b/hosts/Shire/configuration.nix index b7c63027..baed44e5 100644 --- a/hosts/Shire/configuration.nix +++ b/hosts/Shire/configuration.nix @@ -1,4 +1,4 @@ -{ ... }: +{ config, ... }: { imports = [ @@ -9,13 +9,13 @@ networking.hostName = "Shire"; boot = { - kernelParams = [ + kernelParams = config.boot.kernelParams ++ [ "intel_idle.max_cstate=1" ]; - initrd = { - # Couldn't get unl0kr working yet - # unl0kr.enable = true; - # availableKernelModules = [ "hid-multitouch" "i2c-hid" "i2c-hid-acpi" "hid_generic" ]; - }; + initrd.unl0kr.enable = true; + + # Does not work with unl0kr now + # https://github.com/NixOS/nixpkgs/issues/291935 + plymouth.enable = false; }; } diff --git a/hosts/Shire/hardware-configuration.nix b/hosts/Shire/hardware-configuration.nix deleted file mode 100644 index fb2a3f70..00000000 --- a/hosts/Shire/hardware-configuration.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ config, lib, modulesPath, ... }: - -{ - imports = - [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ - "xhci_pci" - "usb_storage" - "usbhid" - "sd_mod" - "sdhci_acpi" - "hid-multitouch" - "i2c-hid" - "i2c-hid-acpi" - "hid_generic" - ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { - device = "/dev/disk/by-uuid/973c6741-8cca-4a19-a837-93d192e8c868"; - fsType = "ext4"; - }; - - boot.initrd.luks.devices."luks-8b12931e-b40d-4ad7-8cc1-ca25fcceb05b".device = "/dev/disk/by-uuid/8b12931e-b40d-4ad7-8cc1-ca25fcceb05b"; - - fileSystems."/boot" = - { - device = "/dev/disk/by-uuid/B63A-4E10"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; - - swapDevices = [ ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/users/functionalhacker/programs/zsh.nix b/users/functionalhacker/programs/zsh.nix index 5027d2a5..da8caea5 100644 --- a/users/functionalhacker/programs/zsh.nix +++ b/users/functionalhacker/programs/zsh.nix @@ -62,7 +62,7 @@ # Remove grc alias from forgit since it # collides with the grc colorizer - #unalias grc; + unalias grc; # Launch or attach zellij to existing session if logging in over ssh if [[ -z "$ZELLIJ" && -n "$SSH_CONNECTION" ]]; then