Format with nixfmt
Change-Id: If9839d2c3308538ac8f3e166b69675d3b40bd7d9
diff --git a/host/users.nix b/host/users.nix
index 71dcea4..8dd142c 100644
--- a/host/users.nix
+++ b/host/users.nix
@@ -1,23 +1,32 @@
{ pkgs, ... }:
let
- createUser = { username, realname, founder = false, sudo = false, ... }: {
+ createUser = { username, realname, founder ? false, sudo ? false, ... }: {
description = realname;
- extraGroups = (
- (if founder then [ "founder" ] else [ ]) ++
- (if founder || sudo then [ "wheel" ] else [ ])
- );
+ extraGroups = ((if founder then [ "founder" ] else [ ])
+ ++ (if founder || sudo then [ "wheel" ] else [ ]));
isNormalUser = true;
openssh.authorizedKeys.keyFiles = [ "./sshKeys/${username}" ];
};
users = {
- "coded" = { realname = "Sam"; founder = true; };
- "minion" = { realname = "Skyler"; founder = true; };
- "pineapplefan" = { realname = "Ash"; founder = true; };
- "eek" = { realname = "Nexus"; sudo = true; };
+ "coded" = {
+ realname = "Sam";
+ founder = true;
+ };
+ "minion" = {
+ realname = "Skyler";
+ founder = true;
+ };
+ "pineapplefan" = {
+ realname = "Ash";
+ founder = true;
+ };
+ "eek" = {
+ realname = "Nexus";
+ sudo = true;
+ };
};
-in
-{
+in {
users = {
mutableUsers = false;
motd = ''
@@ -27,7 +36,9 @@
"${builtins.readFile ./texts/MOTD}"
'';
defaultUserShell = pkgs.zsh;
- users = builtins.mapAttrs (name: value: createUser { username = name; } // value) users;
+ users =
+ builtins.mapAttrs (name: value: createUser { username = name; } // value)
+ users;
groups = { };
};
}