zaphyra's git: nixfiles

zaphyra's nixfiles

commit dc2d6247ebef2fe3912fe6f9071036c61e3dff9c
parent fcfccc1372b6c983afe1f182a313370d5e819430
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Tue, 1 Jul 2025 20:33:28 +0200

config/home/zaphyra/configure: add `niri`
1 file changed, 92 insertions(+), 0 deletions(-)
A
config/home/zaphyra/configure/niri.nix
|
92
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
diff --git a/config/home/zaphyra/configure/niri.nix b/config/home/zaphyra/configure/niri.nix
@@ -0,0 +1,92 @@
+{
+  config,
+  inputs,
+  homeManagerModules,
+  lib,
+  pkgs,
+  ...
+}:
+
+let
+  nixStd = inputs.nixStd.lib;
+
+in
+{
+
+  imports = with homeManagerModules.zaphyra; [
+    services.niri
+    services.gnome-keyring
+    services.wpaperd
+    services.waybar
+    services.swayosd
+    services.swaync
+    services.swayidle
+    services.wlsunset
+    services.playerctl
+
+    programs.ghostty
+    programs.fuzzel
+  ];
+
+  home.persistence."/nix/persist/home/${config.home.username}".directories = [
+    "dconf/.config/dconf"
+  ];
+
+  programs.fish.shellInitLast = ''
+    if status --is-login
+      if [ (tty) = "/dev/tty1" ]
+    #    niri-session
+      end
+    end
+  '';
+
+  xdg.portal = {
+    config.common.default = [
+      "gtk"
+      "gnome"
+    ];
+    extraPortals = with pkgs; [
+      xdg-desktop-portal-gtk
+      xdg-desktop-portal-gnome
+    ];
+  };
+
+  gtk = {
+    enable = true;
+
+    iconTheme = {
+      name = "Adwaita";
+      package = pkgs.adwaita-icon-theme;
+    };
+
+    cursorTheme = {
+      name = "Vanilla-DMZ";
+      package = pkgs.vanilla-dmz;
+    };
+
+    gtk3.extraConfig = {
+      gtk-application-prefer-dark-theme = 1;
+      gtk-theme-name = "adw-gtk3-dark";
+    };
+  };
+
+  home.packages = with pkgs; [
+    xdg-utils
+    qgnomeplatform
+    wl-clipboard-x11
+    # look and feel from libadwaita ported to GTK-3
+    adw-gtk3
+  ];
+
+  # Use `dconf watch /` to track stateful changes you are doing and store them here.
+  dconf.settings = with inputs.homeManager.lib.hm.gvariant; {
+    "org/gnome/desktop/interface" = {
+      color-scheme = "prefer-dark";
+      accent-color = "green";
+    };
+    "org/gnome/desktop/wm/preferences" = {
+      button-layout = "";
+    };
+  };
+
+}