Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87367dab04 | ||
|
|
0a35c97379 | ||
|
|
2fb99175f7 |
+23
-24
@@ -110,7 +110,6 @@ in
|
|||||||
uid = 1000;
|
uid = 1000;
|
||||||
extraGroups = ["audio" "video" "input" "networkmanager" "wheel" "seat"];
|
extraGroups = ["audio" "video" "input" "networkmanager" "wheel" "seat"];
|
||||||
openssh.authorizedKeys.keys = myKey;
|
openssh.authorizedKeys.keys = myKey;
|
||||||
password = "Fuckp@ssw0rds";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.getty.autologinUser = "kiosk";
|
services.getty.autologinUser = "kiosk";
|
||||||
@@ -240,30 +239,30 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# --- Health check service: runs after nixos-upgrade ---
|
# --- Health check service: runs after nixos-upgrade ---
|
||||||
systemd.services.radiantwave-healthcheck = {
|
# systemd.services.radiantwave-healthcheck = {
|
||||||
description = "Verify RadiantWave is running after upgrade, rollback if not";
|
# description = "Verify RadiantWave is running after upgrade, rollback if not";
|
||||||
after = [ "nixos-upgrade.service" ];
|
# after = [ "nixos-upgrade.service" ];
|
||||||
wantedBy = [ "nixos-upgrade.service" ];
|
# wantedBy = [ "nixos-upgrade.service" ];
|
||||||
serviceConfig = {
|
# serviceConfig = {
|
||||||
Type = "oneshot";
|
# Type = "oneshot";
|
||||||
# Give cage time to start radiantwave after the switch
|
# # Give cage time to start radiantwave after the switch
|
||||||
ExecStartPre = "${pkgs.coreutils}/bin/sleep 90";
|
# ExecStartPre = "${pkgs.coreutils}/bin/sleep 90";
|
||||||
};
|
# };
|
||||||
script = ''
|
# script = ''
|
||||||
# The installed `radiantwave` is a makeWrapper script that execs the real
|
# # The installed `radiantwave` is a makeWrapper script that execs the real
|
||||||
# binary (`.radiantwave-unwrapped`), so the process comm is not exactly
|
# # binary (`.radiantwave-unwrapped`), so the process comm is not exactly
|
||||||
# `radiantwave`; match the exec'd binary's command line instead.
|
# # `radiantwave`; match the exec'd binary's command line instead.
|
||||||
if ${pkgs.procps}/bin/pgrep -f '\.radiantwave-unwrapped' > /dev/null; then
|
# if ${pkgs.procps}/bin/pgrep -f '\.radiantwave-unwrapped' > /dev/null; then
|
||||||
echo "RadiantWave is running, upgrade successful"
|
# echo "RadiantWave is running, upgrade successful"
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
echo "RadiantWave not found after upgrade, rolling back..."
|
# echo "RadiantWave not found after upgrade, rolling back..."
|
||||||
|
|
||||||
# Roll back to previous NixOS generation
|
# # Roll back to previous NixOS generation
|
||||||
/run/current-system/sw/bin/nixos-rebuild switch --rollback
|
# /run/current-system/sw/bin/nixos-rebuild switch --rollback
|
||||||
|
|
||||||
echo "Rollback completed at $(date)"
|
# echo "Rollback completed at $(date)"
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,8 +43,8 @@
|
|||||||
rsvg-convert \
|
rsvg-convert \
|
||||||
--keep-aspect-ratio \
|
--keep-aspect-ratio \
|
||||||
--background-color=#111318 \
|
--background-color=#111318 \
|
||||||
--width=3840 \
|
--width=1920 \
|
||||||
--height=2160 \
|
--height=1080 \
|
||||||
--output=$out/share/plymouth/themes/radiantwave/splash.png \
|
--output=$out/share/plymouth/themes/radiantwave/splash.png \
|
||||||
$src
|
$src
|
||||||
sed 's,/usr/,'"$out"'/,g' ${./plymouth-theme/radiantwave.plymouth} \
|
sed 's,/usr/,'"$out"'/,g' ${./plymouth-theme/radiantwave.plymouth} \
|
||||||
|
|||||||
Reference in New Issue
Block a user