Infini-SD: init
This commit is contained in:
parent
2574b82458
commit
9d87b7d540
3 changed files with 91 additions and 0 deletions
36
hosts/Infini-SD/filesystems.nix
Normal file
36
hosts/Infini-SD/filesystems.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
uuid = uuid: "/dev/disk/by-uuid/${uuid}";
|
||||
main = uuid "ae3f3d98-1d87-47b4-a4ed-d69a896eee69";
|
||||
commonOptions = [ "autodefrag" "noatime" "compress-force=zstd:4" ];
|
||||
|
||||
mkMain' = options: {
|
||||
device = main;
|
||||
fsType = "btrfs";
|
||||
options = commonOptions ++ options;
|
||||
};
|
||||
mkMain = options: (mkMain' options) // { neededForBoot = true; };
|
||||
in
|
||||
{
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "none";
|
||||
fsType = "tmpfs";
|
||||
options = [ "defaults" "size=4G" "mode=755" ];
|
||||
};
|
||||
|
||||
"/media/main" = mkMain' [ ];
|
||||
|
||||
"/persist" = mkMain [ "subvol=root" ];
|
||||
"/etc/ssh" = mkMain [ "subvol=root/etc/ssh" ];
|
||||
"/nix" = mkMain [ "subvol=nix" ];
|
||||
"/boot" = mkMain [ "subvol=boot" ];
|
||||
|
||||
"/boot/efi" = {
|
||||
device = uuid "D7DB-2291";
|
||||
fsType = "vfat";
|
||||
neededForBoot = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue