added user config
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1,3 @@
|
||||
.session
|
||||
/nixos.qcow2
|
||||
/result
|
||||
|
||||
@@ -3,7 +3,21 @@
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
||||
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