2023-09-04 08:53:41 +01:00
|
|
|
{ config, lib, pkgs, hyprland, anyrun, wallpapers, ... }:
|
2023-07-28 09:09:39 +01:00
|
|
|
let
|
2023-07-11 09:11:48 +01:00
|
|
|
configure-gtk = pkgs.writeTextFile {
|
|
|
|
name = "configure-gtk";
|
|
|
|
destination = "/bin/configure-gtk";
|
|
|
|
executable = true;
|
|
|
|
text = let
|
|
|
|
schema = pkgs.gsettings-desktop-schemas;
|
|
|
|
datadir = "${schema}/share/gsettings-schemas/${schema.name}";
|
|
|
|
gtk-theme = config.gtk.theme.name;
|
|
|
|
icon-theme = config.gtk.iconTheme.name;
|
|
|
|
cursor-theme = config.gtk.cursorTheme.name;
|
|
|
|
in ''
|
|
|
|
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
|
|
|
|
gnome_schema=org.gnome.desktop.interface
|
|
|
|
gsettings set $gnome_schema gtk-theme '${gtk-theme}'
|
|
|
|
gsettings set $gnome_schema icon-theme '${icon-theme}'
|
|
|
|
gsettings set $gnome_schema cursor-theme '${cursor-theme}'
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
imports = [
|
2023-07-24 13:27:05 +01:00
|
|
|
hyprland.homeManagerModules.default
|
2023-08-09 10:27:10 +01:00
|
|
|
../alacritty/tiling.nix
|
|
|
|
./waybar/default.nix
|
2023-09-06 16:58:19 +01:00
|
|
|
./swaync/default.nix
|
2023-08-09 10:27:10 +01:00
|
|
|
./rofi/default.nix
|
|
|
|
./anyrun/default.nix
|
2023-07-16 17:35:36 +01:00
|
|
|
./swaylock.nix
|
|
|
|
./gtk.nix
|
2023-07-11 09:11:48 +01:00
|
|
|
];
|
2023-08-08 12:21:23 +01:00
|
|
|
home.packages = with pkgs; [ libsForQt5.polkit-kde-agent configure-gtk ];
|
2023-07-11 09:11:48 +01:00
|
|
|
programs = {
|
2023-08-28 12:48:56 +01:00
|
|
|
emacs.package = pkgs.emacs29-pgtk;
|
2023-07-11 09:11:48 +01:00
|
|
|
firefox.package = pkgs.firefox-wayland;
|
2023-08-09 10:27:10 +01:00
|
|
|
rofi = {
|
|
|
|
package = pkgs.rofi-wayland;
|
|
|
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
2023-09-05 18:44:29 +01:00
|
|
|
pass.extraConfig = ''
|
|
|
|
backend=wtype
|
|
|
|
clibpoard_backend=wl-clipboard
|
|
|
|
'';
|
2023-08-09 10:27:10 +01:00
|
|
|
};
|
2023-07-11 09:11:48 +01:00
|
|
|
};
|
2023-08-08 08:21:51 +01:00
|
|
|
services.kanshi = {
|
|
|
|
enable = true;
|
|
|
|
systemdTarget = "hyprland-session.target";
|
|
|
|
};
|
2023-07-11 09:11:48 +01:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
package = null; # Use package from nixpkgs
|
|
|
|
xwayland = {
|
|
|
|
enable = true;
|
|
|
|
hidpi = true;
|
|
|
|
};
|
2023-08-22 09:44:40 +01:00
|
|
|
extraConfig = import ./config.nix {
|
|
|
|
pkgs = pkgs;
|
|
|
|
anyrun = anyrun;
|
|
|
|
};
|
2023-07-17 06:58:10 +01:00
|
|
|
};
|
2023-08-21 11:01:19 +01:00
|
|
|
xdg.configFile = {
|
|
|
|
"hypr/hyprpaper.conf".text = ''
|
|
|
|
preload = ${wallpapers.outputs.default}
|
|
|
|
wallpaper = ,${wallpapers.outputs.default}
|
|
|
|
'';
|
|
|
|
"hypr/macchiato.conf".source = ./macchiato.conf;
|
2023-09-04 09:13:06 +01:00
|
|
|
"hypr/extra.conf" = lib.mkDefault { text = ""; };
|
2023-08-21 11:01:19 +01:00
|
|
|
};
|
2023-07-11 09:11:48 +01:00
|
|
|
}
|