added user
This commit is contained in:
@@ -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
12
modules/user.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{...}: {
|
||||||
|
flake.nixosModules.user = {...}: {
|
||||||
|
users.users.user01 = {
|
||||||
|
isNormalUser = true;
|
||||||
|
initialPassword = "password";
|
||||||
|
extraGroups = [
|
||||||
|
"root"
|
||||||
|
"wheel"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user