added river
This commit is contained in:
parent
a643248e06
commit
faa055caf2
8 changed files with 45 additions and 12 deletions
|
@ -15,6 +15,7 @@
|
||||||
hyprlock.enable = false;
|
hyprlock.enable = false;
|
||||||
hypridle.enable = false;
|
hypridle.enable = false;
|
||||||
hyprpaper.enable = false;
|
hyprpaper.enable = false;
|
||||||
|
wm.river.enable = true;
|
||||||
|
|
||||||
hyprland = {
|
hyprland = {
|
||||||
hardware.Puenktchen.enable = true;
|
hardware.Puenktchen.enable = true;
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./niri.nix
|
||||||
|
./river.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ inputs, lib, config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
SCRIPTS = "$XDG_CONFIG_HOME/desktop-utils/scripts";
|
SCRIPTS = "$XDG_CONFIG_HOME/desktop-utils/scripts";
|
||||||
in
|
in
|
||||||
lib.mkIf config.desktop.enable {
|
lib.mkIf config.desktop.wm.niri.enable {
|
||||||
|
|
||||||
|
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
|
||||||
|
|
||||||
programs.niri.enable = true;
|
programs.niri.enable = true;
|
||||||
|
|
19
modules/default/home-manager/desktop/compositors/river.nix
Normal file
19
modules/default/home-manager/desktop/compositors/river.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
lib.mkIf config.desktop.wm.river.enable {
|
||||||
|
home-manager.users.willifan = {
|
||||||
|
wayland.windowManager.river = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
map = {
|
||||||
|
normal = {
|
||||||
|
"Super Q" = "spawn 'kitty'";
|
||||||
|
"Super R" = "spawn 'fuzzel'";
|
||||||
|
"Super E" = "spawn 'thunar'";
|
||||||
|
|
||||||
|
"Super C" = "close";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./hyprland
|
./hyprland
|
||||||
./niri
|
./compositors
|
||||||
|
|
||||||
./options.nix
|
./options.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = lib.mkOption {
|
enable = lib.mkOption {
|
||||||
default = config.desktop.enable;
|
default = false;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
hardware = {
|
hardware = {
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
{ inputs, ... }:
|
|
||||||
{
|
|
||||||
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./niri.nix
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -10,6 +10,17 @@
|
||||||
default = config.desktop.enable;
|
default = config.desktop.enable;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
wm = {
|
||||||
|
niri.enable = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
type = lib.types.bool;
|
||||||
|
};
|
||||||
|
river.enable = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
type = lib.types.bool;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue