Skip to content

Commit

Permalink
general: move scripts into flake-modules folder
Browse files Browse the repository at this point in the history
  • Loading branch information
xddxdd committed Dec 1, 2024
1 parent 0170644 commit f300205
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 33 deletions.
29 changes: 0 additions & 29 deletions flake-modules/commands.nix

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
...
}:
let
constants = callPackage ../helpers/constants.nix { };
constants = callPackage ../../helpers/constants.nix { };
inherit (constants) asteriskMusics;
files = lib.escapeShellArgs (
builtins.map (n: "/home/lantian/Music/CloudMusic/" + n) asteriskMusics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
...
}:
let
constants = callPackage ../helpers/constants.nix { };
enumerateList = callPackage ../helpers/fn/enumerate-list.nix { };
constants = callPackage ../../helpers/constants.nix { };
enumerateList = callPackage ../../helpers/fn/enumerate-list.nix { };
inherit (constants) asteriskMusics;

prefixZeros =
Expand Down
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions flake-modules/commands/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
self,
lib,
inputs,
...
}:
{
perSystem =
{ pkgs, ... }:
let
extraArgs = {
inherit inputs;
LT = import ../../helpers { inherit lib inputs pkgs; };
packages = self.packages."${pkgs.system}";
};
in
{
commands = lib.mapAttrs (_k: v: pkgs.callPackage v extraArgs) {
asterisk-music-deploy = ./asterisk-music-deploy.nix;
asterisk-music-dialplan = ./asterisk-music-dialplan.nix;
colmena = ./colmena.nix;
check = ./check.nix;
dnscontrol = ./dnscontrol.nix;
nvfetcher = ./nvfetcher.nix;
secrets = ./secrets.nix;
update = ./update.nix;
};
};
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
in
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./flake-modules/commands.nix
./flake-modules/commands
./flake-modules/nixd.nix
./flake-modules/nixos-configurations.nix
inputs.nur-xddxdd.flakeModules.auto-colmena-hive-v0_20241006
Expand Down

0 comments on commit f300205

Please sign in to comment.