diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-11 13:02:39 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-11 13:03:02 +0100 |
commit | 9d646e6f7d501a39c5bf9e0e01a472adce82a0bf (patch) | |
tree | 0d311554cd44bf55f7a86205cf302e8bd9569c9b | |
parent | 614ddbb241e54aafd0f5dc7b05d7cec2363d2710 (diff) |
replace excessive configuration of users.eth with home-manager
Diffstat (limited to '')
-rw-r--r-- | nixos/modules/users/eth.nix | 48 |
1 files changed, 5 insertions, 43 deletions
diff --git a/nixos/modules/users/eth.nix b/nixos/modules/users/eth.nix index 0890443..0f13a5d 100644 --- a/nixos/modules/users/eth.nix +++ b/nixos/modules/users/eth.nix @@ -11,13 +11,17 @@ let direnv dnsutils file + git + gitAndTools.tig go htop iotop killall moreutils mosh + python3 rlwrap + screen tmux unzip vim @@ -25,51 +29,11 @@ let zip ]; - developmentPackages = with pkgs; [ - direnv - entr - git - gitAndTools.tig - goimports - html-tidy - imagemagick - jq - latest.rustChannels.stable.rust - nix-prefetch-git - pre-commit - python3 - screen - ]; - - guiPackages = with pkgs; [ - chromium - feh - firefox - mpv - mupdf - rxvt-unicode - vlc - wl-clipboard - ]; - in { options.eth.users.eth = { enable = mkEnableOption "Create the user eth"; - packages = { - development = mkOption { - type = types.bool; - default = false; - description = "install development packages (Go, Git, etc)"; - }; - gui = mkOption { - type = types.bool; - default = false; - description = "install GUI packages (Firefox, VLC, etc)"; - }; - }; - extraPackages = mkOption { type = types.listOf types.package; default = []; @@ -86,9 +50,7 @@ in { shell = pkgs.fish; - packages = defaultPackages ++ cfg.extraPackages - ++ (if cfg.packages.development then developmentPackages else []) - ++ (if cfg.packages.gui then guiPackages else []); + packages = defaultPackages ++ cfg.extraPackages; openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqcW3HzqQxPUjZteAs5HmDbCEAtHcThnj7qfJacEXBmpO5srinU3mhV/EhrqcAMkEoEIS2az2uQQEsF13nEqDD1uZh/Q7qwEnZepzElgBOIToQ+Np2qziRExV3ROBddJfmD3XBTPc7wA5BohYku+eCsfR37ZrRTgKUIALhZ4MSRxgQqnhtgaxHpL2Nk6ZdxRHO1ISlcmiWhOETP0fj76zN4+CgSv4rkPdYxKYpWVT8XTdKgu6ENbAPbOBzplui9MmrdS17ZaWy0KrKCiyMjhA5qSsOxWLXKL9P8lRuuXkWAl5cpt3vWWKAOzlLV1UCUbtlBblyH2KkeIKfO8AC45wX keychain@eth.moe" |