diff --git a/hosts/nixos-unstable/configuration.nix b/hosts/nixos-unstable/configuration.nix index 0cf9a1f..d3ff778 100644 --- a/hosts/nixos-unstable/configuration.nix +++ b/hosts/nixos-unstable/configuration.nix @@ -13,14 +13,6 @@ # Set your time zone. time.timeZone = "Europe/Amsterdam"; - # Select internationalisation properties. - # i18n.defaultLocale = "en_US.UTF-8"; - # console = { - # font = "Lat2-Terminus16"; - # keyMap = "us"; - # useXkbConfig = true; # use xkb.options in tty. - # }; - # Define a user account. Don't forget to set a password with ‘passwd’. users.mutableUsers = false; users.users.root.hashedPassword = "$y$j9T$i4Yx7PqpLH9bPaNb4SVLm/$dv2gVHCHiRZv.Y00rbNx4QeIExunnfHp57WEnh8qLF1"; @@ -32,7 +24,25 @@ tree ]; }; + users.users.bob = { + isNormalUser = true; + createHome = false; + group = "builders"; + description = "Bob the builder"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPMChr3iWCl4ahoVsm/UyUQut9p0QIfqTsncsDkgBoRU carbon" + ]; + }; + + users.groups.builders = {}; + + nix.settings.trusted-users = [ "remotebuild" ]; + + services.nscd = { + enableNsncd = true; + workerThreads = 2; + }; environment.systemPackages = with pkgs; [ ];