configured impermanence for the nuc

This commit is contained in:
Rouven Seifert 2023-05-30 20:36:52 +02:00
parent d08a5e1c8e
commit 63605568c6
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
6 changed files with 17 additions and 10 deletions

View file

@ -90,6 +90,7 @@
modules = [
nixos-hardware.nixosModules.intel-nuc-8i7beh
nix-index-database.nixosModules.nix-index
impermanence.nixosModules.impermanence
./hosts/nuc
./shared
sops-nix.nixosModules.sops

View file

@ -26,6 +26,15 @@
cores = 3;
auto-optimise-store = true;
};
environment.persistence."/nix/persist/system" = {
directories = [
"/etc/nixos"
"/etc/ssh"
];
files = [
"/etc/machine-id"
];
};
time.timeZone = "Europe/Berlin";

View file

@ -16,9 +16,9 @@
fileSystems."/" =
{
device = "/dev/disk/by-uuid/16b0bd14-1b07-477d-a20d-982f9467f6df";
fsType = "btrfs";
options = [ "subvol=root" "compress=zstd" "discard=async" "noatime" ];
device = "tmpfs";
fsType = "tmpfs";
options = [ "mode=755" ];
};
fileSystems."/var/lib" =
@ -35,11 +35,11 @@
options = [ "subvol=log" "compress=zstd" "discard=async" "noatime" ];
};
fileSystems."/nix/store" =
fileSystems."/nix" =
{
device = "/dev/disk/by-uuid/16b0bd14-1b07-477d-a20d-982f9467f6df";
fsType = "btrfs";
options = [ "subvol=store" "compress=zstd" "discard=async" "noatime" ];
options = [ "subvol=nix" "compress=zstd" "discard=async" "noatime" ];
};
fileSystems."/boot" =

View file

@ -26,7 +26,7 @@
{
device = "tmpfs";
fsType = "tmpfs";
options = [ "size=3G" "mode=755" ];
options = [ "mode=755" ];
};

View file

@ -8,6 +8,7 @@
wayland.windowManager.hyprland = {
enable = true;
extraConfig = builtins.readFile ./hyprland.conf; # todo nix config when available
recommendedEnvironment = true;
};
home.sessionVariables = {

View file

@ -35,10 +35,6 @@ in
hostname = "192.168.10.2";
user = "root";
};
"git@rfive.de" = {
match = "Host rfive.de User git";
identityFile = git;
};
"git@raspi" = {
match = "Host raspi User git";
identityFile = git;