mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
20 lines
628 B
Nix
20 lines
628 B
Nix
# This is the main account for servers. It is also used for managing the
|
|
# installations with deploy-rs.
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
users.users.admin = {
|
|
description = "The administrator account for the servers.";
|
|
hashedPassword = "$6$KXZD6NvjtSkle/id$ECs7zIwDBOlQiFACsyot1gyjKG9UWMlUdRknVujE9efpHMQGx7.YZWyJ0VkV0ja0BPzeF/EzTu6n4EEF5ZHPD0";
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
useDefaultShell = true;
|
|
openssh.authorizedKeys.keyFiles = [
|
|
../../home-manager/foo-dogsquared/user-key.pub
|
|
../../../hosts/ni/host-key.pub
|
|
];
|
|
};
|
|
|
|
nix.settings.trusted-users = [ "admin" ];
|
|
}
|