Working on reshuffling
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
# relative path from this module
|
||||
wofiAssets = ../../../assets/system/conf/wofi;
|
||||
in
|
||||
{
|
||||
# Declare an option to enable Wofi
|
||||
# Option to enable Wofi
|
||||
options.enableWofi = lib.mkEnableOption "Enable Wofi terminal launcher";
|
||||
|
||||
# Apply config if enabled
|
||||
# Config applied when module is evaluated
|
||||
config = {
|
||||
# Add Wofi to systemPackages if enabled
|
||||
environment.systemPackages = lib.mkIf (config.enableWofi) [ pkgs.wofi ];
|
||||
|
||||
# Install wofi config files
|
||||
environment.etc."xdg/wofi".source = lib.mkIf (config.enableWofi) wofiAssets;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user