onyx: switch to zsh
Charlotte Som charlotte@som.codes
Fri, 13 Mar 2026 04:14:39 +0000
2 files changed,
35 insertions(+),
16 deletions(-)
M
profiles/onyx/base.nix
→
profiles/onyx/base.nix
@@ -5,8 +5,13 @@ ...
}: { boot.kernelPackages = unstable-pkgs.linuxPackages_latest; + boot.supportedFilesystems = [ "zfs" ]; + boot.zfs.forceImportRoot = false; + boot.zfs.devNodes = "/dev/disk/by-id"; + services.zfs.trim.enable = true; networking.hostName = "onyx"; + networking.hostId = "8db6cf97"; time.timeZone = "Europe/London"; hardware.graphics.enable = true;
M
profiles/onyx/disks.nix
→
profiles/onyx/disks.nix
@@ -1,4 +1,5 @@
-{ lib, ... }: { +{ lib, ... }: +{ disko.devices.disk.primary = { device = lib.mkDefault "/dev/disk/by-id/nvme-WD_BLACK_SN850X_2000GB_240264805134"; type = "disk";@@ -20,23 +21,36 @@ };
}; root = { size = "100%"; - type = "8300"; + type = "BF00"; content = { - type = "btrfs"; - subvolumes = { - "/root" = { - mountpoint = "/"; - }; - "/nix" = { - mountOptions = [ - "compress=zstd" - "noatime" - "noacl" - ]; - mountpoint = "/nix"; - }; - }; + type = "zfs"; + pool = "zroot"; }; + }; + }; + }; + }; + + disko.devices.zpool.zroot = { + type = "zpool"; + rootFsOptions = { + acltype = "posixacl"; + xattr = "sa"; + dnodesize = "auto"; + }; + datasets = { + root = { + type = "zfs_fs"; + mountpoint = "/"; + options.mountpoint = "legacy"; + }; + nix = { + type = "zfs_fs"; + mountpoint = "/nix"; + options = { + mountpoint = "legacy"; + compression = "zstd"; + atime = "off"; }; }; };