feat(nixos-unstable): create build user 'bob'

This commit is contained in:
2025-08-08 20:36:18 +02:00
parent be1f305207
commit 2f806f21e5

View File

@@ -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; [
];