summaryrefslogtreecommitdiff
path: root/hel.nix
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-09-04 19:26:25 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-09-04 19:26:25 +0200
commit9bd8491456db17d48639a11d2868632dd084ebc0 (patch)
tree9068e694a2019f348ef6d61a4eadeee48e1f479a /hel.nix
parent156473a609c35006f81bd7bdf68daf35bba03239 (diff)
downloadnixos-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.nix23
1 files changed, 21 insertions, 2 deletions
diff --git a/hel.nix b/hel.nix
index aa276f8f..533a6bc0 100644
--- a/hel.nix
+++ b/hel.nix
@@ -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" ];