1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-05-12 17:15:30 +02:00
commit 4d6de9beb2
No known key found for this signature in database
7 changed files with 1016 additions and 0 deletions

32
module.nix Normal file
View file

@ -0,0 +1,32 @@
self:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.nini;
inherit (lib) types;
in
{
options.programs.nini = {
enable = lib.mkEnableOption "nini";
package = lib.mkPackageOption self.packages.${pkgs.system} "nini" { };
flakeref = lib.mkOption {
type = types.str;
description = ''
The flake reference for nini.
'';
};
};
config = lib.mkIf cfg.enable {
environment = {
systemPackages = [
cfg.package
];
sessionVariables.NINI_FLAKEREF = cfg.flakeref;
};
};
}