ctucx.git: nixfiles

ctucx' 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 
87 
88 
89 
90 
91 
92 
93 
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
111 
112 
113 
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 
137 
138 
139 
140 
141 
142 
143 
{ inputs, config, lib, pkgs, home-manager, ... }:

{


  nixpkgs.config.allowUnfree = true;

  networking.networkmanager.wifi.backend = "iwd";

  programs = {
    dconf.enable = true;
  };

  users.users.katja.extraGroups = [ "dialout" "networkmanager"];

  services = {
    nscd.enable  = true;
  };

  home-manager.users.katja = {
    manual.html.enable = true;
    services.gnome-keyring.enable = true;

    home.packages = with pkgs; [
      gnomeExtensions.user-themes
      gnomeExtensions.just-perfection
      gnomeExtensions.arcmenu
      gnomeExtensions.dash-to-panel
      gnomeExtensions.tray-icons-reloaded
      gnomeExtensions.airpod-battery-monitor
      gnomeExtensions.battery-time-percentage-compact
      gnomeExtensions.space-bar
    ];

    gtk = {
      enable = true;

      gtk3.extraConfig = {
        Settings = ''
          gtk-application-prefer-dark-theme=1
        '';
      };
      gtk4.extraConfig = {
        Settings = ''
          gtk-application-prefer-dark-theme=1
        '';
      };
    };

    # Use `dconf watch /` to track stateful changes you are doing and store them here.
    dconf.settings = with inputs.home-manager.lib.hm.gvariant; {
      "org/gnome/mutter" = {
        edge-tiling        = true;
        dynamic-workspaces = false;
      };
      "org/gnome/shell" = {
        disable-user-extensions = false;
        # `gnome-extensions list` for a list
        enabled-extensions = [
          "user-theme@gnome-shell-extensions.gcampax.github.com"
          "just-perfection-desktop@just-perfection"
          "trayIconsReloaded@selfmade.pl"
          "dash-to-panel@jderose9.github.com"
          "arcmenu@arcmenu.com"
          "Airpod-Battery-Monitor@maniacx.github.com"
          "batterytimepercentagecompact@sagrland.de"
          "space-bar@luchrioh"
        ];
        favorite-apps = [ "firefox.desktop" "org.gnome.Terminal.desktop"  "org.gnome.Nautilus.desktop" ];
      };
      "org/gnome/desktop/interface" = {
        color-scheme = "prefer-dark";
        enable-hot-corners = false;
      };
      "org/gnome/desktop/input-sources" = {
        sources = [
          (mkTuple ["xkb" "us+mac"])
          (mkTuple ["xkb" "de"])
          (mkTuple ["xkb" "ru+mac"])
        ];
      };
      #ยง `gsettings get org.gnome.shell.extensionst.user-theme name`
      "org/gnome/shell/extensions/user-theme" = {
      };
      "org/gnome/desktop/wm/preferences" = {
        button-layout   = "close:appmenu";
        auto-raise      = true;
        focus-mode      = "sloppy";
        num-workspaces  = 4;
        workspace-names = [ "Main" "Mail" "Term" ];
      };
      "org/gnome/desktop/background" = {
        picture-uri = "file:///run/current-system/sw/share/backgrounds/gnome/vnc-l.png";
        picture-uri-dark = "file:///run/current-system/sw/share/backgrounds/gnome/vnc-d.png";
      };
      "org/gnome/desktop/screensaver" = {
        picture-uri = "file:///run/current-system/sw/share/backgrounds/gnome/vnc-d.png";
        primary-color = "#3465a4";
        secondary-color = "#000000";
      };
    };


  };

  ctucxConfig = {
    configure = {
      mobileDevice = false;
      fonts        = true;
      bluetooth    = true;
    };

    wm.gnome.enable     = true;

    services = {
      pipewire.enable    = true;
      easyeffects.enable = true;

      syncthing.enable   = true;
    };

    programs = {
      ddcutil.enable       = true;
      alacritty.enable     = true;

      firefox.enable       = true;
      thunderbird.enable   = true;
      fractal.enable       = true;
      tuba.enable          = true;
      paper-plane.enable   = true;

      libreoffice.enable   = true;
      ausweisapp.enable    = true;

      zathura.enable       = true;
      imv.enable           = true;
      mpv.enable           = true;

      bitwarden-cli.enable = true;
    };
  };

}