diff --git a/README.md b/README.md index a587489..0da6e95 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ MicroSD card as boot and OS. ### First milestone -- [ ] ZFS set up on the HDDs +- [X] ZFS set up on the HDDs - [ ] Plex media server ### Second milestone diff --git a/flake.nix b/flake.nix index 4512f33..f298c2f 100644 --- a/flake.nix +++ b/flake.nix @@ -31,6 +31,13 @@ settings.PasswordAuthentication = false; }; }; + nixosModules.zfs = {...}: { + boot.supportedFilesystems = [ "zfs" ]; + boot.zfs.forceImportRoot = false; + boot.zfs.extraPools = [ "storage" ]; + # zfs needs this for some reason + networking.hostId = "488ecad2"; + }; nixosConfigurations.chopper = nixpkgs.lib.nixosSystem { system = "aarch64-linux"; modules = [ @@ -38,6 +45,7 @@ self.nixosModules.base self.nixosModules.users self.nixosModules.ssh + self.nixosModules.zfs ]; }; };