2023-03-13 17:18:03 +01:00
|
|
|
{ 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
|
2024-07-25 12:45:31 +02:00
|
|
|
# FIXME: does not build
|
|
|
|
# swww # wallpaper deamon
|
2023-03-13 17:18:03 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2023-03-23 07:21:56 +01:00
|
|
|
home.file.".config/waybar/config" = {
|
|
|
|
source = ./waybar;
|
|
|
|
};
|
|
|
|
|
|
|
|
home.file.".config/waybar/style.css" = {
|
|
|
|
source = ./style.css;
|
|
|
|
};
|
|
|
|
|
2024-07-25 12:45:31 +02:00
|
|
|
# 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";
|
|
|
|
# };
|
2023-03-13 17:18:03 +01:00
|
|
|
|
|
|
|
# services.swww = {
|
|
|
|
# enabled = true;
|
|
|
|
# };
|
|
|
|
|
2023-04-17 10:44:54 +02:00
|
|
|
# # dunst on wayland
|
|
|
|
# services.wired = {
|
|
|
|
# enable = true;
|
|
|
|
# config = ./wired.ron;
|
|
|
|
# };
|
2023-03-13 17:18:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = with lib.maintainers; [ reo101 ];
|
|
|
|
};
|
|
|
|
}
|