From c163b34a2cd97ea901d352276bbdfc44ddc19647 Mon Sep 17 00:00:00 2001 From: NullBite Date: Sun, 21 Jan 2024 23:48:09 +0100 Subject: [PATCH] Update README.md + comment --- README.md | 15 +++++++++++++++ flake.nix | 2 ++ 2 files changed, 17 insertions(+) diff --git a/README.md b/README.md index f319cd7..6ef4303 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,18 @@ for the host, if applicable. - add Plasma, Hyprland, and maybe GNOME if I'm feeling silly (I'd probably never actually use it). - make more things configurable as options once I figure out the above, it's probably cleaner than importing modules. - Rewrite README. +- make system ephemeral/stateless + - The following command is able to successfully show any accumulated state on my system:
sudo find  / -xdev \( -path /home -o -path /nix -o -path /boot \)  -prune -o \( -name flatpak -o -name boot.bak -o -path /var/log -o -name .cache \) \( -prune -print \) -o \( -type f \) -print
+ - everything on my system should be declared in this repository or explicitly excluded from the system state + - caches should probably be excluded, they exist for a reason and are essentially harmless compared to other forms of state + - /var/cache + - ~/.cache + - logs should also be excluded (/var/log) + - network configuration (wireguard, networkmanager, bluetooth) should be excluded + - ssh host keys + - print configuration + - tailscale keys + - coredumps + - /root user and /home + - /etc/machine-id +- configure /etc/supergfxd.conf with a oneshot systemd unit on boot bsaed on selected specialisation (should still be modifiable with supergfxctl but should be ephemeral) diff --git a/flake.nix b/flake.nix index c9e7d3c..236092d 100644 --- a/flake.nix +++ b/flake.nix @@ -90,6 +90,8 @@ # for repl debugging via :lf . inherit inputs vars; + # nix flake modules are meant to be portable so we cannot rely on + # (extraS|s)pecialArgs to pass variables nixosModules = (import ./modules/nixos) moduleInputs; homeManagerModules = (import ./modules/home-manager) moduleInputs;