Skip to content

Commit

Permalink
enable zfs for klaus
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Mar 1, 2024
1 parent a6987f2 commit 57387c0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 4 additions & 1 deletion hosts/nixos/klaus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ with lib;

boot.supportedFilesystems = [ "zfs" ];
boot.zfs.forceImportRoot = false;
boot.zfs.extraPools = [ "zpool" ];

networking.hostName = "klaus";
networking.hostId = "a5fdeadb";
Expand Down Expand Up @@ -51,7 +52,9 @@ with lib;

i18n.defaultLocale = "en_US.UTF-8";

services.logind.lidSwitch = "ignore";
services.zfs.autoScrub.enable = true;

services.nfs.server.enable = true;

fileSystems = {
"/".label = "nixos-root";
Expand Down
12 changes: 10 additions & 2 deletions hosts/nixos/klaus/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,23 @@
boot.extraModulePackages = [ ];

fileSystems."/" =
{ device = "/dev/disk/by-uuid/bb4ae743-fe70-4f6c-9524-20e824755caa";
{
device = "/dev/disk/by-uuid/bb4ae743-fe70-4f6c-9524-20e824755caa";
fsType = "ext4";
};

fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/919B-4B67";
{
device = "/dev/disk/by-uuid/919B-4B67";
fsType = "vfat";
};

fileSystems."/data" =
{
device = "zpool/data";
fsType = "zfs";
};

swapDevices = [ ];

# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
Expand Down

0 comments on commit 57387c0

Please sign in to comment.