1
0

pkgs/nixfiles: expose nixfiles-generate-config as pkg

This commit is contained in:
clerie 2023-10-20 22:57:33 +02:00
parent 30cc2e4f15
commit b9af028fa7
5 changed files with 14 additions and 11 deletions

View File

@ -103,6 +103,7 @@
iot-data
nixfiles-add-secret
nixfiles-generate-backup-secrets
nixfiles-generate-config
nixfiles-updated-inputs
nixfiles-update-ssh-host-keys
pyexcel-xlsx

View File

@ -2,16 +2,7 @@
with lib;
let
nixfiles-generate-config = pkgs.writeShellApplication {
name = "nixfiles-generate-config";
text = builtins.readFile ./nixfiles-generate-config.sh;
runtimeInputs = [
pkgs.git
];
checkPhase = "";
};
in {
{
options.clerie.nixfiles.enable = mkEnableOption "clerie nixfiles tools";
config = mkIf config.clerie.nixfiles.enable {
system.nixos-generate-config.configuration = ''
@ -37,7 +28,7 @@ in {
}
'';
environment.systemPackages = [
environment.systemPackages = with pkgs; [
nixfiles-generate-config
];
};

View File

@ -0,0 +1,10 @@
{ pkgs, ... }:
pkgs.writeShellApplication {
name = "nixfiles-generate-config";
text = builtins.readFile ./nixfiles-generate-config.sh;
runtimeInputs = with pkgs; [
git
];
checkPhase = "";
}

View File

@ -4,6 +4,7 @@ self: super: {
iot-data = self.python3.pkgs.callPackage ./iot-data {};
nixfiles-add-secret = self.callPackage ./nixfiles/nixfiles-add-secret.nix {};
nixfiles-generate-backup-secrets = self.callPackage ./nixfiles/nixfiles-generate-backup-secrets.nix {};
nixfiles-generate-config = self.callPackage ./nixfiles/nixfiles-generate-config.nix {};
nixfiles-updated-inputs = self.callPackage ./nixfiles/nixfiles-updated-inputs.nix {};
nixfiles-update-ssh-host-keys = self.callPackage ./nixfiles/nixfiles-update-ssh-host-keys.nix {};
pyexcel-xlsx = self.python3.pkgs.callPackage ./pyexcel-xlsx {};