diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-23 14:37:58 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-23 14:37:58 +0100 |
commit | 11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5 (patch) | |
tree | c5506cea25ad516d7f28ac8bddb04245b5bd3603 /hosts | |
parent | 07496f4fd71e711859fab2cc858d2c440053f20c (diff) | |
download | nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar.gz nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar.bz2 nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar.xz nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.zip |
...
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/sif/default.nix | 34 | ||||
-rw-r--r-- | hosts/sif/greetd/.gitattributes | 1 | ||||
-rw-r--r-- | hosts/sif/greetd/default.nix | 44 | ||||
-rw-r--r-- | hosts/sif/greetd/wallpaper.png | 3 | ||||
-rw-r--r-- | hosts/sif/mail/default.nix | 2 |
5 files changed, 51 insertions, 33 deletions
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 655b2e9c..7db46c67 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix | |||
@@ -12,7 +12,7 @@ let | |||
12 | in { | 12 | in { |
13 | imports = with flake.nixosModules.systemProfiles; [ | 13 | imports = with flake.nixosModules.systemProfiles; [ |
14 | ./hw.nix | 14 | ./hw.nix |
15 | ./mail ./libvirt | 15 | ./mail ./libvirt ./greetd |
16 | tmpfs-root bcachefs initrd-all-crypto-modules default-locale openssh rebuild-machines niri-unstable networkmanager | 16 | tmpfs-root bcachefs initrd-all-crypto-modules default-locale openssh rebuild-machines niri-unstable networkmanager |
17 | flakeInputs.nixos-hardware.nixosModules.lenovo-thinkpad-p1 | 17 | flakeInputs.nixos-hardware.nixosModules.lenovo-thinkpad-p1 |
18 | flakeInputs.impermanence.nixosModules.impermanence | 18 | flakeInputs.impermanence.nixosModules.impermanence |
@@ -470,39 +470,8 @@ in { | |||
470 | exportConfiguration = true; | 470 | exportConfiguration = true; |
471 | }; | 471 | }; |
472 | libinput.enable = true; | 472 | libinput.enable = true; |
473 | |||
474 | greetd = { | ||
475 | enable = true; | ||
476 | # settings.default_session.command = let | ||
477 | # cfg = config.programs.regreet; | ||
478 | # in pkgs.writeShellScript "greeter" '' | ||
479 | # modprobe -r nvidia_drm | ||
480 | |||
481 | # exec ${pkgs.dbus}/bin/dbus-run-session ${lib.getExe pkgs.cage} ${lib.escapeShellArgs cfg.cageArgs} -- ${lib.getExe cfg.package} | ||
482 | # ''; | ||
483 | }; | ||
484 | }; | 473 | }; |
485 | 474 | ||
486 | programs.regreet = { | ||
487 | enable = true; | ||
488 | theme = { | ||
489 | package = pkgs.equilux-theme; | ||
490 | name = "Equilux-compact"; | ||
491 | }; | ||
492 | iconTheme = { | ||
493 | package = pkgs.paper-icon-theme; | ||
494 | name = "Paper-Mono-Dark"; | ||
495 | }; | ||
496 | font = { | ||
497 | package = pkgs.fira; | ||
498 | name = "Fira Sans"; | ||
499 | # size = 6; | ||
500 | }; | ||
501 | cageArgs = [ "-s" "-m" "last" ]; | ||
502 | settings = { | ||
503 | GTK.application_prefer_dark_theme = true; | ||
504 | }; | ||
505 | }; | ||
506 | programs.niri.enable = true; | 475 | programs.niri.enable = true; |
507 | 476 | ||
508 | systemd.tmpfiles.settings = { | 477 | systemd.tmpfiles.settings = { |
@@ -702,6 +671,7 @@ in { | |||
702 | 671 | ||
703 | services.dbus.packages = with pkgs; | 672 | services.dbus.packages = with pkgs; |
704 | [ dbus dconf | 673 | [ dbus dconf |
674 | xdg-desktop-portal-gtk | ||
705 | ]; | 675 | ]; |
706 | 676 | ||
707 | services.udisks2.enable = true; | 677 | services.udisks2.enable = true; |
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 @@ | |||
1 | version https://git-lfs.github.com/spec/v1 | ||
2 | oid sha256:fe030fabe1a9adcfc0742e794abe9b595831c1b1b9653f3f9794901297413ffa | ||
3 | size 6073128 | ||
diff --git a/hosts/sif/mail/default.nix b/hosts/sif/mail/default.nix index f36cd599..8d6cd705 100644 --- a/hosts/sif/mail/default.nix +++ b/hosts/sif/mail/default.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { config, pkgs, ... }: | 1 | { config, lib, pkgs, ... }: |
2 | { | 2 | { |
3 | services.postfix = { | 3 | services.postfix = { |
4 | enable = true; | 4 | enable = true; |