diff options
| author | seraphim <18ycm9tx@anonaddy.me> | 2026-08-16 21:55:33 +0700 |
|---|---|---|
| committer | seraphim <18ycm9tx@anonaddy.me> | 2026-08-16 21:55:33 +0700 |
| commit | 7dd785b1005aec643004c06eaa7af690b00cb48f (patch) | |
| tree | bd8700ef4dfb8c0a1315f4eb41784d1d4ba43001 /nixos/modules/system/users/default.nix | |
| parent | 100094fe8b9398c083fa6351925a00f5b3a9d36a (diff) | |
.
Diffstat (limited to 'nixos/modules/system/users/default.nix')
| -rw-r--r-- | nixos/modules/system/users/default.nix | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/nixos/modules/system/users/default.nix b/nixos/modules/system/users/default.nix deleted file mode 100644 index d9ac254..0000000 --- a/nixos/modules/system/users/default.nix +++ /dev/null @@ -1,69 +0,0 @@ -{ pkgs, ... }: - -{ - # Main desktop user. - users.users."seraphim" = { - isNormalUser = true; - description = "seraphim"; - shell = pkgs.zsh; - # wheel for sudo/doas, networkmanager to manage connections itself. - extraGroups = [ "networkmanager" "wheel" ]; - packages = with pkgs; []; - }; - - # doas (simpler sudo replacement) - security.doas = { - enable = true; - # Give seraphim persistent passwordless-ish privileges, keeping the env. - extraRules = [ - { - users = [ "seraphim" ]; - keepEnv = true; - persist = true; - } - ]; - }; - - # fzf -- proper key bindings + completion for zsh. - programs.fzf = { - fuzzyCompletion = true; - keybindings = true; - }; - - # ZSH + completion, oh-my-zsh, autosuggestions. - programs.zsh = { - enable = true; - enableCompletion = true; - ohMyZsh.enable = true; - autosuggestions = { - enable = true; - highlightStyle = "fg=#6c7086"; - strategy = [ "history" "completion" ]; - }; - interactiveShellInit = '' - # Fish-style full-screen Ctrl+R history search. - export FZF_CTRL_R_OPTS=" - --layout=reverse - --scheme=history - --height=100% - --border=sharp - --border-label=' Ctrl+R ' - --highlight-line - --pointer=→ - --info=inline-right - --header-first - --header='enter: accept · ctrl-/ : toggle preview' - --preview='echo {}' --preview-window=down:3:hidden:wrap - --bind=ctrl-/:toggle-preview - " - ''; - shellAliases = { - ls = "eza -al --icons=auto"; - ll = "eza -al --icons=auto"; - fs = "fastfetch"; - hf = "hyfetch"; - sudo = "doas"; - open = "xdg-open"; - }; - }; -} |
