summaryrefslogtreecommitdiff
path: root/nixos/modules
diff options
context:
space:
mode:
authorEthel Morgan <eth@ethulhu.co.uk>2020-07-01 21:22:29 +0100
committerEthel Morgan <eth@ethulhu.co.uk>2020-07-01 21:22:29 +0100
commit1449acf362d4c3362e7964f6e7c9d2ed51054211 (patch)
tree04824feda9aa3fd10c5dc80f5368d45e7e2fa3e4 /nixos/modules
parent069238aacb8b666fb507ae55ae56f57ea59f22c0 (diff)
user stuff
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/users/eth.nix20
1 files changed, 17 insertions, 3 deletions
diff --git a/nixos/modules/users/eth.nix b/nixos/modules/users/eth.nix
index 4ad6972..a7156b3 100644
--- a/nixos/modules/users/eth.nix
+++ b/nixos/modules/users/eth.nix
@@ -5,8 +5,9 @@ let
cfg = config.eth.users.eth;
defaultPackages = with pkgs; [
+ home-manager
+
ag
- direnv
dnsutils
file
go
@@ -17,29 +18,37 @@ let
mosh
rlwrap
tmux
+ unzip
vim
wget
+ 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
- latest.rustChannels.stable.rust
mpv
mupdf
rxvt-unicode
vlc
+ wl-clipboard
];
in {
@@ -70,11 +79,16 @@ in {
users.users.eth = mkIf cfg.enable {
isNormalUser = true;
- extraGroups = [ "wheel" ];
+
+ extraGroups = [ "dialout" "wheel" ] ++
+ (if config.programs.wireshark.enable then [ "wireshark" ] else []);
+
shell = pkgs.fish;
+
packages = defaultPackages ++ cfg.extraPackages
++ (if cfg.packages.development then developmentPackages else [])
++ (if cfg.packages.gui then guiPackages else []);
+
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqcW3HzqQxPUjZteAs5HmDbCEAtHcThnj7qfJacEXBmpO5srinU3mhV/EhrqcAMkEoEIS2az2uQQEsF13nEqDD1uZh/Q7qwEnZepzElgBOIToQ+Np2qziRExV3ROBddJfmD3XBTPc7wA5BohYku+eCsfR37ZrRTgKUIALhZ4MSRxgQqnhtgaxHpL2Nk6ZdxRHO1ISlcmiWhOETP0fj76zN4+CgSv4rkPdYxKYpWVT8XTdKgu6ENbAPbOBzplui9MmrdS17ZaWy0KrKCiyMjhA5qSsOxWLXKL9P8lRuuXkWAl5cpt3vWWKAOzlLV1UCUbtlBblyH2KkeIKfO8AC45wX keychain@eth.moe"
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGf+geluXR5/hxK2OthfS+bG+7QbUVqV25bslT4KgMid+zkOVeWfA49n8/iuXUjYZmB0hP9oiFkM1wjFfC5JtET1OX3V8r0nuexXfhvG4gtWIk6Yw5HfPLv1qYYti4SrPKgQlP+C2i6WjHO6Y4VWSpJkgXgO+XvEa57fGSsjcy3rV6l/B56tpIhNchvwVxm1gHJnb4eZAKtQYcz8Pven2TFNFGLMMzQ7Y7JWAH80TDrdUywxfktaKmswo4rQ6i3zUKXrzaPuaH+egoNLqfZqM3+Q92PWs8bU2Y7uxXUQJXD32KuStRUwEz32A+O55nVVGTrnwKUUqnx9H04KCYBOVP backup@eth.moe"