feat: add portable role
This commit is contained in:
parent
76977ba900
commit
cbd045ac82
5 changed files with 17 additions and 4 deletions
|
@ -9,6 +9,7 @@ let
|
||||||
inherit (lib) mapAttrsToList mkIf hasAttr;
|
inherit (lib) mapAttrsToList mkIf hasAttr;
|
||||||
inherit (lib.my) getExe getExe';
|
inherit (lib.my) getExe getExe';
|
||||||
|
|
||||||
|
roles = osConfig.modules.system.roles;
|
||||||
desktop = osConfig.modules.system.roles.desktop;
|
desktop = osConfig.modules.system.roles.desktop;
|
||||||
in
|
in
|
||||||
mkIf osConfig.programs.hyprland.enable {
|
mkIf osConfig.programs.hyprland.enable {
|
||||||
|
@ -74,7 +75,7 @@ mkIf osConfig.programs.hyprland.enable {
|
||||||
inactive_opacity = 1.0;
|
inactive_opacity = 1.0;
|
||||||
|
|
||||||
shadow = {
|
shadow = {
|
||||||
enabled = true;
|
enabled = roles.portable.enable;
|
||||||
range = 4;
|
range = 4;
|
||||||
render_power = 3;
|
render_power = 3;
|
||||||
color = "rgba(1a1a1aee)";
|
color = "rgba(1a1a1aee)";
|
||||||
|
@ -82,7 +83,7 @@ mkIf osConfig.programs.hyprland.enable {
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
||||||
blur = {
|
blur = {
|
||||||
enabled = true;
|
enabled = roles.portable.enable;
|
||||||
size = 3;
|
size = 3;
|
||||||
passes = 1;
|
passes = 1;
|
||||||
|
|
||||||
|
@ -151,6 +152,7 @@ mkIf osConfig.programs.hyprland.enable {
|
||||||
key_press_enables_dpms = true;
|
key_press_enables_dpms = true;
|
||||||
mouse_move_enables_dpms = true;
|
mouse_move_enables_dpms = true;
|
||||||
disable_autoreload = true;
|
disable_autoreload = true;
|
||||||
|
vfr = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
bindm = [ "$mod,mouse:272,movewindow" ];
|
bindm = [ "$mod,mouse:272,movewindow" ];
|
||||||
|
|
|
@ -24,6 +24,7 @@ in
|
||||||
system = {
|
system = {
|
||||||
roles = {
|
roles = {
|
||||||
desktop.enable = true;
|
desktop.enable = true;
|
||||||
|
portable.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
lib.mkIf config.xdg.portal.enable {
|
lib.mkIf config.xdg.portal.enable {
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
config = {
|
config = {
|
||||||
sway = {
|
common = {
|
||||||
|
default = "*";
|
||||||
"org.freedesktop.impl.portal.Screenshot.PickColor" = [ "${pkgs.hyprpicker}/bin/hyprpicker" ];
|
"org.freedesktop.impl.portal.Screenshot.PickColor" = [ "${pkgs.hyprpicker}/bin/hyprpicker" ];
|
||||||
};
|
};
|
||||||
common.default = "*";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# gtk portal needed to make gtk apps happy
|
# gtk portal needed to make gtk apps happy
|
||||||
|
|
|
@ -3,5 +3,6 @@
|
||||||
./terminal.nix
|
./terminal.nix
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
./gaming.nix
|
./gaming.nix
|
||||||
|
./portable.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
9
options/system/roles/portable.nix
Normal file
9
options/system/roles/portable.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.system.roles.portable = {
|
||||||
|
enable = mkEnableOption "Laptop/Portable tweaks";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue