From c61bc03a2834b55f7994530f508cb2660ba121b4 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 19 Jan 2025 09:51:59 +0300 Subject: [PATCH] Wallpaper: Snow/rain window. --- config/Live.nix | 4 ++++ host/x86_64-linux/installer/default.nix | 7 +++++++ option/Style.nix | 6 +++--- option/Wallpaper.nix | 4 ++-- package/swayscript/script/Reload.sh | 1 + 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/config/Live.nix b/config/Live.nix index c85c963..20ea1cc 100644 --- a/config/Live.nix +++ b/config/Live.nix @@ -3,8 +3,12 @@ let cfg = config.module.live; in { + # ISSUE: Can't find a way to import this conditionally. + # imports = [ "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix" ]; + config = lib.mkIf cfg.enable { # services.rogue.enable = true; # NOTE: Not available smh. + fileSystems = lib.mkForce config.lib.isoFileSystems; services.mingetty = { autologinUser = "live"; helpLine = '' diff --git a/host/x86_64-linux/installer/default.nix b/host/x86_64-linux/installer/default.nix index 005bb14..c7b23cc 100644 --- a/host/x86_64-linux/installer/default.nix +++ b/host/x86_64-linux/installer/default.nix @@ -29,4 +29,11 @@ module = { package.all = true; }; + + services.mingetty = { + autologinUser = "live"; + helpLine = '' + Welcome! Both live and root users have password "live". Enjoy! + ''; + }; } diff --git a/option/Style.nix b/option/Style.nix index 34e143d..048c102 100644 --- a/option/Style.nix +++ b/option/Style.nix @@ -75,12 +75,12 @@ in cursor = { name = mkStrOption "Bibata-Modern-Custom"; - size = mkIntOption 24; + size = mkIntOption 16; package = mkPkgOption ( inputs.nix-cursors.packages.${pkgs.system}.bibata-modern-cursor.override { accent_color = "#${cfg.color.accent}"; - background_color = "#${cfg.color.bg.light}"; - outline_color = "#${cfg.color.border}"; + background_color = "#${cfg.color.fg.light}"; + outline_color = "#${cfg.color.bg.dark}"; } ); }; diff --git a/option/Wallpaper.nix b/option/Wallpaper.nix index be782d5..c0226b7 100644 --- a/option/Wallpaper.nix +++ b/option/Wallpaper.nix @@ -9,8 +9,8 @@ let purpose = config.module.purpose; # Set the wallpaper here. - url = "https://share.voronind.com/wallpaper/video/SnowMountainHouseMoewallsCom.mp4"; - sha256 = "sha256-IdM1ErINTxP1rx/8GhTZzto0jCRQDZ1y9VnZXAwok7s="; + url = "https://share.voronind.com/wallpaper/video/SnowyAfternoonCozyBedroomMoewallsCom.mp4"; + sha256 = "sha256-nfBQsI4YiNa1N3xroBcsLCkJQJ5ZvOUpOaaBhmMF/3Q="; video = true; # Forse black and white for text. diff --git a/package/swayscript/script/Reload.sh b/package/swayscript/script/Reload.sh index dbc6879..8264110 100644 --- a/package/swayscript/script/Reload.sh +++ b/package/swayscript/script/Reload.sh @@ -4,6 +4,7 @@ function reload() { re() { # Sway. swaymsg reload + swaymsg seat seat0 xcursor_theme $XCURSOR_THEME $XCURSOR_SIZE pkill mpvpaper && wallpaper-video # Waybar.