summaryrefslogtreecommitdiff
path: root/nixos/modules/users
diff options
context:
space:
mode:
authorEthel Morgan <eth@ethulhu.co.uk>2020-07-11 13:02:39 +0100
committerEthel Morgan <eth@ethulhu.co.uk>2020-07-11 13:03:02 +0100
commit9d646e6f7d501a39c5bf9e0e01a472adce82a0bf (patch)
tree0d311554cd44bf55f7a86205cf302e8bd9569c9b /nixos/modules/users
parent614ddbb241e54aafd0f5dc7b05d7cec2363d2710 (diff)
replace excessive configuration of users.eth with home-manager
Diffstat (limited to 'nixos/modules/users')
-rw-r--r--nixos/modules/users/eth.nix48
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"