mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 00:58:16 +00:00
Add zfs utils and zpool
This commit is contained in:
@@ -51,7 +51,10 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
supportedFilesystems = [ "ntfs" ];
|
supportedFilesystems = [
|
||||||
|
"ntfs"
|
||||||
|
"zfs"
|
||||||
|
];
|
||||||
|
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = [
|
availableKernelModules = [
|
||||||
@@ -150,6 +153,10 @@ in
|
|||||||
device = "192.168.1.178:/volume1/Backups";
|
device = "192.168.1.178:/volume1/Backups";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
};
|
};
|
||||||
|
"/mnt/zfs/backups" =
|
||||||
|
{ device = "zpool/backups";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ { device = "/dev/disk/by-uuid/5d6d0388-2b15-4ff1-9f0f-391818a76090"; } ];
|
swapDevices = [ { device = "/dev/disk/by-uuid/5d6d0388-2b15-4ff1-9f0f-391818a76090"; } ];
|
||||||
@@ -165,6 +172,7 @@ in
|
|||||||
networking = {
|
networking = {
|
||||||
iproute2.enable = true;
|
iproute2.enable = true;
|
||||||
hostName = "hephaestus";
|
hostName = "hephaestus";
|
||||||
|
hostId = "0e8aad53";
|
||||||
interfaces.enp34s0 = {
|
interfaces.enp34s0 = {
|
||||||
useDHCP = true;
|
useDHCP = true;
|
||||||
};
|
};
|
||||||
@@ -271,6 +279,10 @@ in
|
|||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
videoDrivers = [ "amdgpu" ];
|
videoDrivers = [ "amdgpu" ];
|
||||||
};
|
};
|
||||||
|
zfs = {
|
||||||
|
autoScrub.enable = true;
|
||||||
|
autoSnapshot.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
Reference in New Issue
Block a user