diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-09-04 19:26:25 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-09-04 19:26:25 +0200 |
commit | 9bd8491456db17d48639a11d2868632dd084ebc0 (patch) | |
tree | 9068e694a2019f348ef6d61a4eadeee48e1f479a /hel.nix | |
parent | 156473a609c35006f81bd7bdf68daf35bba03239 (diff) | |
download | nixos-9bd8491456db17d48639a11d2868632dd084ebc0.tar nixos-9bd8491456db17d48639a11d2868632dd084ebc0.tar.gz nixos-9bd8491456db17d48639a11d2868632dd084ebc0.tar.bz2 nixos-9bd8491456db17d48639a11d2868632dd084ebc0.tar.xz nixos-9bd8491456db17d48639a11d2868632dd084ebc0.zip |
media on hel
Diffstat (limited to 'hel.nix')
-rw-r--r-- | hel.nix | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -99,7 +99,17 @@ | |||
99 | HandleSuspendKey=sleep | 99 | HandleSuspendKey=sleep |
100 | ''; | 100 | ''; |
101 | 101 | ||
102 | openssh.enable = true; | 102 | openssh = { |
103 | enable = true; | ||
104 | extraConfig = '' | ||
105 | Match User media | ||
106 | ForceCommand ${pkgs.openssh}/libexec/sftp-server | ||
107 | PermitTTY no | ||
108 | AllowPortForwarding no | ||
109 | AllowX11Forwarding no | ||
110 | AllowAgentForwarding no | ||
111 | ''; | ||
112 | }; | ||
103 | 113 | ||
104 | xserver = { | 114 | xserver = { |
105 | enable = true; | 115 | enable = true; |
@@ -238,10 +248,19 @@ | |||
238 | 248 | ||
239 | extraUsers.root = { inherit (import ./users/gkleen.nix) shell hashedPassword; }; | 249 | extraUsers.root = { inherit (import ./users/gkleen.nix) shell hashedPassword; }; |
240 | 250 | ||
251 | extraUsers.media = { | ||
252 | group = "media"; | ||
253 | home = "/var/media"; | ||
254 | isSystemUser = true; | ||
255 | openssh.authorizedKeys.keyFiles = [ | ||
256 | users/keys/gkleen-media@hel.pub | ||
257 | ]; | ||
258 | }; | ||
259 | |||
241 | extraGroups = { | 260 | extraGroups = { |
242 | network = {}; | 261 | network = {}; |
243 | media = { | 262 | media = { |
244 | members = [ "gkleen" "uucp" ]; | 263 | members = [ "gkleen" "uucp" "media" ]; |
245 | }; | 264 | }; |
246 | networkmanager = { | 265 | networkmanager = { |
247 | members = [ "gkleen" ]; | 266 | members = [ "gkleen" ]; |