forked from Shinonome/dots-hyprland
e1ac8eeed1
incompatible with builtins.path
57 lines
1.8 KiB
Nix
57 lines
1.8 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.programs.illogical-impulse;
|
|
in {
|
|
imports = [
|
|
../options.nix
|
|
];
|
|
# ++ lib.optionals (cfg.enable && cfg.settings.hyprland.useNixForConf) [
|
|
# ./hyprland/default.nix
|
|
# ];
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
# imports = lib.optionals cfg.settings.hyprland.useNixForConf [
|
|
# ./hyprland/hypr/keybinds.nix
|
|
# ./hyprland/hypr/execs.nix
|
|
# ./hyprland/hypr/rules.nix
|
|
# ./hyprland/hypr/env.nix
|
|
# ./hyprland/hypr/colours.nix
|
|
# ];
|
|
|
|
home.file = {
|
|
".config/quickshell".source = builtins.path {path = ../../.config/quickshell;};
|
|
".config/hypr" = lib.mkIf (!cfg.settings.hyprland.useNixForConf) {
|
|
source = builtins.path {
|
|
path = ../../.config/hypr;
|
|
# executable = true;
|
|
};
|
|
};
|
|
|
|
# dont forget hypridle and hyprlock!!!
|
|
".config/kitty".source = builtins.path {path = ../../.config/kitty;};
|
|
".config/foot".source = builtins.path {path = ../../.config/foot;};
|
|
".config/matugen".source = builtins.path {path = ../../.config/matugen;};
|
|
|
|
# wont modify these in nix format, coz im lazy
|
|
".config/qt5ct".source = builtins.path {path = ../../.config/qt5ct;};
|
|
".config/qt6ct".source = builtins.path {path = ../../.config/qt6ct;};
|
|
".config/wlogout".source = builtins.path {path = ../../.config/wlogout;};
|
|
".config/Kvantum".source = builtins.path {path = ../../.config/Kvantum;};
|
|
".config/xdg-desktop-portal".source = builtins.path {path = ../../.config/xdg-desktop-portal;};
|
|
};
|
|
|
|
home.packages =
|
|
import ../packages.nix {inherit pkgs;}
|
|
++ [
|
|
inputs.illogical-impulse.packages.${pkgs.system}.default
|
|
inputs.matugen.packages.${pkgs.system}.default
|
|
inputs.hyprland.packages.${pkgs.system}.default
|
|
];
|
|
};
|
|
}
|