2 Commits

Author SHA1 Message Date
Hadi bb78dd67a5 fix waybar OSD calls
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
2026-08-13 23:21:04 +02:00
Hadi b241f6bbd1 change the password
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
2026-08-13 23:20:58 +02:00
8 changed files with 21 additions and 9 deletions
-1
View File
@@ -33,7 +33,6 @@ _secrets_, and _custom theming_ all in one place.
- 💻 Hyprland & TUIs: Preconfigured Hyprland ecosystem with a lot of cool TUIs - 💻 Hyprland & TUIs: Preconfigured Hyprland ecosystem with a lot of cool TUIs
- 🎨 Consistent Theming: Base16 & Stylix-powered themes - 🎨 Consistent Theming: Base16 & Stylix-powered themes
- ⌨️ Vim-like Everywhere: Unified keybindings (Hyprland, nvim, vimium, etc.) - ⌨️ Vim-like Everywhere: Unified keybindings (Hyprland, nvim, vimium, etc.)
- 🔒 Hardened by Default: LUKS encryption, sops-nix secrets, impermanence and more
## Table of Content ## Table of Content
-1
View File
@@ -19,6 +19,5 @@
home.persistence."/persist".directories = [ home.persistence."/persist".directories = [
".config/ticktick" ".config/ticktick"
".config/Signal" ".config/Signal"
".config/obsidian"
]; ];
} }
+1 -1
View File
@@ -29,7 +29,7 @@
home-manager.users."${config.var.username}" = import ./home.nix; home-manager.users."${config.var.username}" = import ./home.nix;
users.users.${config.var.username}.hashedPassword = "$y$j9T$A7gH534UczuBxulj9IfEu1$ImRy3lpYpemRWNVIkA7efKPWXneFiqhZnEF1aMkWcD8"; # CHANGEME: This is my password users.users.${config.var.username}.hashedPasswordFile = config.sops.secrets.hashedPassword.path;
# Don't touch this # Don't touch this
system.stateVersion = "26.05"; system.stateVersion = "26.05";
+11 -2
View File
@@ -1,5 +1,5 @@
# Impermanence: declares what should survive a wipe of "/". # Impermanence: declares what should survive a wipe of "/".
{ {config, ...}: {
environment.persistence."/persist" = { environment.persistence."/persist" = {
hideMounts = true; hideMounts = true;
@@ -13,7 +13,6 @@
"/var/lib/systemd/timers" # last-run timestamps (e.g. nix gc weekly) "/var/lib/systemd/timers" # last-run timestamps (e.g. nix gc weekly)
"/var/log" "/var/log"
"/var/cache/tuigreet" "/var/cache/tuigreet"
"/var/db/sudo/lectured" # remembers that the sudo lecture was already shown
]; ];
files = [ files = [
@@ -25,4 +24,14 @@
"/var/lib/systemd/random-seed" # avoid a weak entropy pool on first boot "/var/lib/systemd/random-seed" # avoid a weak entropy pool on first boot
]; ];
}; };
# -- How to find what's missing --
# Use the system normally for a week or two, then look for files that
# changed recently outside of what's already declared above:
# find "/home/${config.var.username}" -xdev -type f -mtime -14 \
# -not -path '*/.cache/*' -not -path '*/Cache/*' | less
# Anything that keeps showing up there (app state, history files,
# game saves, browser profile, spotify/lazygit config, GPG state, etc.)
# is a candidate to add above. Do this *before* switching root to a
# wipeable filesystem, not after.
} }
+2
View File
@@ -12,6 +12,8 @@ in {
age.keyFile = "${home}/.config/sops/age/keys.txt"; age.keyFile = "${home}/.config/sops/age/keys.txt";
defaultSopsFile = ./secrets.yaml; defaultSopsFile = ./secrets.yaml;
secrets = { secrets = {
hashedPassword.neededForUsers = true;
ssh-config = { ssh-config = {
owner = username; owner = username;
path = "${home}/.ssh/config"; path = "${home}/.ssh/config";
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -5,6 +5,8 @@
}: let }: let
vpnConnection = "wg-vpn"; vpnConnection = "wg-vpn";
# Same OSD mechanism as home/system/waybar/scripts.nix's waybar-osd: drop the
# text in /tmp/waybar-osd and nudge waybar's custom/osd module to show it.
toggleVpn = pkgs.writeShellScript "toggle-wg-vpn" '' toggleVpn = pkgs.writeShellScript "toggle-wg-vpn" ''
set -euo pipefail set -euo pipefail
nmcli="${pkgs.networkmanager}/bin/nmcli" nmcli="${pkgs.networkmanager}/bin/nmcli"
@@ -18,7 +20,7 @@
fi fi
printf '%s' "$OSD_TEXT" > /tmp/waybar-osd printf '%s' "$OSD_TEXT" > /tmp/waybar-osd
${pkgs.procps}/bin/pkill -f -RTMIN+8 '^waybar$' 2>/dev/null || true ${pkgs.procps}/bin/pkill -x -RTMIN+8 waybar 2>/dev/null || true
''; '';
in { in {
environment.systemPackages = [ environment.systemPackages = [
+1 -1
View File
@@ -3,7 +3,7 @@
gitHooksLib, gitHooksLib,
}: let }: let
hooks = gitHooksLib.run { hooks = gitHooksLib.run {
src = ./.; src = ../.;
hooks = { hooks = {
inject-exec = { inject-exec = {
enable = true; enable = true;