hosts/caramel, users/hana: init

This commit is contained in:
LavaDesu 2022-02-02 00:50:39 +07:00
parent 41c4362136
commit 1f8b0bd54c
Signed by: cilly
GPG key ID: 6500251E087653C9
14 changed files with 246 additions and 46 deletions

View file

@ -0,0 +1,28 @@
{ config, ... }:
let
bind = src: {
depends = [ "/nix" ];
device = src;
fsType = "none";
neededForBoot = true;
options = [ "bind" ];
};
in {
fileSystems = {
"/" = {
device = "rootfs";
fsType = "tmpfs";
options = [ "defaults" "size=2G" "mode=755" ];
};
"/nix" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = [ "defaults" "noatime" ];
};
"/var/persist" = bind "/nix/persist";
"/var/log/journal" = bind "/nix/persist/journal";
"/boot" = bind "/nix/persist/boot";
};
}