splitting parts of system config
- hardware-configuration.nix separated into kernel-winter.nix and filesystem-winter.nix - kernel.nix split off into kernel-winter.nix
This commit is contained in:
parent
0f37f09199
commit
ab6049f578
5 changed files with 54 additions and 89 deletions
28
modules/system/filesystem-winter.nix
Normal file
28
modules/system/filesystem-winter.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
mkMount = uuid: type: {
|
||||
device = "/dev/disk/by-uuid/${uuid}";
|
||||
fsType = type;
|
||||
};
|
||||
mkBtrfsMount = subvolid: mkMount "8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d" "btrfs" // {
|
||||
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=${builtins.toString subvolid}" ];
|
||||
};
|
||||
in
|
||||
{
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "rootfs";
|
||||
fsType = "tmpfs";
|
||||
options = [ "defaults" "size=4G" "mode=755" ];
|
||||
};
|
||||
"/boot" = mkMount "E8E8-E570" "vfat";
|
||||
"/mnt/hdd" = mkMount "d5e3cfe5-c73a-4695-b81b-fc0215d4cefe" "ext4";
|
||||
|
||||
"/mnt/butter" = mkBtrfsMount 5;
|
||||
"/nix" = mkBtrfsMount 258;
|
||||
"/home" = mkBtrfsMount 260;
|
||||
"/home/.snapshots" = mkBtrfsMount 319;
|
||||
"/root" = mkBtrfsMount 261;
|
||||
"/var" = mkBtrfsMount 259;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue