added stuff

This commit is contained in:
Charlie Root 2024-04-09 23:11:33 +02:00
commit 9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{
inputs',
osConfig,
pkgs,
lib,
...
}: let
inherit (builtins) filter map toString;
inherit (lib.filesystem) listFilesRecursive;
inherit (lib.modules) mkIf;
inherit (lib.strings) hasSuffix;
inherit (osConfig) modules;
inherit (import ./packages {inherit inputs' pkgs;}) grimblast hyprshot dbus-hyprland-env hyprpicker wrapper;
env = modules.usrEnv;
in {
imports = filter (hasSuffix ".nix") (
map toString (filter (p: p != ./default.nix) (listFilesRecursive ./config))
);
config = mkIf env.desktops.hyprland.enable {
home.packages = [
inputs'.hyprland.packages.hyprland
hyprshot
grimblast
hyprpicker
dbus-hyprland-env
];
wayland.windowManager.hyprland = {
enable = true;
package = wrapper;
xwayland.enable = true;
systemd = {
enable = true;
variables = ["--all"];
};
};
};
}