forked from Shinonome/dots-hyprland
mass migration
This commit is contained in:
+36
-26
@@ -9,41 +9,51 @@
|
||||
in {
|
||||
imports = [
|
||||
../options.nix
|
||||
./hyprland/default.nix
|
||||
];
|
||||
# ++ lib.optionals (cfg.enable && cfg.settings.hyprland.useNixForConf) [
|
||||
# ./hyprland/default.nix
|
||||
# ];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
systemd.enable = true;
|
||||
|
||||
settings = lib.mkMerge [
|
||||
(import ./hyprland/hypr/keybinds.nix {inherit config pkgs;})
|
||||
(import ./hyprland/hypr/execs.nix {inherit config pkgs;})
|
||||
(import ./hyprland/hypr/rules.nix {inherit config pkgs;})
|
||||
(import ./hyprland/hypr/env.nix {inherit config pkgs;})
|
||||
(import ./hyprland/hypr/colours.nix {inherit config pkgs;})
|
||||
];
|
||||
};
|
||||
# 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;};
|
||||
|
||||
# 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.file = lib.mkMerge [
|
||||
(lib.mkIf cfg.settings.hyprland.useNixForConf {
|
||||
".config/hypr/scripts" = {
|
||||
source = builtins.path {
|
||||
path = ../../.config/hypr/hyprland/scripts;
|
||||
executable = true;
|
||||
};
|
||||
};
|
||||
})
|
||||
(lib.mkIf (!cfg.settings.hyprland.useNixForConf) {
|
||||
".config/hypr" = {
|
||||
source = builtins.path {
|
||||
path = ../../.config/hypr;
|
||||
};
|
||||
};
|
||||
})
|
||||
{
|
||||
".config/quickshell".source = builtins.path {path = ../../.config/quickshell;};
|
||||
".config/kitty".source = builtins.path {path = ../../.config/kitty;};
|
||||
".config/foot".source = builtins.path {path = ../../.config/foot;};
|
||||
".config/matugen".source = builtins.path {path = ../../.config/matugen;};
|
||||
".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;}
|
||||
|
||||
Reference in New Issue
Block a user