Added toggles to the flake, to select Desktop environment easily.
This commit is contained in:
12
flake.nix
12
flake.nix
@ -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 [ ]) ++ [
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user