Working on reshuffling
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
programName = "kitty";
|
||||
in
|
||||
{
|
||||
options.enableKitty = lib.mkEnableOption "Enable kitty terminal";
|
||||
|
||||
config = lib.mkIf (config.enableKitty or true) {
|
||||
myApps.${programName} = { enable = true; };
|
||||
|
||||
systemd.services."${programName}-sync" = {
|
||||
description = "Sync ${programName} configuration";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = ''
|
||||
echo "Syncing ${programName}"
|
||||
'';
|
||||
};
|
||||
|
||||
restartTriggers = [];
|
||||
|
||||
# Use pkgs passed to module
|
||||
path = [
|
||||
pkgs.coreutils
|
||||
pkgs.gnugrep
|
||||
pkgs.gnused
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user