update cross-module package references, nuke execOnStart

This commit is contained in:
Reid 2024-12-14 16:40:14 -08:00
parent 6d61976106
commit ff647de9ce
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
13 changed files with 135 additions and 73 deletions

View file

@ -9,11 +9,6 @@ in {
type = types.nullOr (types.enum ["x11" "wayland"]);
description = "What display protocol to use";
};
execOnStart = mkOption {
type = types.listOf types.str;
description = "List of commands to run on startup";
default = null;
};
};
config = mkMerge [
@ -57,9 +52,18 @@ in {
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
};
hm.home.packages = with pkgs; [
wl-clipboard
wl-clipboard-x11 # compat with xclip
];
})
(mkIf (cfg.envProto == "x11") {
services.xserver.excludePackages = [ pkgs.xterm ];
hm.home.packages = with pkgs; [
xclip
];
})
];
}