Add toggle for impermanence & persistance for certian directories

This commit is contained in:
Tyler Kelley 2024-02-11 21:24:58 -06:00
parent 52416fe6b2
commit 50c03f3509
4 changed files with 9 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -27,7 +27,8 @@ in with lib; {
}; };
"clock" = { "clock" = {
format = "{: %I:%M %p}"; format = "{: %I:%M %p}";
tooltip = false; tooltip-format = "<big>{:%A, %d.%B %Y }</big><tt><small>{calendar}</small></tt>";
tooltip = true;
}; };
"hyprland/window" = { "hyprland/window" = {
max-length = 25; max-length = 25;

View File

@ -1,10 +1,14 @@
{ config, pkgs, lib, username, ... }: { config, pkgs, lib, username, ... }:
{ let
inherit (import ../../options.nix) impermanence;
in lib.mkIf (impermanence == true) {
environment.persistence."/nix/persist" = { environment.persistence."/nix/persist" = {
hideMounts = true; hideMounts = true;
directories = [ directories = [
"/var/log" "/var/log"
"/var/lib/bluetooth"
"/var/lib/nixos"
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
]; ];

View File

@ -32,6 +32,7 @@ in {
theTimezone = "America/Chicago"; theTimezone = "America/Chicago";
theShell = "bash"; # Possible options: bash, zsh theShell = "bash"; # Possible options: bash, zsh
theKernel = "default"; # possible options: default, latest, lqx, xanmod, zen theKernel = "default"; # possible options: default, latest, lqx, xanmod, zen
impermanence = true;
# For Hybrid Systems intel-nvidia # For Hybrid Systems intel-nvidia
# Should Be Used As gpuType # Should Be Used As gpuType
cpuType = "intel"; cpuType = "intel";