fix: adapt local installer script

This commit is contained in:
Leon Schwarzäugl 2025-07-05 03:49:26 +02:00
parent b490763245
commit 4b439fd3e7
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
4 changed files with 27 additions and 78 deletions

View file

@ -1,4 +1,4 @@
{ self, inputs, config, pkgs, lib, ... }:
{ self, config, pkgs, lib, minimal, ... }:
let
mainUser = "demo";
sharedOptions = {
@ -7,7 +7,8 @@ let
isLinux = true;
isPublic = true;
profiles = {
chaostheatre = true;
chaostheatre = lib.mkIf (!minimal) true;
minimal = lib.mkIf minimal true;
};
};
in
@ -19,15 +20,6 @@ in
{
_module.args.diskDevice = config.swarselsystems.rootDisk;
}
"${self}/hosts/nixos/chaostheatre/options.nix"
inputs.home-manager.nixosModules.home-manager
{
home-manager.users."${mainUser}".imports = [
"${self}/modules/home/common/settings.nix"
"${self}/hosts/nixos/chaostheatre/options-home.nix"
"${self}/modules/home/common/sharedsetup.nix"
];
}
];
environment.variables = {
@ -57,6 +49,7 @@ in
isSwap = true;
swapSize = "4G";
rootDisk = "/dev/vda";
profiles.btrfs = true;
}
sharedOptions;