2023-01-29 19:59:36 +01:00
|
|
|
{ config, pkgs, stablePkgs, ... }:
|
2022-09-26 16:02:29 +02:00
|
|
|
|
2022-12-30 23:29:43 +01:00
|
|
|
let
|
|
|
|
configure-gtk = let
|
|
|
|
schema = pkgs.gsettings-desktop-schemas;
|
|
|
|
datadir = "${schema}/share/gsettings-schemas/${schema.name}";
|
|
|
|
gsettings = "${pkgs.glib}/bin/gsettings";
|
|
|
|
in pkgs.writeScriptBin "configure-gtk" ''
|
|
|
|
#!${pkgs.dash}/bin/dash
|
2022-09-26 16:02:29 +02:00
|
|
|
|
2022-12-30 23:29:43 +01:00
|
|
|
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
|
|
|
|
|
|
|
|
${gsettings} set org.gnome.desktop.interface gtk-theme 'gruvbox-dark'
|
|
|
|
${gsettings} set org.gnome.desktop.interface icon-theme 'Papirus-Dark'
|
|
|
|
${gsettings} set org.gnome.desktop.wm.preferences button-layout ""
|
|
|
|
'';
|
|
|
|
in {
|
2023-01-29 19:59:36 +01:00
|
|
|
imports = [
|
|
|
|
./bemenu.nix
|
|
|
|
./waybar.nix
|
|
|
|
./foot.nix
|
|
|
|
./mako.nix
|
|
|
|
./swaylock.nix
|
|
|
|
./kanshi.nix
|
|
|
|
];
|
2022-12-30 23:29:43 +01:00
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
configure-gtk
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
light
|
|
|
|
pamixer
|
|
|
|
playerctl
|
|
|
|
river
|
2023-01-29 19:59:36 +01:00
|
|
|
kile-wl
|
2022-12-30 23:29:43 +01:00
|
|
|
swaybg
|
|
|
|
wl-clipboard
|
2023-01-07 20:05:55 +01:00
|
|
|
wtype
|
2022-12-30 23:29:43 +01:00
|
|
|
xdg-utils
|
|
|
|
];
|
2022-09-26 16:02:29 +02:00
|
|
|
|
|
|
|
programs.zsh.loginExtra = ''
|
|
|
|
[[ -z "''${DISPLAY}" ]] && [[ "$(tty)" = "/dev/tty1" ]] && \
|
2022-12-29 20:55:37 +01:00
|
|
|
export XKB_DEFAULT_LAYOUT="us"
|
|
|
|
export XKB_DEFAULT_VARIANT="altgr-intl"
|
|
|
|
export XKB_DEFAULT_OPTIONS="caps:escape"
|
2022-09-26 16:02:29 +02:00
|
|
|
exec ${pkgs.river}/bin/river
|
|
|
|
'';
|
2022-12-30 18:54:52 +01:00
|
|
|
|
|
|
|
home.file.river_init = {
|
|
|
|
executable = true;
|
|
|
|
target = "${config.xdg.configHome}/river/init";
|
|
|
|
source = ./init;
|
|
|
|
};
|
2022-09-26 16:02:29 +02:00
|
|
|
}
|