diff --git a/nix/configuration.nix b/nix/configuration.nix index 1d94167..8b8fb58 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, inputs, ... }: { imports = @@ -15,8 +15,14 @@ "azure" = { }; }; - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + boot = { + loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; + cleanTmpDir = true; + kernelPackages = pkgs.linuxPackages_latest; + }; networking = { hostName = "ytnix"; @@ -301,4 +307,13 @@ }; }; }; + + nix.registry.nixpkgs.flake = inputs.nixpkgs; + + nix.gc = { + automatic = true; + dates = "19:00"; + persistent = true; + options = "--delete-older-than 60d"; + }; } diff --git a/nix/flake.lock b/nix/flake.lock index cf25dcd..2f5a6dc 100644 --- a/nix/flake.lock +++ b/nix/flake.lock @@ -28,11 +28,11 @@ ] }, "locked": { - "lastModified": 1732186149, - "narHash": "sha256-N9JGWe/T8BC0Tss2Cv30plvZUYoiRmykP7ZdY2on2b0=", + "lastModified": 1732575825, + "narHash": "sha256-xtt95+c7OUMoqZf4OvA/7AemiH3aVuWHQbErYQoPwFk=", "owner": "Mic92", "repo": "sops-nix", - "rev": "53c853fb1a7e4f25f68805ee25c83d5de18dc699", + "rev": "3433ea14fbd9e6671d0ff0dd45ed15ee4c156ffa", "type": "github" }, "original": { diff --git a/nix/flake.nix b/nix/flake.nix index 56714d9..45054a9 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -9,12 +9,13 @@ }; }; - outputs = { self, nixpkgs, sops-nix }: + outputs = { self, nixpkgs, sops-nix, ... }@inputs: let lib = nixpkgs.lib; in { nixosConfigurations = { ytnix = lib.nixosSystem { + specialArgs = { inherit inputs; }; system = "x86_64-linux"; modules = [ ./configuration.nix diff --git a/nix/hardware-configuration.nix b/nix/hardware-configuration.nix index 3277d8c..60d0719 100644 --- a/nix/hardware-configuration.nix +++ b/nix/hardware-configuration.nix @@ -4,10 +4,6 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ];