This commit is contained in:
iFargle 2023-09-19 09:30:44 +09:00
parent d2c450943d
commit b845b9f70f
2 changed files with 18 additions and 18 deletions

View file

@ -21,7 +21,6 @@
hostname,
username ? "albert",
desktop ? null,
installer ? null,
gpu ? null,
platform ? "x86_64-linux",
theme ? "default"
@ -31,7 +30,7 @@
../nixos
inputs.sops-nix.nixosModules.sops
inputs.lanzaboote.nixosModules.lanzaboote
] ++ (inputs.nixpkgs.lib.optionals (installer != null) [ installer ]);
];
};
# Combines mkHost and mkHome for image building
@ -47,6 +46,7 @@
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu platform theme; };
modules = [
../nixos
installer
inputs.sops-nix.nixosModules.sops
inputs.lanzaboote.nixosModules.lanzaboote
inputs.home-manager.nixosModules.home-manager {
@ -57,7 +57,7 @@
inputs.doom-emacs.hmModule
];
}
] ++ (inputs.nixpkgs.lib.optionals (installer != null) [ installer ]);
];
};
forAllSystems = inputs.nixpkgs.lib.genAttrs [

View file

@ -2,7 +2,7 @@
# Build this image with:
# nix build .#nixosConfigurations.nixos-rpi4-img.config.system.build.sdImage
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
nixpkgs.buildPlatform.system = "${platform}";
nixpkgs.buildPlatform.system = "x86_64-linux";
networking.hostName = "nixos-rpi4-img";
networking.firewall.allowedTCPPorts = [ 22 ];
}