Generalize and move configs
This commit is contained in:
parent
17f2a16f48
commit
ffb1b6d541
|
@ -5,7 +5,7 @@
|
|||
./programs
|
||||
./services
|
||||
./settings
|
||||
./sway
|
||||
./wms
|
||||
./users
|
||||
../../overlays
|
||||
../../variables
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
wayland.windowManager.sway.config = {
|
||||
bars = [ {command = "waybar";} ];
|
||||
|
||||
startup = [
|
||||
# Scratchpads
|
||||
{command = "foot -a gotop -T Gotop gotop";}
|
||||
{command = "foot -a music -T Music ncmpcpp";}
|
||||
{command = "foot -a sound -T Sound pulsemixer";}
|
||||
{command = "easyeffects";}
|
||||
|
||||
# Daemons and tray apps
|
||||
{command = "wl-paste -t text --watch clipman store -P";}
|
||||
{command = "wl-copy";}
|
||||
{command = "mako";}
|
||||
{command = "sunshine";}
|
||||
|
||||
# Polkit agent
|
||||
{command = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";}
|
||||
|
||||
# Foreground apps
|
||||
{command = "librewolf -P Misc --name=MiscBrowser";}
|
||||
{command = "vesktop";}
|
||||
{command = "fractal";}
|
||||
{command = "thunderbird";}
|
||||
];
|
||||
};
|
||||
}
|
8
modules/home/wms/default.nix
Normal file
8
modules/home/wms/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./sway
|
||||
./swaylock
|
||||
./waybar
|
||||
];
|
||||
}
|
32
modules/home/wms/sway/autostart/default.nix
Normal file
32
modules/home/wms/sway/autostart/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
wayland.windowManager.sway.config = {
|
||||
bars = [{ command = "waybar"; }];
|
||||
|
||||
startup = [
|
||||
# Lock on startup
|
||||
{ command = "swaylock"; }
|
||||
|
||||
# Scratchpads
|
||||
{ command = "foot -a gotop -T Gotop gotop"; }
|
||||
{ command = "foot -a music -T Music ncmpcpp"; }
|
||||
{ command = "foot -a sound -T Sound pulsemixer"; }
|
||||
{ command = "easyeffects"; }
|
||||
|
||||
# Daemons and tray apps
|
||||
{ command = "wl-paste -t text --watch clipman store -P"; }
|
||||
{ command = "wl-copy"; }
|
||||
{ command = "mako"; }
|
||||
{ command = "sunshine"; }
|
||||
|
||||
# Polkit agent
|
||||
{ command = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1"; }
|
||||
|
||||
# Foreground apps
|
||||
{ command = "librewolf -P Misc --name=MiscBrowser"; }
|
||||
{ command = "vesktop"; }
|
||||
{ command = "fractal"; }
|
||||
{ command = "thunderbird"; }
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,15 +1,14 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./autostart
|
||||
./hardware
|
||||
./theme
|
||||
./hotkeys
|
||||
./programs
|
||||
./rules
|
||||
./autostart
|
||||
./waybar
|
||||
./swayshot
|
||||
./swaylock
|
||||
./swaysleep
|
||||
./theme
|
||||
];
|
||||
|
||||
wayland.windowManager.sway = {
|
10
modules/home/wms/sway/swaysleep/default.nix
Normal file
10
modules/home/wms/sway/swaysleep/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
(pkgs.writeScriptBin "swaysleep" ''
|
||||
swaylock & ${pkgs.swayidle}/bin/swayidle -w \
|
||||
timeout 1 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"; pkill -9 swayidle'
|
||||
'')
|
||||
];
|
||||
}
|
|
@ -41,17 +41,4 @@ in {
|
|||
indicator-radius = 80;
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
(pkgs.writeScriptBin "swaysleep" ''
|
||||
swaylock & ${pkgs.swayidle}/bin/swayidle -w \
|
||||
timeout 1 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"; pkill -9 swayidle'
|
||||
'')
|
||||
];
|
||||
|
||||
# Enable Swaylock on startup
|
||||
wayland.windowManager.sway.config.startup = [
|
||||
{ command = "swaylock"; }
|
||||
];
|
||||
}
|
|
@ -1,9 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./greetd
|
||||
./portals
|
||||
];
|
||||
imports = [ ./greetd ];
|
||||
|
||||
programs.sway = {
|
||||
enable = config.system.desktop.enable;
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
xdg.portal = {
|
||||
wlr = {
|
||||
enable = config.system.desktop.enable;
|
||||
settings.screencast = {
|
||||
max_fps = 60;
|
||||
chooser_type = "simple";
|
||||
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or -B 00000066 -b 00000099";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -6,6 +6,7 @@
|
|||
./keyd
|
||||
./libvirtd
|
||||
./mpd
|
||||
./portals
|
||||
./ssh
|
||||
./sunshine
|
||||
./tlp
|
||||
|
|
6
modules/system/services/general/portals/default.nix
Normal file
6
modules/system/services/general/portals/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./wlr
|
||||
];
|
||||
}
|
11
modules/system/services/general/portals/wlr/default.nix
Normal file
11
modules/system/services/general/portals/wlr/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
xdg.portal.wlr = {
|
||||
enable = config.system.desktop.enable;
|
||||
settings.screencast = {
|
||||
max_fps = 60;
|
||||
chooser_type = "simple";
|
||||
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or -B 00000066 -b 00000099";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue