back to disko module once again

This commit is contained in:
Noah Masur 2023-02-25 10:22:24 -05:00
parent 67af160088
commit b1b5e77f47
2 changed files with 165 additions and 163 deletions

View File

@ -10,6 +10,7 @@ nixpkgs.lib.nixosSystem {
specialArgs = { };
modules = [
./hardware-configuration.nix
./disks.nix
../../modules/common
../../modules/nixos
(removeAttrs globals [ "mail.server" ])
@ -17,7 +18,6 @@ nixpkgs.lib.nixosSystem {
home-manager.nixosModules.home-manager
disko.nixosModules.disko
{
disko.devices = import ./disks.nix;
server = true;
gui.enable = false;
theme = { colors = (import ../../colorscheme/gruvbox).dark; };

View File

@ -1,4 +1,5 @@
{
{ ... }: {
disko.devices = {
disk = {
boot = {
type = "disk";
@ -98,14 +99,14 @@
rootFsOptions = {
compression = "on"; # lz4 by default
"com.sun:auto-snapshot" = "false";
ashift = 12;
ashift = "12";
};
# mountpoint = "/";
datasets = {
media = {
zfs_type = "filesystem";
mountpoint = "none";
mountpoint = "/media";
options."com.sun:auto-snapshot" = "false";
};
# "media/movies" = {
@ -164,4 +165,5 @@
};
};
};
};
}