feat: niri
This commit is contained in:
parent
baa1766186
commit
3a3d1e6cdf
6 changed files with 33 additions and 35 deletions
|
@ -22,6 +22,8 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users."${name}" = {
|
home-manager.users."${name}" = {
|
||||||
|
marleyos.shell.niri.monitors = ["DP-1" "HDMI-A-1"];
|
||||||
|
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ in {
|
||||||
#
|
#
|
||||||
# Graphical Desktop - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# Graphical Desktop - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
(lib.optionalAttrs cfg.desktop {
|
(lib.optionalAttrs cfg.desktop {
|
||||||
shell.wayland = enabled;
|
shell.niri = enabled;
|
||||||
})
|
})
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
|
||||||
./xorg.nix
|
./xorg.nix
|
||||||
|
|
||||||
./wayland.nix
|
./wayland.nix
|
||||||
|
./niri.nix
|
||||||
|
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./qt.nix
|
./qt.nix
|
||||||
|
|
|
@ -1,12 +1,18 @@
|
||||||
{
|
{
|
||||||
lib,
|
marleylib,
|
||||||
config,
|
config,
|
||||||
|
osConfig,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.marleyos.wayland.niri;
|
inherit (marleylib.module) mkEnableOption' enabled;
|
||||||
|
|
||||||
|
cfg = config.marleyos.shell.niri;
|
||||||
|
osCfg = osConfig.marleyos.shell.niri;
|
||||||
in {
|
in {
|
||||||
options.marleyos.wayland.niri = {
|
options.marleyos.shell.niri = {
|
||||||
enable = lib.mkEnableOption "niri";
|
enable = mkEnableOption' "niri" osCfg.enable;
|
||||||
|
|
||||||
monitors = lib.mkOption {
|
monitors = lib.mkOption {
|
||||||
type = with lib.types; nullOr (listOf str);
|
type = with lib.types; nullOr (listOf str);
|
||||||
|
@ -15,20 +21,19 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf (cfg.enable && pkgs.stdenv.isLinux) {
|
||||||
marleyos = {
|
marleyos = {
|
||||||
wayland.enable = true;
|
shell.wayland = enabled;
|
||||||
|
# programs = {
|
||||||
programs = {
|
# waybar = enabled;
|
||||||
waybar.enable = true;
|
# wlogout = enabled;
|
||||||
wlogout.enable = true;
|
# fuzzel = enabled;
|
||||||
fuzzel.enable = true;
|
# xwayland-satellite = enabled;
|
||||||
xwayland-satellite.enable = true;
|
# };
|
||||||
};
|
# services = {
|
||||||
services = {
|
# swaybg = enabled;
|
||||||
swaybg.enable = true;
|
# swaync = enabled;
|
||||||
swaync.enable = true;
|
# };
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.niri = {
|
programs.niri = {
|
||||||
|
@ -48,7 +53,7 @@ in {
|
||||||
|
|
||||||
### Startup Programs ###
|
### Startup Programs ###
|
||||||
spawn-at-startup = let
|
spawn-at-startup = let
|
||||||
inherit (config.marleyos) apps;
|
inherit (config.marleycfg) apps;
|
||||||
in [
|
in [
|
||||||
{command = ["sh" "-c" "${lib.getExe apps.terminal} -e tmux new -s main -A"];}
|
{command = ["sh" "-c" "${lib.getExe apps.terminal} -e tmux new -s main -A"];}
|
||||||
(cmd (lib.getExe apps.browser))
|
(cmd (lib.getExe apps.browser))
|
||||||
|
@ -95,7 +100,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
### Screenshots ###
|
### Screenshots ###
|
||||||
screenshot-path = "~/pictures/screenshots/%Y-%m-%d %H-%M-%S.png";
|
screenshot-path = "~/${config.xdg.userDirs.pictures}/screenshots/%Y-%m-%d %H-%M-%S.png";
|
||||||
|
|
||||||
### Workspaces ###
|
### Workspaces ###
|
||||||
workspaces = {
|
workspaces = {
|
||||||
|
@ -128,6 +133,7 @@ in {
|
||||||
title = "^Picture-in-Picture$";
|
title = "^Picture-in-Picture$";
|
||||||
}
|
}
|
||||||
{title = "^Picture in picture$";}
|
{title = "^Picture in picture$";}
|
||||||
|
{title = "Bitwarden";}
|
||||||
];
|
];
|
||||||
open-floating = true;
|
open-floating = true;
|
||||||
}
|
}
|
||||||
|
@ -164,7 +170,7 @@ in {
|
||||||
"Ctrl+Alt+Delete".action = quit;
|
"Ctrl+Alt+Delete".action = quit;
|
||||||
|
|
||||||
"Mod+Shift+Slash".action = show-hotkey-overlay;
|
"Mod+Shift+Slash".action = show-hotkey-overlay;
|
||||||
"Mod+Return".action = spawn (lib.getExe config.marleyos.apps.terminal);
|
"Mod+Return".action = spawn (lib.getExe config.marleycfg.apps.terminal);
|
||||||
"Mod+R".action = spawn (lib.getExe config.programs.fuzzel.package);
|
"Mod+R".action = spawn (lib.getExe config.programs.fuzzel.package);
|
||||||
|
|
||||||
"Mod+H".action = focus-column-or-monitor-left;
|
"Mod+H".action = focus-column-or-monitor-left;
|
|
@ -11,6 +11,8 @@ in {
|
||||||
imports = [inputs.niri-flake.nixosModules.niri];
|
imports = [inputs.niri-flake.nixosModules.niri];
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
marleyos.shell.hyprlock.enable = true;
|
||||||
|
|
||||||
programs.niri = {
|
programs.niri = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
{lib, ...}: let
|
|
||||||
inherit (lib.marleyos) enabled;
|
|
||||||
in {
|
|
||||||
marleyos = {
|
|
||||||
bundles.desktop = enabled;
|
|
||||||
|
|
||||||
wayland.niri = {
|
|
||||||
enable = true;
|
|
||||||
monitors = ["DP-1" "HDMI-A-1"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.stateVersion = "24.05";
|
|
||||||
}
|
|
Loading…
Reference in a new issue