Set up zfs

It's not done declaratively but eh
This commit is contained in:
Nathan van Doorn 2024-05-04 14:33:24 +00:00
parent eac215ce10
commit e2a0b0bcde
2 changed files with 9 additions and 1 deletions

View File

@ -16,7 +16,7 @@ MicroSD card as boot and OS.
### First milestone ### First milestone
- [ ] ZFS set up on the HDDs - [X] ZFS set up on the HDDs
- [ ] Plex media server - [ ] Plex media server
### Second milestone ### Second milestone

View File

@ -31,6 +31,13 @@
settings.PasswordAuthentication = false; 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 { nixosConfigurations.chopper = nixpkgs.lib.nixosSystem {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ modules = [
@ -38,6 +45,7 @@
self.nixosModules.base self.nixosModules.base
self.nixosModules.users self.nixosModules.users
self.nixosModules.ssh self.nixosModules.ssh
self.nixosModules.zfs
]; ];
}; };
}; };