Something went wrong. Try again.
A Nordic stronghold for declarative computing.
flakes nix nixos nix-darwin
Something went wrong. Try again.
Nix
at old-config
123456789101112131415161718192021222324{ self, ... }: { config.flake.factory.user = { username, isAdmin }: { nixosModules.${username} = { lib, ... }: let home = "/home/${username}"; in {
users.users.${username} = { isNormalUser = true; home = home; extraGroups = lib.optionals isAdmin [ "wheel" ]; }; };
darwinModules.${username} = { lib, ... }: let home = "/Users/${username}"; in {
users.users.${username} = { home = home; };
system.primaryUser = lib.mkIf isAdmin "${username}"; }; };}