blob: c87a3d35f9d51a218af75a08eae9c24985cb9d98 (
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
|
{ lib, inputs, ... }:
let
gitKeys = builtins.fetchurl {
url = "https://github.com/kbujari.keys";
sha256 = "1kskbiyqvjz1wsmcrgh9v0iryf33y70zk503z0m96wmzdjllmc94";
};
inherit (inputs.nixos-hardware.nixosModules)
common-cpu-intel
common-gpu-intel
;
in
{
imports = [
common-cpu-intel
common-gpu-intel
./jellyfin.nix
./pxeboot.nix
];
system.stateVersion = "24.11";
networking.hostName = "radon";
users.users.root.initialPassword = "hello";
users.groups.media.gid = 2000;
boot.zfs.pools.radon.devNodes = "/dev/disk/by-id/";
boot.zfs.extraPools = [ "radon" ];
services.nfs.server.enable = true;
xnet = {
disk = {
enable = true;
device = "/dev/nvme0n1";
};
net = {
join = [ "plaza" ];
interface = "enp1s0";
sshd.enable = true;
};
nginx.enable = true;
gitServer = {
enable = true;
gitweb.enable = true;
keys = lib.splitString "\n" (builtins.readFile gitKeys);
};
};
}
|