all repos — char/flake @ 1c7378c12f4e8d2b7911288c442d0fbc7c149351

nixos flake

onyx: switch to zsh
Charlotte Som charlotte@som.codes
Fri, 13 Mar 2026 04:14:39 +0000
commit

1c7378c12f4e8d2b7911288c442d0fbc7c149351

parent

a07cb79013746721c0313fbd8503242bc85e7b67

2 files changed, 35 insertions(+), 16 deletions(-)

jump to
M profiles/onyx/base.nixprofiles/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.nixprofiles/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"; }; }; };