pkgs/nixfiles: expose nixfiles-generate-config as pkg
This commit is contained in:
parent
30cc2e4f15
commit
b9af028fa7
@ -103,6 +103,7 @@
|
|||||||
iot-data
|
iot-data
|
||||||
nixfiles-add-secret
|
nixfiles-add-secret
|
||||||
nixfiles-generate-backup-secrets
|
nixfiles-generate-backup-secrets
|
||||||
|
nixfiles-generate-config
|
||||||
nixfiles-updated-inputs
|
nixfiles-updated-inputs
|
||||||
nixfiles-update-ssh-host-keys
|
nixfiles-update-ssh-host-keys
|
||||||
pyexcel-xlsx
|
pyexcel-xlsx
|
||||||
|
@ -2,16 +2,7 @@
|
|||||||
|
|
||||||
with lib;
|
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";
|
options.clerie.nixfiles.enable = mkEnableOption "clerie nixfiles tools";
|
||||||
config = mkIf config.clerie.nixfiles.enable {
|
config = mkIf config.clerie.nixfiles.enable {
|
||||||
system.nixos-generate-config.configuration = ''
|
system.nixos-generate-config.configuration = ''
|
||||||
@ -37,7 +28,7 @@ in {
|
|||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = with pkgs; [
|
||||||
nixfiles-generate-config
|
nixfiles-generate-config
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
10
pkgs/nixfiles/nixfiles-generate-config.nix
Normal file
10
pkgs/nixfiles/nixfiles-generate-config.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
pkgs.writeShellApplication {
|
||||||
|
name = "nixfiles-generate-config";
|
||||||
|
text = builtins.readFile ./nixfiles-generate-config.sh;
|
||||||
|
runtimeInputs = with pkgs; [
|
||||||
|
git
|
||||||
|
];
|
||||||
|
checkPhase = "";
|
||||||
|
}
|
0
modules/nixfiles/nixfiles-generate-config.sh → pkgs/nixfiles/nixfiles-generate-config.sh
Normal file → Executable file
0
modules/nixfiles/nixfiles-generate-config.sh → pkgs/nixfiles/nixfiles-generate-config.sh
Normal file → Executable file
@ -4,6 +4,7 @@ self: super: {
|
|||||||
iot-data = self.python3.pkgs.callPackage ./iot-data {};
|
iot-data = self.python3.pkgs.callPackage ./iot-data {};
|
||||||
nixfiles-add-secret = self.callPackage ./nixfiles/nixfiles-add-secret.nix {};
|
nixfiles-add-secret = self.callPackage ./nixfiles/nixfiles-add-secret.nix {};
|
||||||
nixfiles-generate-backup-secrets = self.callPackage ./nixfiles/nixfiles-generate-backup-secrets.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-updated-inputs = self.callPackage ./nixfiles/nixfiles-updated-inputs.nix {};
|
||||||
nixfiles-update-ssh-host-keys = self.callPackage ./nixfiles/nixfiles-update-ssh-host-keys.nix {};
|
nixfiles-update-ssh-host-keys = self.callPackage ./nixfiles/nixfiles-update-ssh-host-keys.nix {};
|
||||||
pyexcel-xlsx = self.python3.pkgs.callPackage ./pyexcel-xlsx {};
|
pyexcel-xlsx = self.python3.pkgs.callPackage ./pyexcel-xlsx {};
|
||||||
|
Loading…
Reference in New Issue
Block a user