added user

This commit is contained in:
2026-10-17 14:13:01 +01:00
parent a6b84cc417
commit af5bbd7a36
2 changed files with 13 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
flake.nixosConfigurations.host = inputs.nixpkgs.lib.nixosSystem { flake.nixosConfigurations.host = inputs.nixpkgs.lib.nixosSystem {
modules = with self.nixosModules; [ modules = with self.nixosModules; [
system system
user
]; ];
}; };
} }

12
modules/user.nix Normal file
View File

@@ -0,0 +1,12 @@
{...}: {
flake.nixosModules.user = {...}: {
users.users.user01 = {
isNormalUser = true;
initialPassword = "password";
extraGroups = [
"root"
"wheel"
];
};
};
}