mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 01:21:39 +01:00
configured impermanence for the nuc
This commit is contained in:
parent
d08a5e1c8e
commit
63605568c6
6 changed files with 17 additions and 10 deletions
|
@ -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
|
||||||
|
|
|
@ -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";
|
||||||
|
|
||||||
|
|
|
@ -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" =
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
{
|
{
|
||||||
device = "tmpfs";
|
device = "tmpfs";
|
||||||
fsType = "tmpfs";
|
fsType = "tmpfs";
|
||||||
options = [ "size=3G" "mode=755" ];
|
options = [ "mode=755" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue