cleanup
This commit is contained in:
parent
cf1de4bf9d
commit
570e6e658a
11 changed files with 34 additions and 28 deletions
|
@ -83,18 +83,6 @@ in
|
||||||
# sway_conf = pkgs.writeText "sway.conf" text;
|
# sway_conf = pkgs.writeText "sway.conf" text;
|
||||||
in
|
in
|
||||||
with cfg; lib.mkIf (enable && sway.enable) {
|
with cfg; lib.mkIf (enable && sway.enable) {
|
||||||
nixpkgs.overlays = [
|
|
||||||
(final: prev: {
|
|
||||||
wlroots = prev.wlroots.overrideAttrs (o: {
|
|
||||||
patches = (o.patches or [ ]) ++ [
|
|
||||||
./patches/lessflicker.patch
|
|
||||||
# ./patches/screenshare.patch
|
|
||||||
];
|
|
||||||
});
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
environment.etc."${conf_path}".text = sway_conf;
|
environment.etc."${conf_path}".text = sway_conf;
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
@ -120,6 +108,8 @@ in
|
||||||
${config.programs.sway.package}/bin/swaymsg reload
|
${config.programs.sway.package}/bin/swaymsg reload
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
rm -rf /home/*/.cache/rmenu
|
||||||
'';
|
'';
|
||||||
reloadTriggers = [ config.environment.etc."${conf_path}".source ];
|
reloadTriggers = [ config.environment.etc."${conf_path}".source ];
|
||||||
};
|
};
|
||||||
|
@ -158,7 +148,7 @@ in
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
export WLR_RENDERER=vulkan
|
export WLR_RENDERER=vulkan
|
||||||
export DRI_PRIME=1
|
export DRI_PRIME=1
|
||||||
# export MESA_LOADER_DRIVER_OVERRIDE="zink"
|
export NIXOS_OZONE_WL=1
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
./modules/users.nix
|
./modules/users.nix
|
||||||
./modules/system-packages.nix
|
./modules/system-packages.nix
|
||||||
./modules/kvm.nix
|
./modules/kvm.nix
|
||||||
|
./overlays
|
||||||
{ environment.systemPackages = [ agenix.packages.${system}.default ]; }
|
{ environment.systemPackages = [ agenix.packages.${system}.default ]; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
geany
|
geany
|
||||||
webcord
|
webcord
|
||||||
discord
|
discord
|
||||||
|
obs-studio
|
||||||
kwrited
|
kwrited
|
||||||
element-desktop
|
element-desktop
|
||||||
ghidra
|
ghidra
|
||||||
|
|
6
overlays/default.nix
Normal file
6
overlays/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ lib, config, ... }: {
|
||||||
|
nixpkgs.overlays = map (f: (final: prev: (import f { inherit final prev lib config;})))
|
||||||
|
[
|
||||||
|
./wlr_flicker.nix
|
||||||
|
];
|
||||||
|
}
|
8
overlays/wlr_flicker.nix
Normal file
8
overlays/wlr_flicker.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ final, prev, ... }: {
|
||||||
|
wlroots = prev.wlroots.overrideAttrs (o: {
|
||||||
|
patches = (o.patches or [ ]) ++ [
|
||||||
|
# ./patches/lessflicker.patch
|
||||||
|
# ./patches/screenshare.patch
|
||||||
|
];
|
||||||
|
});
|
||||||
|
}
|
|
@ -92,7 +92,7 @@
|
||||||
// "format-good": "", // An empty format will hide the module
|
// "format-good": "", // An empty format will hide the module
|
||||||
// "format-full": "",
|
// "format-full": "",
|
||||||
"format-icons": ["", "", "", "", ""],
|
"format-icons": ["", "", "", "", ""],
|
||||||
"on-click": "rmenu -r powermenu"
|
"on-click": "rmenu -r powermenu --single-click true"
|
||||||
},
|
},
|
||||||
"battery#bat2": {
|
"battery#bat2": {
|
||||||
"bat": "BAT2"
|
"bat": "BAT2"
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
"format-linked": "{ifname} (No IP) ",
|
"format-linked": "{ifname} (No IP) ",
|
||||||
"format-disconnected": "Disconnected ⚠",
|
"format-disconnected": "Disconnected ⚠",
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||||
"on-click-right": "rmenu -r network"
|
"on-click-right": "rmenu -r network --single-click true"
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
// "scroll-step": 1, // %, can be a float
|
// "scroll-step": 1, // %, can be a float
|
||||||
|
|
Loading…
Reference in a new issue