misc general changes / nixpkgs break fixes

This commit is contained in:
outfoxxed 2025-01-06 00:39:41 -08:00
parent 4b90113a54
commit a5b19fc918
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
15 changed files with 272 additions and 67 deletions

View file

@ -1,11 +1,15 @@
{ system, inputs, impurity, lib, config, pkgs, ... }: let
inherit (inputs) hyprland hyprland-hy3 quickshell;
inherit (inputs) hyprland hyprsunset hyprpicker hyprland-hy3 quickshell;
exe = hyprland.packages.${system}.default.overrideAttrs (final: prev: {
dontStrip = true;
});
# I blame home manager
wrapper = pkgs.callPackage ({ ... }: pkgs.writeShellScriptBin "hyprland" ''
${builtins.readFile ./session.sh}
${config.hyprland-session.prerun}
${hyprland.packages.${system}.default}/bin/Hyprland $@
${lib.getExe exe} $@
'') {};
in {
imports = [ hyprland.nixosModules.default ];
@ -20,6 +24,12 @@ in {
type = types.separatedString "\n";
default = "";
};
# same as above but no impurity so the greeter works
extraConfigStatic = mkOption {
type = types.separatedString "\n";
default = "";
};
};
config = {
@ -54,7 +64,10 @@ in {
grim
slurp
playerctl
wf-recorder
wl-screenrec
hyprsunset.packages.${system}.default
hyprpicker.packages.${system}.default
];
wayland.windowManager.hyprland = {