From 11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 23 Jan 2025 14:37:58 +0100 Subject: ... --- hosts/sif/greetd/default.nix | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 hosts/sif/greetd/default.nix (limited to 'hosts/sif/greetd/default.nix') diff --git a/hosts/sif/greetd/default.nix b/hosts/sif/greetd/default.nix new file mode 100644 index 00000000..f609fc05 --- /dev/null +++ b/hosts/sif/greetd/default.nix @@ -0,0 +1,44 @@ +{ pkgs, ... }: +{ + config = { + services.greetd = { + enable = true; + # settings.default_session.command = let + # cfg = config.programs.regreet; + # in pkgs.writeShellScript "greeter" '' + # modprobe -r nvidia_drm + + # exec ${pkgs.dbus}/bin/dbus-run-session ${lib.getExe pkgs.cage} ${lib.escapeShellArgs cfg.cageArgs} -- ${lib.getExe cfg.package} + # ''; + }; + programs.regreet = { + enable = true; + theme = { + package = pkgs.equilux-theme; + name = "Equilux-compact"; + }; + iconTheme = { + package = pkgs.paper-icon-theme; + name = "Paper-Mono-Dark"; + }; + font = { + package = pkgs.fira; + name = "Fira Sans"; + # size = 6; + }; + cageArgs = [ "-s" "-m" "last" ]; + settings = { + GTK.application_prefer_dark_theme = true; + widget.clock.format = "%F %H:%M:%S%:z"; + background = { + path = pkgs.runCommand "wallpaper.png" { + buildInputs = with pkgs; [ imagemagick ]; + } '' + magick ${./wallpaper.png} -filter Gaussian -resize 6.25% -define filter:sigma=2.5 -resize 1600% "$out" + ''; + fit = "Cover"; + }; + }; + }; + }; +} -- cgit v1.2.3