Refactor modules to separate nixos from hm code
This commit is contained in:
parent
76a254f9fe
commit
fbad7b1b0c
38 changed files with 695 additions and 702 deletions
12
modules/feh/nixos.nix
Normal file
12
modules/feh/nixos.nix
Normal 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}";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue