From ab3093dca65fe624c2535a5215b4863b38421595 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 9 Sep 2017 15:14:27 +0200 Subject: Create user module --- modules/user.nix | 11 +++++++++++ satoshipad.nix | 1 + 2 files changed, 12 insertions(+) create mode 100644 modules/user.nix 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"; -- cgit 1.4.1