diff --git a/flake.nix b/flake.nix index c3546c2..77099f8 100644 --- a/flake.nix +++ b/flake.nix @@ -145,16 +145,14 @@ flake = let - pkgsFor = - system: - import nixpkgs { - config.allowUnfree = true; - system = system; - overlays = [ - inputs.niri.overlays.niri - inputs.rust-overlay.overlays.default - ] ++ import ./overlay; - }; + pkgs = import nixpkgs { + config.allowUnfree = true; + system = "x86_64-linux"; + overlays = [ + inputs.niri.overlays.niri + inputs.rust-overlay.overlays.default + ] ++ import ./overlay; + }; in { nixosConfigurations = @@ -166,7 +164,7 @@ specialArgs = { inherit inputs; }; modules = [ { - nixpkgs.pkgs = pkgsFor "x86_64-linux"; + nixpkgs = { inherit pkgs; }; } ./hosts/ytnix inputs.sops-nix.nixosModules.sops @@ -180,7 +178,7 @@ specialArgs = { inherit inputs; }; modules = [ { - nixpkgs.pkgs = pkgsFor "x86_64-linux"; + nixpkgs = { inherit pkgs; }; disabledModules = [ "services/web-servers/garage.nix" ]; @@ -196,7 +194,7 @@ specialArgs = { inherit inputs; }; modules = [ { - nixpkgs.pkgs = pkgsFor "x86_64-linux"; + nixpkgs = { inherit pkgs; }; } ./hosts/titan disko.nixosModules.disko @@ -211,7 +209,7 @@ in { "yt@ytnix" = lib.homeManagerConfiguration { - pkgs = pkgsFor "x86_64-linux"; + inherit pkgs; extraSpecialArgs = { inherit inputs; }; modules = [ ./home/yt/ytnix.nix @@ -221,7 +219,7 @@ }; "yt@chunk" = lib.homeManagerConfiguration { - pkgs = pkgsFor "x86_64-linux"; + inherit pkgs; extraSpecialArgs = { inherit inputs; }; modules = [ ./home/yt/chunk.nix @@ -229,17 +227,8 @@ ]; }; - "yt@raspberrypi" = lib.homeManagerConfiguration { - pkgs = pkgsFor "aarch64-linux"; - extraSpecialArgs = { inherit inputs; }; - modules = [ - ./home/yt/raspberrypi.nix - inputs.nixvim.homeManagerModules.nixvim - ]; - }; - "codespace@codespace" = lib.homeManagerConfiguration { - pkgs = pkgsFor "x86_64-linux"; + inherit pkgs; extraSpecialArgs = { inherit inputs; }; modules = [ ./home/yt/codespace.nix diff --git a/home/yt/raspberrypi.nix b/home/yt/pancake.nix similarity index 94% rename from home/yt/raspberrypi.nix rename to home/yt/pancake.nix index cce3510..9bec866 100644 --- a/home/yt/raspberrypi.nix +++ b/home/yt/pancake.nix @@ -16,6 +16,6 @@ systemd.user.startServices = "sd-switch"; home.packages = with pkgs; [ - + attic-server ]; }