!oNSIfazDqEcwhcOjSL:matrix.org

disko

353 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko88 Servers

Load older messages


SenderMessageTime
21 Mar 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.18:02:41
@grahamc:nixos.org@grahamc:nixos.org left the room.20:08:02
22 Mar 2024
@bumperboat:matrix.orgbumperboat changed their display name from bumperboat to bumperboat (UTC+8 when).13:28:10
@bumperboat:matrix.orgbumperboat changed their display name from bumperboat (UTC+8 when) to bumperboat (UTC+8).15:02:13
23 Mar 2024
@genericnerdyusername:matrix.orgGenericNerdyUsername joined the room.13:25:06
@genericnerdyusername:matrix.orgGenericNerdyUsernameIs there a way I can run a command before a partition is unmounted on shutdown?13:26:04
@adam:robins.wtf@adam:robins.wtfyou can maybe use systemd unit ordering to do so13:44:19
@genericnerdyusername:matrix.orgGenericNerdyUsernamei meant in disko13:44:35
@genericnerdyusername:matrix.orgGenericNerdyUsername having a preUnmountHook right next to preMountHook would be a lot cleaner than a new systemd unit 13:45:22
@lassulus:lassul.uslassulusunmounting is currently not managed by disko14:14:09
26 Mar 2024
@cblacktech:matrix.orgcblacktech joined the room.02:03:46
27 Mar 2024
@gladtherescake:matrix.gladtherescake.euLillian Violet (She/Fae) joined the room.22:27:27
29 Mar 2024
@sebtm:lodere.esSebTM joined the room.05:40:18
30 Mar 2024
@hoskellisiera:matrix.orghoskellisiera joined the room.13:33:39
31 Mar 2024
@perchun:matrix.org@perchun:matrix.org joined the room.20:55:21
@perchun:matrix.org@perchun:matrix.org

hello

I currently have a disk of 2tb with 1.5tb partition for my current OS (fedora) and 500gb of free space. Is it possible to install NixOS via disko only on free space, without touching existing partitions?
I could format the disk by hand, but I have +- complex config, and I am afraid I couldn't reproduce it by hand (at least at first try).

20:59:00
@lassulus:lassul.uslassulusit should be possible, but that is a very recent feature which I haven21:05:30
@lassulus:lassul.uslassulus * it should be possible, but that is a very recent feature which I haven't tested deeply yet21:05:38
@lassulus:lassul.uslassulusyou basically need to configure your existing partitons in disko (content can be null for the fedore ones) and then try to run the createScript (not the diskoScript!, as that one will wipe your drives first)21:06:47
@sigmasquadron:matrix.orgSigmaSquadron i’d make a backup or at least clone the disk before trying. 21:33:45
1 Apr 2024
@phaer:matrix.orgphaerWe don't support bcachefs native encryption and/or multi-device support yet, correct?18:55:17
@phaer:matrix.orgphaerQuick code searc suggests as much18:55:41
@perchun:matrix.org@perchun:matrix.org
In reply to @lassulus:lassul.us
you basically need to configure your existing partitons in disko (content can be null for the fedore ones) and then try to run the createScript (not the diskoScript!, as that one will wipe your drives first)
well, this doesn't work
https://gist.github.com/PerchunPak/00acc9f000667c5c4dca4b8d4a6c76b0
(i am currently trying this in vm to be safe; without changes into modules/nixos/disko.nix, it gives the same result)
19:21:33
@perchun:matrix.org@perchun:matrix.orgalso, i was confused to see this feature named "format" though you recommend it to not format my disk19:22:22
@lassulus:lassul.uslassulusah, yeah,I actually check if there is already a partition table and skip creating any partition if that is the case19:41:45
@lassulus:lassul.uslassulusI will fix that tomorrow19:41:49
3 Apr 2024
@thevilsol:matrix.orgVilsol set a profile picture.00:10:29
4 Apr 2024
@strutztm:strutztm.de@strutztm:strutztm.de joined the room.10:16:08
@perchun:matrix.org@perchun:matrix.org
In reply to @perchun:matrix.org
well, this doesn't work
https://gist.github.com/PerchunPak/00acc9f000667c5c4dca4b8d4a6c76b0
(i am currently trying this in vm to be safe; without changes into modules/nixos/disko.nix, it gives the same result)

I did it!

[nixos@nixos:~/nixos-dotfiles]$ lsblk
NAME               MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
loop0                7:0    0 904.4M  1 loop  /nix/.ro-store
sr0                 11:0    1   950M  0 rom   /iso
vda                253:0    0   100G  0 disk  
├─vda1             253:1    0   500M  0 part  
├─vda2             253:2    0    10G  0 part  
├─vda3             253:3    0     1M  0 part  
├─vda4             253:4    0   500M  0 part  /mnt/boot
├─vda5             253:5    0     8G  0 part  [SWAP]
└─vda6             253:6    0    81G  0 part  
  └─encrypted      254:0    0    81G  0 crypt 
    └─root_vg-root 254:1    0    81G  0 lvm   /mnt/persist
                                              /mnt/nix
                                              /mnt

basically I [just modified script, produced by nix run ...disko... --mode disko ... --dry-run (mode is disko because format didn't create luks partition for some reason)

16:06:43
@perchun:matrix.org@perchun:matrix.org
In reply to @perchun:matrix.org
well, this doesn't work
https://gist.github.com/PerchunPak/00acc9f000667c5c4dca4b8d4a6c76b0
(i am currently trying this in vm to be safe; without changes into modules/nixos/disko.nix, it gives the same result)
*

I did it!

[nixos@nixos:~/nixos-dotfiles]$ lsblk
NAME               MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
loop0                7:0    0 904.4M  1 loop  /nix/.ro-store
sr0                 11:0    1   950M  0 rom   /iso
vda                253:0    0   100G  0 disk  
├─vda1             253:1    0   500M  0 part  
├─vda2             253:2    0    10G  0 part  
├─vda3             253:3    0     1M  0 part  
├─vda4             253:4    0   500M  0 part  /mnt/boot
├─vda5             253:5    0     8G  0 part  [SWAP]
└─vda6             253:6    0    81G  0 part  
  └─encrypted      254:0    0    81G  0 crypt 
    └─root_vg-root 254:1    0    81G  0 lvm   /mnt/persist
                                              /mnt/nix
                                              /mnt

basically I [just modified script](https://gist.github.com/PerchunPak/94a54415887c3a0a89c00a875c4cd204), produced by nix run ...disko... --mode disko ... --dry-run (mode is disko because format didn't create luks partition for some reason)

16:06:50

Show newer messages


Back to Room ListRoom Version: 10