start to remove modules in favour of options

This commit is contained in:
greyweather committed 2026-08-27 03:08:09 +01:00
1 parent 7245e872f6
commit f770b83b5c
23 files changed
+302 -389

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
{ inputs, self, ... }: {
flake.nixosModules.graphics = { pkgs, lib, config, ... }: {
imports = [
inputs.stylix.nixosModules.stylix
];
options.features.nixos.stylix.enable = lib.mkEnableOption "stylix";
config = lib.mkIf (config.features.nixos.stylix.enable) {
stylix.enable = true;
stylix.image = builtins.path { path = "${self.outPath}/modules/hosts/${config.networking.hostName}/wallpaper.jpg"; };
stylix.polarity = "dark";
};
};
}