summaryrefslogtreecommitdiff
path: root/nixos/modules/system/users/default.nix
diff options
context:
space:
mode:
authorseraphim <18ycm9tx@anonaddy.me>2026-07-29 22:09:05 +0700
committerseraphim <18ycm9tx@anonaddy.me>2026-07-29 22:09:05 +0700
commit73ddb338cd7542f9569a9ab5cb0481b4f0636710 (patch)
tree559d8c542d6e965e674a46c9451efc1cb80f203a /nixos/modules/system/users/default.nix
parentabd12d161f0aaac458abeb139556ea5ccc1fcae8 (diff)
.
Diffstat (limited to 'nixos/modules/system/users/default.nix')
-rw-r--r--nixos/modules/system/users/default.nix34
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