summaryrefslogtreecommitdiff
path: root/hosts/sif/greetd
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-01-23 14:37:58 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-01-23 14:37:58 +0100
commit11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5 (patch)
treec5506cea25ad516d7f28ac8bddb04245b5bd3603 /hosts/sif/greetd
parent07496f4fd71e711859fab2cc858d2c440053f20c (diff)
downloadnixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar
nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar.gz
nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar.bz2
nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar.xz
nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.zip
...
Diffstat (limited to 'hosts/sif/greetd')
-rw-r--r--hosts/sif/greetd/.gitattributes1
-rw-r--r--hosts/sif/greetd/default.nix44
-rw-r--r--hosts/sif/greetd/wallpaper.png3
3 files changed, 48 insertions, 0 deletions
diff --git a/hosts/sif/greetd/.gitattributes b/hosts/sif/greetd/.gitattributes
new file mode 100644
index 00000000..3e1848c2
--- /dev/null
+++ b/hosts/sif/greetd/.gitattributes
@@ -0,0 +1 @@
wallpaper.png filter=lfs diff=lfs merge=lfs -text
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}
diff --git a/hosts/sif/greetd/wallpaper.png b/hosts/sif/greetd/wallpaper.png
new file mode 100644
index 00000000..f6f6c818
--- /dev/null
+++ b/hosts/sif/greetd/wallpaper.png
@@ -0,0 +1,3 @@
1version https://git-lfs.github.com/spec/v1
2oid sha256:fe030fabe1a9adcfc0742e794abe9b595831c1b1b9653f3f9794901297413ffa
3size 6073128