Working on reshuffling

This commit is contained in:
2026-03-19 13:58:58 +00:00
parent ccdc86f842
commit dab06007cb
28 changed files with 1326 additions and 0 deletions
@@ -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
];
};
};
}
@@ -0,0 +1,32 @@
{ lib, ... }:
let
# Path to your Starship config inside the flake
starshipAssets = ../../../assets/system/conf/starship.toml;
# Read and parse the TOML file as a symbolic value
starshipConfig = lib.importTOML starshipAssets;
# Toggle on/off
enableStarship = true;
in
{
# Declare a top-level module option
options.starship = {
enable = lib.mkEnableOption "Enable Starship prompt";
configFiles = lib.mkOption {
type = lib.types.attrsOf lib.types.any;
default = {};
description = "Symbolic Starship configuration files";
};
};
# Populate the option safely
config = lib.mkIf enableStarship {
starship.enable = true;
starship.configFiles = {
"starship.toml" = starshipConfig;
assetsDir = ../../../assets/system/conf;
};
};
}