zaphyra's git: nixfiles

zaphyra's nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 
67 
68 
69 
70 
71 
72 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 
86 
{
  config,
  inputs,
  homeManagerModules,
  lib,
  pkgs,
  ...
}:

let
  nixStd = inputs.nixStd.lib;

in
{

  imports = with homeManagerModules.zaphyra; [
    services.niri
    services.gnome-keyring
    services.batsignal
    services.wpaperd
    services.waybar
    services.swayosd
    services.swaync
    services.swayidle
    services.wlsunset
    services.playerctl

    programs.ghostty
    programs.fuzzel
    programs.overskride
  ];

  home.persistence."/nix/persist/home/${config.home.username}".directories = [
    "dconf/.config/dconf"
  ];

  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 = "";
    };
  };

}