Compare commits

...

2 commits

Author SHA1 Message Date
739e194041
chore: bump lock
Some checks failed
/ test (push) Failing after 12m49s
2025-03-16 20:09:24 +01:00
b3e96b2cd4
feat: add portable role 2025-03-16 20:02:11 +01:00
6 changed files with 20 additions and 7 deletions

6
flake.lock generated
View file

@ -265,11 +265,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1741851582,
"narHash": "sha256-cPfs8qMccim2RBgtKGF+x9IBCduRvd/N5F4nYpU0TVE=",
"lastModified": 1742069588,
"narHash": "sha256-C7jVfohcGzdZRF6DO+ybyG/sqpo1h6bZi9T56sxLy+k=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "6607cf789e541e7873d40d3a8f7815ea92204f32",
"rev": "c80f6a7e10b39afcc1894e02ef785b1ad0b0d7e5",
"type": "github"
},
"original": {

View file

@ -9,6 +9,7 @@ let
inherit (lib) mapAttrsToList mkIf hasAttr;
inherit (lib.my) getExe getExe';
roles = osConfig.modules.system.roles;
desktop = osConfig.modules.system.roles.desktop;
in
mkIf osConfig.programs.hyprland.enable {
@ -74,7 +75,7 @@ mkIf osConfig.programs.hyprland.enable {
inactive_opacity = 1.0;
shadow = {
enabled = true;
enabled = roles.portable.enable;
range = 4;
render_power = 3;
color = "rgba(1a1a1aee)";
@ -82,7 +83,7 @@ mkIf osConfig.programs.hyprland.enable {
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur = {
enabled = true;
enabled = roles.portable.enable;
size = 3;
passes = 1;
@ -151,6 +152,7 @@ mkIf osConfig.programs.hyprland.enable {
key_press_enables_dpms = true;
mouse_move_enables_dpms = true;
disable_autoreload = true;
vfr = true;
};
bindm = [ "$mod,mouse:272,movewindow" ];

View file

@ -24,6 +24,7 @@ in
system = {
roles = {
desktop.enable = true;
portable.enable = true;
};
outputs = {

View file

@ -7,10 +7,10 @@
lib.mkIf config.xdg.portal.enable {
xdg.portal = {
config = {
sway = {
common = {
default = "*";
"org.freedesktop.impl.portal.Screenshot.PickColor" = [ "${pkgs.hyprpicker}/bin/hyprpicker" ];
};
common.default = "*";
};
# gtk portal needed to make gtk apps happy

View file

@ -3,5 +3,6 @@
./terminal.nix
./desktop.nix
./gaming.nix
./portable.nix
];
}

View file

@ -0,0 +1,9 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.modules.system.roles.portable = {
enable = mkEnableOption "Laptop/Portable tweaks";
};
}