2023-02-06 17:03:33 +01:00
|
|
|
{ config, pkgs, ... }:
|
2022-09-26 16:02:29 +02:00
|
|
|
|
2023-02-12 16:16:51 +01:00
|
|
|
{
|
2023-01-29 19:59:36 +01:00
|
|
|
imports = [
|
2023-06-04 11:34:44 +02:00
|
|
|
./kile
|
2023-01-29 19:59:36 +01:00
|
|
|
./bemenu.nix
|
|
|
|
./foot.nix
|
2023-02-06 16:38:52 +01:00
|
|
|
./init.nix
|
|
|
|
./kanshi.nix
|
2023-01-29 19:59:36 +01:00
|
|
|
./mako.nix
|
2023-02-06 16:38:52 +01:00
|
|
|
./swaybg.nix
|
2023-01-29 19:59:36 +01:00
|
|
|
./swaylock.nix
|
2023-02-06 16:38:52 +01:00
|
|
|
./waybar.nix
|
2023-05-26 15:08:52 +02:00
|
|
|
./zathura.nix
|
2023-01-29 19:59:36 +01:00
|
|
|
];
|
2022-12-30 23:29:43 +01:00
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
2023-02-12 16:16:51 +01:00
|
|
|
imv
|
2022-12-30 23:29:43 +01:00
|
|
|
light
|
|
|
|
pamixer
|
|
|
|
playerctl
|
2023-08-01 12:48:39 +02:00
|
|
|
ristate
|
2022-12-30 23:29:43 +01:00
|
|
|
river
|
|
|
|
swaybg
|
|
|
|
wl-clipboard
|
2023-01-07 20:05:55 +01:00
|
|
|
wtype
|
2022-12-30 23:29:43 +01:00
|
|
|
xdg-utils
|
2023-08-02 13:08:58 +02:00
|
|
|
(pkgs.callPackage ./screenshot.nix { inherit config pkgs; })
|
2022-12-30 23:29:43 +01:00
|
|
|
];
|
2022-09-26 16:02:29 +02:00
|
|
|
|
2023-08-02 13:07:07 +02:00
|
|
|
programs. zsh. loginExtra = ''
|
2023-02-03 17:41:33 +01:00
|
|
|
if [[ -z "''${DISPLAY}" ]] && [[ "''${XDG_VTNR}" -eq 1 ]]; then
|
2023-08-02 13:07:07 +02:00
|
|
|
exec ${ pkgs. river}/bin/river
|
2023-02-03 17:41:33 +01:00
|
|
|
fi
|
2022-09-26 16:02:29 +02:00
|
|
|
'';
|
2022-12-30 18:54:52 +01:00
|
|
|
|
2023-08-02 13:07:07 +02:00
|
|
|
home. sessionVariables. XKB_DEFAULT_LAYOUT = "us";
|
|
|
|
home. sessionVariables. XKB_DEFAULT_VARIANT = "altgr-intl";
|
|
|
|
home. sessionVariables. XKB_DEFAULT_OPTIONS = "caps:escape";
|
2023-02-06 16:38:52 +01:00
|
|
|
|
2023-08-02 13:07:07 +02:00
|
|
|
systemd. user. targets. river-session = {
|
2023-02-06 16:38:52 +01:00
|
|
|
Unit = {
|
|
|
|
Description = "river window manager session";
|
|
|
|
BindsTo = "graphical-session.target";
|
|
|
|
Wants = "graphical-session-pre.target";
|
|
|
|
After = "graphical-session-pre.target";
|
|
|
|
};
|
2022-12-30 18:54:52 +01:00
|
|
|
};
|
2023-02-17 12:31:30 +01:00
|
|
|
|
2023-08-02 13:07:07 +02:00
|
|
|
systemd. user. services. network-manager-applet = {
|
2023-02-17 12:31:30 +01:00
|
|
|
Unit = {
|
|
|
|
Description = "nm-applet";
|
|
|
|
BindsTo = [ "river-session.target" ];
|
|
|
|
};
|
|
|
|
Service = {
|
|
|
|
Type = "simple";
|
2023-08-02 13:07:07 +02:00
|
|
|
ExecStart = "${ pkgs. networkmanagerapplet}/bin/nm-applet --indicator";
|
2023-02-17 12:31:30 +01:00
|
|
|
};
|
|
|
|
Install = { WantedBy = [ "river-session.target" ]; };
|
|
|
|
};
|
|
|
|
|
2022-09-26 16:02:29 +02:00
|
|
|
}
|