Compare commits

...

5 Commits

Author SHA1 Message Date
Noah Masur
30fe7c2d18 disable disko enforcement 2023-02-25 10:53:45 -05:00
Noah Masur
08716d1c98 fix: label syntax 2023-02-25 10:37:28 -05:00
Noah Masur
60b68785a9 fix: types 2023-02-25 10:35:56 -05:00
Noah Masur
c360460d80 add filesystem labels to disko config 2023-02-25 10:32:54 -05:00
Noah Masur
b1b5e77f47 back to disko module once again 2023-02-25 10:22:24 -05:00
2 changed files with 168 additions and 163 deletions

View File

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

View File

@ -1,4 +1,6 @@
{ { ... }: {
disko.enableConfig = false;
disko.devices = {
disk = { disk = {
boot = { boot = {
type = "disk"; type = "disk";
@ -18,6 +20,7 @@
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
extraArgs = [ "-n boot" ];
}; };
} }
{ {
@ -31,6 +34,7 @@
type = "filesystem"; type = "filesystem";
format = "ext4"; format = "ext4";
mountpoint = "/"; mountpoint = "/";
extraArgs = [ "-L nixos" ];
}; };
} }
]; ];
@ -98,14 +102,14 @@
rootFsOptions = { rootFsOptions = {
compression = "on"; # lz4 by default compression = "on"; # lz4 by default
"com.sun:auto-snapshot" = "false"; "com.sun:auto-snapshot" = "false";
ashift = 12; ashift = "12";
}; };
# mountpoint = "/"; # mountpoint = "/";
datasets = { datasets = {
media = { media = {
zfs_type = "filesystem"; zfs_type = "filesystem";
mountpoint = "none"; mountpoint = "/media";
options."com.sun:auto-snapshot" = "false"; options."com.sun:auto-snapshot" = "false";
}; };
# "media/movies" = { # "media/movies" = {
@ -164,4 +168,5 @@
}; };
}; };
}; };
};
} }