rix101/modules/home-manager/reo101-river/default.nix
reo101 e86d916ae8
feat(homix): update configuration
Extract `river` configuration into a `home-manager` module
Fix `xkb` configuration
Unpin `neovim-nightly-overlay`:
    - https://github.com/nix-community/neovim-nightly-overlay/pull/166
    - https://github.com/nix-community/neovim-nightly-overlay/pull/167
2023-03-13 18:18:03 +02:00

83 lines
1.8 KiB
Nix

{ lib, pkgs, config, ... }:
with lib;
let
cfg = config.reo101.river;
in
{
imports =
[
];
options =
{
reo101.river = {
enable = mkEnableOption "reo101 river setup";
# swww = mkOption {
# type = types.boolean;
# description = "Enable swww (wallpaper daemon)";
# default = false;
# };
};
};
config =
mkIf cfg.enable {
home.packages = with pkgs;
builtins.concatLists [
[
river
swww # wallpaper deamon
waybar # status bar
xwayland
wl-clipboard
slurp # select regions from wayland
grim # grap images from regions
playerctl # music control
]
# (optionals cfg.swww [
# swww
# ])
];
home.file.".config/river/init" = {
executable = true;
source = ./river;
};
systemd.user.services."swww" = {
Unit = {
Description = "swww Daemon";
PartOf = "graphical-session.target";
};
Service = {
ExecStart = "${pkgs.swww}/bin/swww init --no-daemon";
ExecStop = "${pkgs.swww}/bin/swww kill";
Type = "simple";
Restart = "always";
RestartSec = 5;
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
# description = "Swww Deamon";
# wantedBy = [ "graphical-session.target" ];
# partOf = [ "graphical-session.target" ];
# script = "${pkgs.swww}/bin/swww init --no-daemon";
};
# services.swww = {
# enabled = true;
# };
# dunst on wayland
services.wired = {
enable = true;
config = ./wired.ron;
};
};
meta = {
maintainers = with lib.maintainers; [ reo101 ];
};
}