This commit is contained in:
iFargle 2023-09-19 08:45:25 +09:00
parent 81bcb54092
commit 694a8282f7
2 changed files with 17 additions and 6 deletions

View file

@ -40,7 +40,6 @@
"albert@nixos-rpi4-03" = libx.mkHome { hostname = "nixos-rpi4-03"; platform = "aarch64-linux"; }; "albert@nixos-rpi4-03" = libx.mkHome { hostname = "nixos-rpi4-03"; platform = "aarch64-linux"; };
}; };
imageConfigurations = { imageConfigurations = {
# Raspberry Pi 4 Image
nixos-rpi4-img = libx.mkImage { hostname = "nixos-rpi4-img"; platform = "aarch64-linux"; installer = nixpkgs + "/nixos/modules/installer/sd-card/sd-image-aarch64.nix"; }; nixos-rpi4-img = libx.mkImage { hostname = "nixos-rpi4-img"; platform = "aarch64-linux"; installer = nixpkgs + "/nixos/modules/installer/sd-card/sd-image-aarch64.nix"; };
}; };
}; };

View file

@ -43,11 +43,21 @@
installer ? null, installer ? null,
gpu ? null, gpu ? null,
theme ? "default" theme ? "default"
}: { }: inputs.nixpkgs.lib.nixosSystem {
libx = import . { inherit inputs outputs stateVersion hmStateVersion; };
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu platform theme; }; specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu platform theme; };
hostname = libx.mkHost { hostname = hostname; platform = platform; installer = installer; }; modules = [
"$username@$hostname" = libx.mkHome { hostname = hostname; platform = platform; }; ../nixos
inputs.sops-nix.nixosModules.sops
inputs.lanzaboote.nixosModules.lanzaboote
inputs.home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.${platform};
extraSpecialArgs = { inherit inputs outputs desktop hostname platform username hmStateVersion theme; };
modules = [
../home-manager
inputs.doom-emacs.hmModule
];
};
] ++ (inputs.nixpkgs.lib.optionals (installer != null) [ installer ]);
}; };
forAllSystems = inputs.nixpkgs.lib.genAttrs [ forAllSystems = inputs.nixpkgs.lib.genAttrs [
@ -58,3 +68,5 @@
"x86_64-darwin" "x86_64-darwin"
]; ];
} }
mkTest = {}: {};
nixosConfigurations