blob: d8e4077638b02dce248844faa14c385a241738b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
config,
pkgs,
...
}: {
imports = [
./hardware-configuration.nix
];
_module.args.nixinate = {
host = "164.152.17.183";
sshUser = "root";
buildOn = "remote";
substituteOnTarget = true;
hermetic = false;
};
boot = {
cleanTmpDir = true;
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
};
networking.hostName = "atlas";
system.stateVersion = "22.11";
users.users = let
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMPV9wiDwXVyoVh347CAulkdGzG7+1m/rZ1aV5fk3BHM atlas [email protected]"
];
in {
root = {inherit openssh;};
atlas = {
extraGroups = ["wheel"];
isNormalUser = true;
shell = pkgs.bash;
passwordFile = config.age.secrets.userPassword.path;
inherit openssh;
};
};
zramSwap.enable = true;
}
|