feat(stolas): disko for disk setup
This commit is contained in:
parent
0b08beee35
commit
e58a47af3f
5 changed files with 127 additions and 109 deletions
|
@ -3,10 +3,9 @@
|
|||
|
||||
imports = [
|
||||
../modules/profiles/laptop.nix
|
||||
./disks.nix
|
||||
];
|
||||
|
||||
### TODO double check with generated hw-config
|
||||
|
||||
boot = {
|
||||
# TODO lanzaboote = {
|
||||
# enable = true;
|
||||
|
@ -47,113 +46,6 @@
|
|||
pkgs.sbctl
|
||||
];
|
||||
|
||||
# TODO compare with nixos-generate-config --show-hardware-config
|
||||
fileSystems = {
|
||||
"/boot" = {
|
||||
# TODO
|
||||
device = "/dev/disk/by-uuid/todo";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
"/" = {
|
||||
# TODO
|
||||
device = "/dev/disk/by-uuid/todo";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=root"
|
||||
"compress=zstd"
|
||||
];
|
||||
};
|
||||
|
||||
"/home" = {
|
||||
# TODO
|
||||
device = "/dev/disk/by-uuid/todo";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=home"
|
||||
];
|
||||
};
|
||||
|
||||
"/home/dadada" = {
|
||||
# TODO
|
||||
device = "/dev/disk/by-uuid/todo";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=home/dadada"
|
||||
];
|
||||
};
|
||||
|
||||
"/nix" = {
|
||||
# TODO
|
||||
device = "/dev/disk/by-uuid/todo";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"noatime"
|
||||
"compress=zstd"
|
||||
"subvol=nix"
|
||||
];
|
||||
};
|
||||
|
||||
"/nix/var/nix/builds" = {
|
||||
device = "none";
|
||||
fsType = "tmpfs";
|
||||
options = [
|
||||
# Max 80% of available RAM
|
||||
"size=80%"
|
||||
# Only owner (nix daemon may write)
|
||||
"mode=755"
|
||||
];
|
||||
};
|
||||
|
||||
"/root" = {
|
||||
# TODO
|
||||
device = "/dev/disk/by-uuid/todo";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=root"
|
||||
];
|
||||
};
|
||||
|
||||
"/var" = {
|
||||
# TODO
|
||||
device = "/dev/disk/by-uuid/todo";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=var"
|
||||
];
|
||||
};
|
||||
|
||||
"/var/lib/paperless" = {
|
||||
# TODO
|
||||
device = "/dev/disk/by-uuid/todo";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=var/lib/paperless"
|
||||
];
|
||||
};
|
||||
|
||||
"/var/swap" = {
|
||||
# TODO
|
||||
device = "/dev/disk/by-uuid/todo";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"noatime"
|
||||
"subvol=swap"
|
||||
];
|
||||
};
|
||||
|
||||
# NOTE: /tmp is tmpfs because of config in base.nix
|
||||
};
|
||||
|
||||
# TODO btrfs filesystem mkswapfile --uuid clear /var/swap/swapfile
|
||||
# swapDevices = [{
|
||||
# device = "/var/swap/swapfile";
|
||||
# size = 80*1024; # Creates an 80GB swap file
|
||||
# }];
|
||||
|
||||
hardware = {
|
||||
# NOTE: hardware.framework.enableKmod requires kernel patching, but enables access to some EC features
|
||||
bluetooth.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue