summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 15:14:27 +0200
committerAlan Pearce2017-09-09 16:49:30 +0200
commitab3093dca65fe624c2535a5215b4863b38421595 (patch)
tree8398786914ab7ffddac76ce72d596802d52808b4
parentcca3a69947eb84d79c5816648cc104ad9b55623f (diff)
downloadnixfiles-ab3093dca65fe624c2535a5215b4863b38421595.tar.lz
nixfiles-ab3093dca65fe624c2535a5215b4863b38421595.tar.zst
nixfiles-ab3093dca65fe624c2535a5215b4863b38421595.zip
Create user module
-rw-r--r--modules/user.nix11
-rw-r--r--satoshipad.nix1
2 files changed, 12 insertions, 0 deletions
diff --git a/modules/user.nix b/modules/user.nix
new file mode 100644
index 00000000..1b2b6747
--- /dev/null
+++ b/modules/user.nix
@@ -0,0 +1,11 @@
+{ config, pkgs, ... }:
+
+{ users.extraUsers.alan = {
+    description = "Alan Pearce";
+    isNormalUser = true;
+    extraGroups = [ "audio" "wheel" "adbusers" "docker" ];
+    shell = "/run/current-system/sw/bin/zsh";
+    home = "/home/alan";
+    uid = 1000;
+  };
+}
diff --git a/satoshipad.nix b/satoshipad.nix
index b5178ca1..3d97e5e9 100644
--- a/satoshipad.nix
+++ b/satoshipad.nix
@@ -21,6 +21,7 @@
     ./modules/bare-metal.nix
     ./modules/intel-gpu.nix
     ./modules/t470s.nix
+    ./modules/user.nix
   ];
 
   networking.hostName = "satoshipad";