test
This commit is contained in:
parent
81bcb54092
commit
694a8282f7
2 changed files with 17 additions and 6 deletions
|
@ -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"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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 [
|
||||||
|
@ -57,4 +67,6 @@
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
"x86_64-darwin"
|
"x86_64-darwin"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
mkTest = {}: {};
|
||||||
|
nixosConfigurations
|
Loading…
Reference in a new issue