1
1
Fork 0

myne: update nixos config

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-10-08 21:30:49 -05:00
parent 74863d2a88
commit d73715998a
Signed by: myned
GPG key ID: C7224454F7881A34
5 changed files with 53 additions and 17 deletions

View file

@ -7,9 +7,13 @@
custom = { custom = {
hostname = "myarm"; hostname = "myarm";
settings.networking = { settings = {
boot.systemd-boot = true;
networking = {
static = true; static = true;
ipv6 = "2a01:4f8:c17:321c::1/64"; ipv6 = "2a01:4f8:c17:321c::1/64";
}; };
}; };
};
} }

View file

@ -4,5 +4,16 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
custom.hostname = "myne"; custom = {
hostname = "myne";
settings = {
boot.grub = true;
networking = {
static = true;
ipv6 = "2a01:4ff:f0:e193::1/64";
};
};
};
} }

View file

@ -3,7 +3,7 @@
disk = { disk = {
master = { master = {
type = "disk"; type = "disk";
device = "/dev/sda"; device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_53186364";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
@ -54,7 +54,33 @@
"/swap" = { "/swap" = {
mountpoint = "/swap"; mountpoint = "/swap";
swap.swapfile.size = "8G"; swap.swapfile.size = "4G";
};
};
};
};
};
};
};
myvol = {
type = "disk";
device = "/dev/disk/by-id/scsi-0HC_Volume_101412796";
content = {
type = "gpt";
partitions = {
local = {
size = "100%";
content = {
type = "btrfs";
extraArgs = ["-f"];
subvolumes = {
"/local" = {
mountpoint = "/mnt/local";
mountOptions = [
"compress=zstd"
"noatime"
];
}; };
}; };
}; };

View file

@ -8,16 +8,11 @@
modulesPath, modulesPath,
... ...
}: { }: {
imports = [(modulesPath + "/profiles/qemu-guest.nix")]; imports = [
(modulesPath + "/profiles/qemu-guest.nix")
boot.initrd.availableKernelModules = [
"ahci"
"xhci_pci"
"virtio_pci"
"virtio_scsi"
"sd_mod"
"sr_mod"
]; ];
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = []; boot.initrd.kernelModules = [];
boot.kernelModules = []; boot.kernelModules = [];
boot.extraModulePackages = []; boot.extraModulePackages = [];

View file

@ -29,7 +29,7 @@ let
]; ];
servers = [ servers = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDPlG7FWZ5Us4Ix5fGMHn2DJU1/ma/7kQu39cPKKQMXJ root@myarm" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAgrWvzp14Vj+aMd3b9w6e3/xbkHfNZoswsAg9QtUcDc root@myne"
]; ];
common = users ++ consoles ++ desktops ++ sbcs ++ servers; common = users ++ consoles ++ desktops ++ sbcs ++ servers;
@ -65,7 +65,7 @@ in {
"sbc/users/root.pass".publicKeys = sbc; "sbc/users/root.pass".publicKeys = sbc;
### Server ### Server
"server/borgmatic/borgbase.myarm".publicKeys = server; "server/borgmatic/borgbase".publicKeys = server;
"server/caddy/Caddyfile".publicKeys = server; "server/caddy/Caddyfile".publicKeys = server;
"server/coturn/coturn.conf".publicKeys = server; "server/coturn/coturn.conf".publicKeys = server;
"server/forgejo/.env".publicKeys = server; "server/forgejo/.env".publicKeys = server;