From 598b90c2bcdf83c0e6d446718feaebc0c6c8b057 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Sun, 15 Dec 2019 00:06:28 -0700 Subject: [PATCH] add users subfolder to root --- configurations/hp500281.nix | 2 +- secrets/nrd | Bin 0 -> 129 bytes users/nrd.nix | 24 ++++++++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 secrets/nrd create mode 100644 users/nrd.nix diff --git a/configurations/hp500281.nix b/configurations/hp500281.nix index dfe6d39e..a58a9be0 100644 --- a/configurations/hp500281.nix +++ b/configurations/hp500281.nix @@ -4,7 +4,7 @@ let in { imports = [ - ../profiles/develop + ../users/nrd.nix ]; diff --git a/secrets/nrd b/secrets/nrd new file mode 100644 index 0000000000000000000000000000000000000000..1bc7413b434864d502e4040bfc4f72dfa21d050c GIT binary patch literal 129 zcmV-{0Dk`fM@dveQdv+`0F!zU2LCvL8v*mVACN$wTq$w1N7zl$SKg@LS#b82$WxZ| zDpivTPU~r)G@^0F}q(2*8vHSv$m_y`s%tQ j9gU?9lLquONIiJjYj-N2DO*6Nfr-}5OzaN}t0(`9Kh-{= literal 0 HcmV?d00001 diff --git a/users/nrd.nix b/users/nrd.nix new file mode 100644 index 00000000..ff15b2aa --- /dev/null +++ b/users/nrd.nix @@ -0,0 +1,24 @@ +{ lib, ... }: +let + inherit (lib) + fileContents + ; +in +{ + imports = [ + ../profiles/develop + ]; + + users.users.nrd = { + uid = 1000; + description = "Timothy DeHerrera"; + isNormalUser = true; + hashedPassword = fileContents ../secrets/nrd; + extraGroups = [ + "wheel" + "input" + "networkmanager" + "adbusers" + ]; + }; +}