refactor: remove osConfig check in desktop.nix

This commit is contained in:
Guz
2025-02-05 14:31:16 -03:00
parent 7e271c91bc
commit 2cb54c3406
2 changed files with 6 additions and 13 deletions

View File

@@ -84,6 +84,11 @@
inputs.stylix.homeManagerModules.stylix inputs.stylix.homeManagerModules.stylix
# inputs.xremap.homeManaggerModules.default # inputs.xremap.homeManaggerModules.default
./home ./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";}; pkgs = import nixpkgs {system = "x86_64-linux";};
}; };

View File

@@ -2,20 +2,8 @@
config, config,
pkgs, pkgs,
lib, 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 # Desktop Environment
## Hyprland ## Hyprland