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 = [ modules = [
nixos-hardware.nixosModules.intel-nuc-8i7beh nixos-hardware.nixosModules.intel-nuc-8i7beh
nix-index-database.nixosModules.nix-index nix-index-database.nixosModules.nix-index
impermanence.nixosModules.impermanence
./hosts/nuc ./hosts/nuc
./shared ./shared
sops-nix.nixosModules.sops sops-nix.nixosModules.sops

View file

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

View file

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

View file

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

View file

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

View file

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