Simplify use of lib
This commit is contained in:
parent
3d4bca0ada
commit
0f90bcfd70
25 changed files with 124 additions and 74 deletions
|
@ -5,10 +5,12 @@
|
|||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options.features.desktop.peek.enable = lib.mkEnableOption "Enable peek";
|
||||
with lib;
|
||||
|
||||
config = lib.mkIf config.features.desktop.peek.enable {
|
||||
{
|
||||
options.features.desktop.peek.enable = mkEnableOption "Enable peek";
|
||||
|
||||
config = mkIf config.features.desktop.peek.enable {
|
||||
environment.systemPackages = with pkgs; [ peek ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,10 +6,12 @@
|
|||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options.features.desktop.screenkey.enable = lib.mkEnableOption "Enable screenkey";
|
||||
with lib;
|
||||
|
||||
config = lib.mkIf config.features.desktop.screenkey.enable {
|
||||
{
|
||||
options.features.desktop.screenkey.enable = mkEnableOption "Enable screenkey";
|
||||
|
||||
config = mkIf config.features.desktop.screenkey.enable {
|
||||
environment.systemPackages = with pkgs; [ screenkey ];
|
||||
|
||||
home-manager.users.${username}.xdg.configFile."screenkey.json".text = builtins.toJSON {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue