test
This commit is contained in:
parent
d2c450943d
commit
b845b9f70f
2 changed files with 18 additions and 18 deletions
|
@ -21,7 +21,6 @@
|
||||||
hostname,
|
hostname,
|
||||||
username ? "albert",
|
username ? "albert",
|
||||||
desktop ? null,
|
desktop ? null,
|
||||||
installer ? null,
|
|
||||||
gpu ? null,
|
gpu ? null,
|
||||||
platform ? "x86_64-linux",
|
platform ? "x86_64-linux",
|
||||||
theme ? "default"
|
theme ? "default"
|
||||||
|
@ -31,33 +30,34 @@
|
||||||
../nixos
|
../nixos
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.lanzaboote.nixosModules.lanzaboote
|
inputs.lanzaboote.nixosModules.lanzaboote
|
||||||
] ++ (inputs.nixpkgs.lib.optionals (installer != null) [ installer ]);
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Combines mkHost and mkHome for image building
|
# Combines mkHost and mkHome for image building
|
||||||
mkImage = {
|
mkImage = {
|
||||||
hostname,
|
hostname,
|
||||||
username ? "albert",
|
username ? "albert",
|
||||||
desktop ? null,
|
desktop ? null,
|
||||||
platform ? "x86_64-linux",
|
platform ? "x86_64-linux",
|
||||||
installer ? null,
|
installer ? null,
|
||||||
gpu ? null,
|
gpu ? null,
|
||||||
theme ? "default"
|
theme ? "default"
|
||||||
}: inputs.nixpkgs.lib.nixosSystem {
|
}: inputs.nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu platform theme; };
|
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu platform theme; };
|
||||||
modules = [
|
modules = [
|
||||||
../nixos
|
../nixos
|
||||||
inputs.sops-nix.nixosModules.sops
|
installer
|
||||||
inputs.lanzaboote.nixosModules.lanzaboote
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.home-manager.nixosModules.home-manager {
|
inputs.lanzaboote.nixosModules.lanzaboote
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${platform};
|
inputs.home-manager.nixosModules.home-manager {
|
||||||
extraSpecialArgs = { inherit inputs outputs desktop hostname platform username hmStateVersion theme; };
|
pkgs = inputs.nixpkgs.legacyPackages.${platform};
|
||||||
modules = [
|
extraSpecialArgs = { inherit inputs outputs desktop hostname platform username hmStateVersion theme; };
|
||||||
../home-manager
|
modules = [
|
||||||
inputs.doom-emacs.hmModule
|
../home-manager
|
||||||
];
|
inputs.doom-emacs.hmModule
|
||||||
}
|
];
|
||||||
] ++ (inputs.nixpkgs.lib.optionals (installer != null) [ installer ]);
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
forAllSystems = inputs.nixpkgs.lib.genAttrs [
|
forAllSystems = inputs.nixpkgs.lib.genAttrs [
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Build this image with:
|
# Build this image with:
|
||||||
# nix build .#nixosConfigurations.nixos-rpi4-img.config.system.build.sdImage
|
# nix build .#nixosConfigurations.nixos-rpi4-img.config.system.build.sdImage
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||||
nixpkgs.buildPlatform.system = "${platform}";
|
nixpkgs.buildPlatform.system = "x86_64-linux";
|
||||||
networking.hostName = "nixos-rpi4-img";
|
networking.hostName = "nixos-rpi4-img";
|
||||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||||
}
|
}
|
Loading…
Reference in a new issue