+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
5101abf
main
1{ config , ...} :{ 2fileSystems = let 3subvol = name :opts :{ 4label = config . networking . hostName ; fsType = "btrfs" ; 5options = [ "subvol=@ ${ name } " ] ++ opts ; 6}; 7in { 8"/" = subvol "root" [ "compress=zstd" ]; 9"/nix" = subvol "nix" [ "compress=zstd" "noatime" ]; 10"/home" = subvol "home" [ "compress=zstd" "user_subvol_rm_allowed" ] 11// { neededForBoot = true ; }; # for agenix to read my ssh identity 12"/swap" = subvol "swap" [ "noatime" ]; 13"/var/log" = subvol "log" [ ]; 14}; 15 16swapDevices = [{ device = "/swap/swapfile" ; }]; 17services . btrfs . autoScrub = { enable = true ; fileSystems = [ "/" ]; }; 18}