diff options
Diffstat (limited to 'hosts/sif/greetd/default.nix')
-rw-r--r-- | hosts/sif/greetd/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
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 @@ | |||
1 | { pkgs, ... }: | ||
2 | { | ||
3 | config = { | ||
4 | services.greetd = { | ||
5 | enable = true; | ||
6 | # settings.default_session.command = let | ||
7 | # cfg = config.programs.regreet; | ||
8 | # in pkgs.writeShellScript "greeter" '' | ||
9 | # modprobe -r nvidia_drm | ||
10 | |||
11 | # exec ${pkgs.dbus}/bin/dbus-run-session ${lib.getExe pkgs.cage} ${lib.escapeShellArgs cfg.cageArgs} -- ${lib.getExe cfg.package} | ||
12 | # ''; | ||
13 | }; | ||
14 | programs.regreet = { | ||
15 | enable = true; | ||
16 | theme = { | ||
17 | package = pkgs.equilux-theme; | ||
18 | name = "Equilux-compact"; | ||
19 | }; | ||
20 | iconTheme = { | ||
21 | package = pkgs.paper-icon-theme; | ||
22 | name = "Paper-Mono-Dark"; | ||
23 | }; | ||
24 | font = { | ||
25 | package = pkgs.fira; | ||
26 | name = "Fira Sans"; | ||
27 | # size = 6; | ||
28 | }; | ||
29 | cageArgs = [ "-s" "-m" "last" ]; | ||
30 | settings = { | ||
31 | GTK.application_prefer_dark_theme = true; | ||
32 | widget.clock.format = "%F %H:%M:%S%:z"; | ||
33 | background = { | ||
34 | path = pkgs.runCommand "wallpaper.png" { | ||
35 | buildInputs = with pkgs; [ imagemagick ]; | ||
36 | } '' | ||
37 | magick ${./wallpaper.png} -filter Gaussian -resize 6.25% -define filter:sigma=2.5 -resize 1600% "$out" | ||
38 | ''; | ||
39 | fit = "Cover"; | ||
40 | }; | ||
41 | }; | ||
42 | }; | ||
43 | }; | ||
44 | } | ||