refactor: remove osConfig check in desktop.nix
This commit is contained in:
@@ -84,6 +84,11 @@
|
||||
inputs.stylix.homeManagerModules.stylix
|
||||
# inputs.xremap.homeManaggerModules.default
|
||||
./home
|
||||
({pkgs, ...}: {
|
||||
stylix.enable = true;
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||||
stylix.image = ../static/guz-wallpaper-default.png;
|
||||
})
|
||||
];
|
||||
pkgs = import nixpkgs {system = "x86_64-linux";};
|
||||
};
|
||||
|
||||
@@ -2,20 +2,8 @@
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig ? null,
|
||||
...
|
||||
}:
|
||||
(
|
||||
# Check if it is being used as a NixOS module
|
||||
if (isNull osConfig)
|
||||
then {
|
||||
stylix.enable = true;
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||||
stylix.image = ../static/guz-wallpaper-default.png;
|
||||
}
|
||||
else {}
|
||||
)
|
||||
// {
|
||||
}: {
|
||||
# Desktop Environment
|
||||
|
||||
## Hyprland
|
||||
|
||||
Reference in New Issue
Block a user