added user config
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1,3 @@
|
|||||||
.session
|
.session
|
||||||
|
/nixos.qcow2
|
||||||
|
/result
|
||||||
|
|||||||
@@ -3,7 +3,21 @@
|
|||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
flake.nixosModules.core = {pkgs}: {
|
flake.nixosModules.core = {
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
modules = with self.nixosModules; [
|
||||||
|
userConfiguration
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
/etc/nixos/hardware-configuration.nix
|
||||||
|
]
|
||||||
|
++ modules;
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
15
modules/system/core/user.nix
Normal file
15
modules/system/core/user.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
self,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
flake.nixosModules.userConfiguration = {
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
users.users.user01 = {
|
||||||
|
initialPassword = "password";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user