59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
{
|
|
imports =
|
|
[ (modulesPath + "/profiles/qemu-guest.nix") ];
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "none";
|
|
fsType = "tmpfs";
|
|
options = [ "defaults" "noatime" "mode=755" ];
|
|
};
|
|
|
|
"/boot" = {
|
|
device = "/dev/disk/by-label/NixOS-Boot";
|
|
fsType = "vfat";
|
|
options = [ "defaults" "noatime" ];
|
|
depends = [ "/" ];
|
|
};
|
|
|
|
"/nix" = {
|
|
device = "/dev/disk/by-label/NixOS-Primary";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=@nix" "compress=zstd" "noatime" ];
|
|
};
|
|
};
|
|
|
|
zramSwap.enable = true;
|
|
|
|
environment.persistence = {
|
|
"/nix/persist" = {
|
|
hideMounts = true;
|
|
directories = [
|
|
"/var/lib"
|
|
"/var/log"
|
|
"/etc/nixos"
|
|
];
|
|
files = [
|
|
"/etc/machine-id"
|
|
"/etc/nix/id_rsa"
|
|
];
|
|
users.price = {
|
|
directories = [
|
|
"Git"
|
|
"ISOs"
|
|
"Downloads"
|
|
"Keep"
|
|
"Notes"
|
|
".local/share"
|
|
{ directory = ".gnupg"; mode = "0700"; }
|
|
{ directory = ".ssh"; mode = "0700"; }
|
|
];
|
|
files = [
|
|
".zsh_history"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|