blob: 21f06f734f6ccf919c74ad87cb7564ed8045a44b (
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
44
45
46
47
48
49
50
51
52
53
54
|
{
config,
pkgs,
...
}: {
imports = [
./hardware-configuration.nix
./miniflux.nix
./nginx.nix
./prometheus.nix
];
_module.args.nixinate = {
host = "atlas";
sshUser = "root";
buildOn = "remote";
substituteOnTarget = true;
hermetic = false;
};
boot = {
binfmt.emulatedSystems = ["x86_64-linux" "i686-linux"];
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
tmp.cleanOnBoot = true;
};
getchoo.server.secrets.enable = true;
networking = {
domain = "mydadleft.me";
hostName = "atlas";
};
nix.settings.allowed-users = ["bob"];
system.stateVersion = "23.05";
users.users = {
atlas = {
extraGroups = ["wheel"];
isNormalUser = true;
shell = pkgs.bash;
passwordFile = config.age.secrets.userPassword.path;
};
bob = {
isNormalUser = true;
shell = pkgs.bash;
};
};
zramSwap.enable = true;
}
|