Initial config for socrates
This commit is contained in:
+17
-15
@@ -21,10 +21,7 @@ in {
|
||||
};
|
||||
|
||||
kernelModules = [ "kvm-amd" ];
|
||||
supportedFilesystems = [ "zfs" ];
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
zfs.enableUnstable = true;
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
# kernelPatches = [{
|
||||
# name = "big-navi";
|
||||
@@ -50,25 +47,28 @@ in {
|
||||
};
|
||||
|
||||
"/nix" = {
|
||||
device = "system3/transient/nix";
|
||||
fsType = "zfs";
|
||||
device = "/dev/disk/by-label/system3";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=nix" "compress=zstd" "noatime" ];
|
||||
};
|
||||
|
||||
"/var/log" = {
|
||||
device = "system3/transient/logs";
|
||||
fsType = "zfs";
|
||||
device = "/dev/disk/by-label/system3";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=log" "compress=zstd" "noatime" "noexec" ];
|
||||
neededForBoot = true;
|
||||
options = [ "noexec" ];
|
||||
};
|
||||
|
||||
"/state" = {
|
||||
device = "system3/persistent/state";
|
||||
fsType = "zfs";
|
||||
device = "/dev/disk/by-label/system3";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=state" "compress=zstd" "noatime" ];
|
||||
};
|
||||
|
||||
"/home" = {
|
||||
device = "system3/persistent/home";
|
||||
fsType = "zfs";
|
||||
device = "/dev/disk/by-label/system3";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=home" "compress=zstd" "noatime" ];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -97,6 +97,8 @@ in {
|
||||
};
|
||||
|
||||
enableRedistributableFirmware = true;
|
||||
|
||||
enableAllFirmware = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
@@ -106,13 +108,13 @@ in {
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostId = substring 0 8 (fileContents /etc/machine-id);
|
||||
hostId = substring 0 8 (fileContents /state/etc/machine-id);
|
||||
|
||||
useDHCP = false;
|
||||
|
||||
macvlans = {
|
||||
intif0 = {
|
||||
interface = "enp6s0";
|
||||
interface = "enp7s0";
|
||||
mode = "bridge";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user