diff options
Diffstat (limited to 'nixos/modules/system/users/default.nix')
| -rw-r--r-- | nixos/modules/system/users/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixos/modules/system/users/default.nix b/nixos/modules/system/users/default.nix new file mode 100644 index 0000000..042c055 --- /dev/null +++ b/nixos/modules/system/users/default.nix @@ -0,0 +1,34 @@ +{ pkgs, ... }: + +{ + users.users."seraphim" = { + isNormalUser = true; + description = "seraphim"; + shell = pkgs.fish; + extraGroups = [ "networkmanager" "wheel" ]; + packages = with pkgs; []; + }; + + security.doas = { + enable = true; + extraRules = [ + { + users = [ "seraphim" ]; + keepEnv = true; + persist = true; + } + ]; + }; + + programs.fish = { + enable = true; + interactiveShellInit = '' + set -g fish_greeting "" + fzf --fish | source + ''; + shellAliases = { + ls = "eza -al --icons=auto"; + ll = "eza -al --icons=auto"; + }; + }; +}
\ No newline at end of file |
