Added toggles to the flake, to select Desktop environment easily.

This commit is contained in:
2025-08-27 14:07:49 +02:00
parent a79e6e2098
commit 5ef38501e4
3 changed files with 13 additions and 8 deletions

View File

@ -24,6 +24,9 @@
version = "25.05";
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
hyprlandEnabled = false;
plasmaEnabled = true;
trayscale-flake = pkgs.buildGoModule {
pname = "trayscale-flake";
@ -61,16 +64,14 @@
nixos = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs username version;
inherit inputs username version hyprlandEnabled;
trayscale-flake = trayscale-flake;
};
modules = [
./configuration.nix
./firefox.nix
./zsh.nix
./plasma/kde-plasma.nix
#./neovim.nix
./hyprland/hyprland.nix
./packages.nix
grub2-themes.nixosModules.default
home-manager.nixosModules.home-manager
@ -79,8 +80,11 @@
home-manager.useUserPackages = true;
home-manager.users.${username} = ./home.nix;
home-manager.backupFileExtension = "backup"; # Automatically backs up conflicting files during activation
home-manager.extraSpecialArgs = { inherit inputs username version; system = "x86_64-linux"; };
home-manager.extraSpecialArgs = { inherit inputs username version hyprlandEnabled; system = "x86_64-linux"; };
}
#Conditional Modules!
] ++ (if hyprlandEnabled then [ ./hyprland/hyprland.nix ] else [ ]) ++ [
] ++ (if plasmaEnabled then [ ./plasma/kde-plasma.nix ] else [ ]) ++ [
];
};
};