diff --git a/home/features/wayland/hyprland/hyprland.conf b/home/features/wayland/hyprland/hyprland.conf index 8f39ca3..6069d85 100644 --- a/home/features/wayland/hyprland/hyprland.conf +++ b/home/features/wayland/hyprland/hyprland.conf @@ -32,6 +32,13 @@ gestures { workspace_swipe_fingers = 3 } +misc { + # Configure the default hyprland branding + disable_hyprland_logo = true + disable_splash_rendering = true + # force_hypr_chan = true +} + # Execute apps at launch exec-once = wezterm & firefox & discocss & spotify & obsidian diff --git a/hosts/nixos/common/global/default.nix b/hosts/nixos/common/global/default.nix index 6d42698..73eb531 100644 --- a/hosts/nixos/common/global/default.nix +++ b/hosts/nixos/common/global/default.nix @@ -27,6 +27,9 @@ in # See [the imperanence readme](https://github.com/nix-community/impermanence#home-manager) programs.fuse.userAllowOther = true; + # Customize tty colors + stylix.targets.console.enable = true; + nixpkgs = { # Add all overlays defined in the overlays directory overlays = builtins.attrValues outputs.overlays ++ [ diff --git a/hosts/nixos/common/optional/greetd.nix b/hosts/nixos/common/optional/greetd.nix new file mode 100644 index 0000000..42cd1e9 --- /dev/null +++ b/hosts/nixos/common/optional/greetd.nix @@ -0,0 +1,33 @@ +{ config, lib, pkgs, ... }: +let + # [Gtkgreet](https://git.sr.ht/~kennylevinsen/gtkgreet) — greetd greeter of choice + gtkgreet = lib.getExe pkgs.greetd.gtkgreet; + + # [Cage](https://github.com/cage-kiosk/cage) — wayland kiosk + cage = lib.getExe pkgs.cage; + + dbus-run-session = "${pkgs.dbus}/bin/dbus-run-session"; + + kiosk = command: + "${dbus-run-session} ${cage} -s -- ${command}"; + + background = ../../../../common/themes/wallpapers/eye.png; +in +{ + services.greetd = { + enable = true; + settings = { + default_session = { + # command = kiosk "${gtkgreet} -b ${background}"; + command = '' + ${lib.getExe pkgs.greetd.tuigreet} \ + -c ${lib.getExe config.programs.hyprland.package} \ + -g "(。◕‿◕。) Welcome to tethys!" \ + --remember + --asterisks + ''; + user = "adrielus"; + }; + }; + }; +} diff --git a/hosts/nixos/tethys/default.nix b/hosts/nixos/tethys/default.nix index 66744ef..88295d5 100644 --- a/hosts/nixos/tethys/default.nix +++ b/hosts/nixos/tethys/default.nix @@ -4,7 +4,7 @@ ../common/users/adrielus.nix ../common/optional/pipewire.nix - ../common/optional/lightdm.nix + ../common/optional/greetd.nix ../common/optional/steam.nix ../common/optional/slambda.nix ../common/optional/xdg-portal.nix diff --git a/modules/home-manager/hyprpaper.nix b/modules/home-manager/hyprpaper.nix index 3c35d62..ee23f22 100644 --- a/modules/home-manager/hyprpaper.nix +++ b/modules/home-manager/hyprpaper.nix @@ -86,6 +86,7 @@ in xdg.configFile."hypr/hyprpaper.conf".text = '' ${lib.concatStringsSep "\n" (lib.forEach cfg.preload (image: "preload=${image}"))} ${lib.concatStringsSep "\n" (lib.forEach cfg.wallpapers mkWallpaper)} + splash=true ''; systemd.user.services.hyprpaper = {