nix: pin nixpkgs to flake input globally and per-user
Alan Pearce alan@alanpearce.eu
Wed, 10 Apr 2024 18:50:02 +0200
5 files changed, 10 insertions(+), 1 deletions(-)
M flake.nix → flake.nix
@@ -42,6 +42,7 @@ in { nixosConfigurations.prefect = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; + specialArgs = { inherit inputs; }; modules = [ ./system/prefect.nix ] ++ (with nixos-hardware.nixosModules; [ @@ -54,10 +55,12 @@ ]); }; nixosConfigurations.nanopi = nixpkgs.lib.nixosSystem { system = utils.lib.system.aarch64-linux; + specialArgs = { inherit inputs; }; modules = [ ./nanopi.nix ]; }; darwinConfigurations.mba = darwin.lib.darwinSystem { system = utils.lib.system.aarch64-darwin; + specialArgs = { inherit inputs; }; modules = [ ./system/mba.nix ]; }; homeConfigurations."alan@mba" = mkHomeConfiguration {
M system/settings/configuration/nix.nix → system/settings/configuration/nix.nix
@@ -2,6 +2,9 @@ { config , pkgs , ... }: { + imports = [ + ../../../pin.nix + ]; nix = { settings = { cores = 0;
M system/settings/darwin.nix → system/settings/darwin.nix
@@ -3,6 +3,9 @@ , pkgs , lib , ... }: { + imports = [ + ../../pin.nix + ]; services.nix-daemon = { enable = true; enableSocketListener = true;
M user/settings/nix.nix → user/settings/nix.nix
@@ -3,7 +3,7 @@ , pkgs , ... }: { imports = [ - ./pin.nix + ../../pin.nix ]; nixpkgs.config = import ../config.nix; home.packages = with pkgs; [