idk shits so fucked lol
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
namespace,
|
namespace,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
@@ -130,6 +131,16 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
wifi.powersave = cfg.networkmanager.powersave;
|
wifi.powersave = cfg.networkmanager.powersave;
|
||||||
settings.connectivity.uri = mkDefault "http://nmcheck.gnome.org/check_network_status.txt";
|
settings.connectivity.uri = mkDefault "http://nmcheck.gnome.org/check_network_status.txt";
|
||||||
|
plugins = with pkgs; [
|
||||||
|
networkmanager-fortisslvpn
|
||||||
|
networkmanager-iodine
|
||||||
|
networkmanager-l2tp
|
||||||
|
networkmanager-openconnect
|
||||||
|
networkmanager-openvpn
|
||||||
|
networkmanager-sstp
|
||||||
|
networkmanager-strongswan
|
||||||
|
networkmanager-vpnc
|
||||||
|
];
|
||||||
|
|
||||||
# Configure WiFi profiles if any are defined
|
# Configure WiFi profiles if any are defined
|
||||||
ensureProfiles = mkIf (cfg.networkmanager.profiles != { }) {
|
ensureProfiles = mkIf (cfg.networkmanager.profiles != { }) {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ let
|
|||||||
port = 8127;
|
port = 8127;
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
openFirewall = cfg.openFirewall;
|
openFirewall = cfg.openFirewall;
|
||||||
model = "${cfg.configDir}/llama-cpp/models/functionary-small-v3.2-GGUF/functionary-small-v3.2.Q4_0.gguf";
|
# model = "${cfg.configDir}/llama-cpp/models/functionary-small-v3.2-GGUF/functionary-small-v3.2.Q4_0.gguf";
|
||||||
package = pkgs.llama-cpp-rocm;
|
package = pkgs.llama-cpp-rocm;
|
||||||
extraFlags = [
|
extraFlags = [
|
||||||
"--n_gpu-layers"
|
"--n_gpu-layers"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# ai = enabled;
|
ai = enabled;
|
||||||
arrs = enabled;
|
arrs = enabled;
|
||||||
attic = {
|
attic = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ in
|
|||||||
|
|
||||||
services = {
|
services = {
|
||||||
grafana = {
|
grafana = {
|
||||||
enable = true;
|
enable = false;
|
||||||
port = 9999;
|
port = 9999;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -281,87 +281,7 @@ in
|
|||||||
# ];
|
# ];
|
||||||
# };
|
# };
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/media/nas/main/appdata" = {
|
"/media/nas/main" = {
|
||||||
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
|
||||||
fsType = "bcachefs";
|
|
||||||
options = [
|
|
||||||
"X-mount.subdir=appdata"
|
|
||||||
"x-systemd.device-timeout=180s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/media/nas/main/backup" = {
|
|
||||||
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
|
||||||
fsType = "bcachefs";
|
|
||||||
options = [
|
|
||||||
"X-mount.subdir=backup"
|
|
||||||
"x-systemd.device-timeout=180s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/media/nas/main/databases" = {
|
|
||||||
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
|
||||||
fsType = "bcachefs";
|
|
||||||
options = [
|
|
||||||
"X-mount.subdir=databases"
|
|
||||||
"x-systemd.device-timeout=180s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/media/nas/main/documents" = {
|
|
||||||
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
|
||||||
fsType = "bcachefs";
|
|
||||||
options = [
|
|
||||||
"X-mount.subdir=documents"
|
|
||||||
"x-systemd.device-timeout=180s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/media/nas/games/heroic" = {
|
|
||||||
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
|
||||||
fsType = "bcachefs";
|
|
||||||
options = [
|
|
||||||
"X-mount.subdir=heroic"
|
|
||||||
"x-systemd.device-timeout=180s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/media/nas/main/movies" = {
|
|
||||||
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
|
||||||
fsType = "bcachefs";
|
|
||||||
options = [
|
|
||||||
"X-mount.subdir=movies"
|
|
||||||
"x-systemd.device-timeout=180s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/media/nas/main/photos" = {
|
|
||||||
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
|
||||||
fsType = "bcachefs";
|
|
||||||
options = [
|
|
||||||
"X-mount.subdir=photos"
|
|
||||||
"x-systemd.device-timeout=180s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/media/nas/games/steam" = {
|
|
||||||
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
|
||||||
fsType = "bcachefs";
|
|
||||||
options = [
|
|
||||||
"X-mount.subdir=steam"
|
|
||||||
"x-systemd.device-timeout=180s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/media/nas/main/tv" = {
|
|
||||||
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
|
||||||
fsType = "bcachefs";
|
|
||||||
options = [
|
|
||||||
"X-mount.subdir=tv"
|
|
||||||
"x-systemd.device-timeout=180s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/persist" = {
|
|
||||||
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
|
||||||
fsType = "bcachefs";
|
|
||||||
options = [
|
|
||||||
"X-mount.subdir=persist"
|
|
||||||
"x-systemd.device-timeout=180s"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/subvolumes" = {
|
|
||||||
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
device = "UUID=adf7b4e1-dfed-4c10-a9ab-2741c1055552";
|
||||||
fsType = "bcachefs";
|
fsType = "bcachefs";
|
||||||
};
|
};
|
||||||
@@ -380,6 +300,45 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.initrd.luks.devices = {
|
||||||
|
hdd1-cryptroot = {
|
||||||
|
device = "/dev/disk/by-uuid/295d4c78-41f0-4792-bd97-ac88b2455cdc";
|
||||||
|
};
|
||||||
|
hdd2-cryptroot = {
|
||||||
|
device = "/dev/disk/by-uuid/7c9c2179-351c-40a5-9257-e9ee2a1e794a";
|
||||||
|
};
|
||||||
|
ssd1-cryptroot = {
|
||||||
|
device = "/dev/disk/by-uuid/d78fa862-212c-4d4f-ad86-bfeead5cc054";
|
||||||
|
allowDiscards = true;
|
||||||
|
bypassWorkqueues = true;
|
||||||
|
};
|
||||||
|
ssd2-cryptroot = {
|
||||||
|
device = "/dev/disk/by-uuid/1661c173-3809-4517-9ab8-ad94c229048d";
|
||||||
|
allowDiscards = true;
|
||||||
|
bypassWorkqueues = true;
|
||||||
|
};
|
||||||
|
ssd3-cryptroot = {
|
||||||
|
device = "/dev/disk/by-uuid/cfea125e-90b1-4248-834d-16dcaf310783";
|
||||||
|
allowDiscards = true;
|
||||||
|
bypassWorkqueues = true;
|
||||||
|
};
|
||||||
|
ssd4-cryptroot = {
|
||||||
|
device = "/dev/disk/by-uuid/96055401-6d1a-4308-9e4e-2211e1e23635";
|
||||||
|
allowDiscards = true;
|
||||||
|
bypassWorkqueues = true;
|
||||||
|
};
|
||||||
|
ssd5-cryptroot = {
|
||||||
|
device = "/dev/disk/by-uuid/055e27e0-c96a-4899-8ee7-cb1cd5f21476";
|
||||||
|
allowDiscards = true;
|
||||||
|
bypassWorkqueues = true;
|
||||||
|
};
|
||||||
|
ssd6-cryptroot = {
|
||||||
|
device = "/dev/disk/by-uuid/6e830abd-2555-4558-81a3-4a990507b5a7";
|
||||||
|
allowDiscards = true;
|
||||||
|
bypassWorkqueues = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# boot.initrd.luks.devices.cryptroot.device = "/dev/disk/by-partlabel/disk-main-jallen-nas-cryptroot";
|
# boot.initrd.luks.devices.cryptroot.device = "/dev/disk/by-partlabel/disk-main-jallen-nas-cryptroot";
|
||||||
|
|
||||||
# Configure environment
|
# Configure environment
|
||||||
|
|||||||
@@ -98,12 +98,12 @@ in
|
|||||||
# crowdsec
|
# crowdsec
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
|
|
||||||
"jallen-nas/crowdsec-capi" = {
|
# "jallen-nas/crowdsec-capi" = {
|
||||||
sopsFile = defaultSops;
|
# sopsFile = defaultSops;
|
||||||
owner = "crowdsec";
|
# owner = "crowdsec";
|
||||||
group = "crowdsec";
|
# group = "crowdsec";
|
||||||
restartUnits = [ "crowdsec.service" ];
|
# restartUnits = [ "crowdsec.service" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
# mariadb # TODO
|
# mariadb # TODO
|
||||||
|
|||||||
Reference in New Issue
Block a user