feat: initial commit
This commit is contained in:
commit
428f2b7089
11 changed files with 608 additions and 0 deletions
29
modules/nixos/main-user.nix
Normal file
29
modules/nixos/main-user.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.main-user;
|
||||
in
|
||||
{
|
||||
options.main-user = {
|
||||
enable
|
||||
= lib.mkEnableOption "enable user module";
|
||||
|
||||
username = lib.mkOption {
|
||||
default = "mainuser";
|
||||
description = ''
|
||||
username
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.zsh.enable = true;
|
||||
users.users.${cfg.username} = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "12345";
|
||||
extraGroups = [ "input" "networkmanager" "wheel" ];
|
||||
description = "Stefan";
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue