!oNSIfazDqEcwhcOjSL:matrix.org

disko

352 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko89 Servers

Load older messages


SenderMessageTime
24 Mar 2025
@sboe:matrix.orgsboe

I figured this out!

of course disko doesn't set usage limits on the subvolumes

and apparently I can't manually make my own swapfile on btrfs because chattr doesn't work.

But btrfs has a subcommand to make swapfiles!

This fixed my issue!

sudo btrfs filesystem mkswapfile --size 16G /.swapvol/swapfile
18:23:19
@disco_stick:matrix.orgfood style edible product changed their display name from I won't be a human battery to Meat Robot.21:34:28
25 Mar 2025
@sboe:matrix.orgsboeCan disko be used to create new additional btrfs subvolumes? Or do I need to manually create them and add them to my disko config?09:58:36
@sigmasquadron:matrix.orgSigmaSquadron The latter, unfortunately. Disko can only alter your disks if you run disko format, which will wipe them as well. 10:05:28
@sboe:matrix.orgsboe

Thank you, is there any consideration I have to take when making subvolumes? I'd like it to be consistent with how disko makes it

                  "/snapshots" = {
                    mountpoint = "/snapshots";
                    mountOptions = [ "compress=zstd" "noatime" ];
                  };

When I sudo btrfs subvolume list /home -t I notice that there are no slashes in the path name

ID	gen	top level	path	
--	---	---------	----	
256	87522	5		home
257	87348	5		nix
258	87522	5		persist
259	87283	5		swap
10:08:55
@marie:marie.cologneMarie are you sure? It doesn't do that for zfs from my experience 11:27:44
@sigmasquadron:matrix.orgSigmaSquadron I wiped my disk entire once when I tried to remove a subvolume. I assume the same happens when you add one. 11:28:39
@sigmasquadron:matrix.orgSigmaSquadron * I wiped my disk entire once when I tried to remove a subvolume with disko. I assume the same happens when you add one. 11:28:51
@sigmasquadron:matrix.orgSigmaSquadronbut hey, only one way to find out.11:29:07
@sboe:matrix.orgsboeThanks, don't want to try this, the explanation of format isn't very clear on if it will destroy anything12:40:23
@marie:marie.cologneMarie changed their display name from Marie to Marie Ramlow.17:42:21
@marie:marie.cologneMarie changed their display name from Marie Ramlow to Marie.17:44:49
26 Mar 2025
@phaer:matrix.orgphaerWas that recently or a while ago?09:27:52
@phaer:matrix.orgphaer I wouldn't recommend you to try without a backup :)
That being said, it shouldn't nowadays. You can also proof-read the generated script by building nix build .#nixosConfigurations.<host>.config.system.build.formatScript and reading the result
09:32:15
@sigmasquadron:matrix.orgSigmaSquadron
In reply to @phaer:matrix.org
Was that recently or a while ago?
three months ago
10:11:48
@matthewcroughan:defenestrate.itmatthewcroughanAnyone got a zfs luks example I can copy?17:49:43
@marie:marie.cologneMarie https://github.com/NyCodeGHG/dotfiles/blob/28111240f3f2d0e07150712452cbacf919d31692/hosts/marie-nas/disko.nix 17:50:29
@matthewcroughan:defenestrate.itmatthewcroughanAh nice, a big esp17:54:02
@matthewcroughan:defenestrate.itmatthewcroughanI might need a big ESP too for lanzaboote17:54:03
@matthewcroughan:defenestrate.itmatthewcroughan Are you also doing lanzaboote Marie ? 17:54:15
@matthewcroughan:defenestrate.itmatthewcroughanI see you use restic, I haven't looked into backups too much so maybe I'll give that a try 17:55:01
@marie:marie.cologneMarie nope 17:55:11
@marie:marie.cologneMariefutureproofing™17:55:52
@marie:marie.cologneMariehad to increase my ESP once, wasn't very fun17:56:10
@matthewcroughan:defenestrate.itmatthewcroughanI like your ashift 12 17:57:16
@matthewcroughan:defenestrate.itmatthewcroughanthat's for SSD right?17:57:21
@marie:marie.cologneMarieboth pools have it17:57:57
@matthewcroughan:defenestrate.itmatthewcroughan What's the idea behind naming the dataset local/ 17:58:21
@matthewcroughan:defenestrate.itmatthewcroughansince this dataset can never not be local17:58:32
@marie:marie.cologneMarielocal = unimportant stuff which doesn't need backups17:58:48

Show newer messages


Back to Room ListRoom Version: 10