From e602d13a63f790f97010e2b9996f132cab2db827 Mon Sep 17 00:00:00 2001 From: cy Date: Fri, 24 Jan 2025 15:51:01 -0500 Subject: [PATCH] flake: output for pancake home Signed-off-by: cy --- flake.nix | 36 +++++++++++++----------- home/yt/{pancake.nix => raspberrypi.nix} | 2 +- 2 files changed, 20 insertions(+), 18 deletions(-) rename home/yt/{pancake.nix => raspberrypi.nix} (94%) diff --git a/flake.nix b/flake.nix index b0f9c7c..c3546c2 100644 --- a/flake.nix +++ b/flake.nix @@ -145,14 +145,16 @@ flake = let - pkgs = import nixpkgs { - config.allowUnfree = true; - system = "x86_64-linux"; - overlays = [ - inputs.niri.overlays.niri - inputs.rust-overlay.overlays.default - ] ++ import ./overlay; - }; + pkgsFor = + system: + import nixpkgs { + config.allowUnfree = true; + system = system; + overlays = [ + inputs.niri.overlays.niri + inputs.rust-overlay.overlays.default + ] ++ import ./overlay; + }; in { nixosConfigurations = @@ -164,7 +166,7 @@ specialArgs = { inherit inputs; }; modules = [ { - nixpkgs = { inherit pkgs; }; + nixpkgs.pkgs = pkgsFor "x86_64-linux"; } ./hosts/ytnix inputs.sops-nix.nixosModules.sops @@ -178,7 +180,7 @@ specialArgs = { inherit inputs; }; modules = [ { - nixpkgs = { inherit pkgs; }; + nixpkgs.pkgs = pkgsFor "x86_64-linux"; disabledModules = [ "services/web-servers/garage.nix" ]; @@ -194,7 +196,7 @@ specialArgs = { inherit inputs; }; modules = [ { - nixpkgs = { inherit pkgs; }; + nixpkgs.pkgs = pkgsFor "x86_64-linux"; } ./hosts/titan disko.nixosModules.disko @@ -209,7 +211,7 @@ in { "yt@ytnix" = lib.homeManagerConfiguration { - inherit pkgs; + pkgs = pkgsFor "x86_64-linux"; extraSpecialArgs = { inherit inputs; }; modules = [ ./home/yt/ytnix.nix @@ -219,7 +221,7 @@ }; "yt@chunk" = lib.homeManagerConfiguration { - inherit pkgs; + pkgs = pkgsFor "x86_64-linux"; extraSpecialArgs = { inherit inputs; }; modules = [ ./home/yt/chunk.nix @@ -227,17 +229,17 @@ ]; }; - "yt@pancake" = lib.homeManagerConfiguration { - inherit pkgs; + "yt@raspberrypi" = lib.homeManagerConfiguration { + pkgs = pkgsFor "aarch64-linux"; extraSpecialArgs = { inherit inputs; }; modules = [ - ./home/yt/chunk.nix + ./home/yt/raspberrypi.nix inputs.nixvim.homeManagerModules.nixvim ]; }; "codespace@codespace" = lib.homeManagerConfiguration { - inherit pkgs; + pkgs = pkgsFor "x86_64-linux"; extraSpecialArgs = { inherit inputs; }; modules = [ ./home/yt/codespace.nix diff --git a/home/yt/pancake.nix b/home/yt/raspberrypi.nix similarity index 94% rename from home/yt/pancake.nix rename to home/yt/raspberrypi.nix index 9bec866..cce3510 100644 --- a/home/yt/pancake.nix +++ b/home/yt/raspberrypi.nix @@ -16,6 +16,6 @@ systemd.user.startServices = "sd-switch"; home.packages = with pkgs; [ - attic-server + ]; }