Refactor modules to separate nixos from hm code

This commit is contained in:
DwarfMaster 2023-01-30 22:56:57 +01:00
parent 76a254f9fe
commit fbad7b1b0c
38 changed files with 695 additions and 702 deletions

12
modules/feh/nixos.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, config, lib, ... }:
{
options.stylix.targets.feh.enable =
config.lib.stylix.mkEnableTarget
"the desktop background using Feh"
(with config.services.xserver.windowManager; xmonad.enable || i3.enable);
config.services.xserver.displayManager.sessionCommands =
lib.mkIf config.stylix.targets.feh.enable
"${pkgs.feh}/bin/feh --no-fehbg --bg-scale ${config.stylix.image}";
}