Compare commits
3 Commits
clan-autor
...
nim65s-mul
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45720e29a8 | ||
|
|
dfce4e6cd5 | ||
|
|
5d070511a9 |
@@ -39,7 +39,7 @@ in
|
||||
};
|
||||
|
||||
perInstance =
|
||||
{ settings, ... }:
|
||||
{ instanceName, settings, ... }:
|
||||
{
|
||||
nixosModule =
|
||||
{ pkgs, config, ... }:
|
||||
@@ -86,7 +86,7 @@ in
|
||||
|
||||
# service to generate the environment file containing all secrets, as
|
||||
# expected by the nixos NetworkManager-ensure-profile service
|
||||
systemd.services.NetworkManager-setup-secrets = {
|
||||
systemd.services."NetworkManager-setup-secrets-${instanceName}" = {
|
||||
description = "Generate wifi secrets for NetworkManager";
|
||||
requiredBy = [ "NetworkManager-ensure-profiles.service" ];
|
||||
partOf = [ "NetworkManager-ensure-profiles.service" ];
|
||||
|
||||
@@ -7,8 +7,16 @@
|
||||
inventory = {
|
||||
|
||||
machines.test = { };
|
||||
machines.second = { };
|
||||
|
||||
instances = {
|
||||
wg-test-all = {
|
||||
module.name = "@clan/wifi";
|
||||
module.input = "self";
|
||||
roles.default.tags.all = { };
|
||||
roles.default.settings.networks.all = { };
|
||||
};
|
||||
|
||||
wg-test-one = {
|
||||
module.name = "@clan/wifi";
|
||||
module.input = "self";
|
||||
|
||||
@@ -275,8 +275,6 @@ in
|
||||
templates = lib.mkOption { type = lib.types.raw; };
|
||||
|
||||
machines = lib.mkOption { type = lib.types.raw; };
|
||||
|
||||
clan-cli = lib.mkOption { type = lib.types.raw; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -273,9 +273,6 @@ in
|
||||
|
||||
# machine specifics
|
||||
machines = configsPerSystem;
|
||||
|
||||
# export clan-cli in clanInternals to tie the CLI to the flake
|
||||
clan-cli = builtins.mapAttrs (_sys: pkgs: pkgs.clan-cli) clan-core.packages;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,12 +13,7 @@
|
||||
];
|
||||
|
||||
perSystem =
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
self',
|
||||
...
|
||||
}:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
packages = {
|
||||
agit = pkgs.callPackage ./agit { };
|
||||
@@ -33,25 +28,6 @@
|
||||
classgen = pkgs.callPackage ./classgen { };
|
||||
zerotierone = pkgs.callPackage ./zerotierone { };
|
||||
update-clan-core-for-checks = pkgs.callPackage ./update-clan-core-for-checks { };
|
||||
clan-autorefresh = pkgs.symlinkJoin {
|
||||
name = "clan";
|
||||
paths = [
|
||||
(pkgs.writeScriptBin "clan" ''
|
||||
#!/bin/sh
|
||||
set -efu
|
||||
|
||||
system=$(nix config show system)
|
||||
|
||||
nix \
|
||||
--extra-experimental-features 'flakes nix-command' \
|
||||
run ".#clanInternals.clan-cli.$system" -- "$@"
|
||||
'')
|
||||
self'.packages.clan-cli
|
||||
];
|
||||
postBuild = ''
|
||||
rm -r $out/lib
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -25,9 +25,7 @@
|
||||
]
|
||||
(system: {
|
||||
default = clan-core.inputs.nixpkgs.legacyPackages.${system}.mkShell {
|
||||
packages = [
|
||||
clan-core.packages.${system}.clan-autorefresh
|
||||
];
|
||||
packages = [ clan-core.packages.${system}.clan-cli ];
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
perSystem =
|
||||
{ pkgs, inputs', ... }:
|
||||
{
|
||||
devShells.default = pkgs.mkShell { packages = [ inputs'.clan-core.packages.clan-autorefresh ]; };
|
||||
devShells.default = pkgs.mkShell { packages = [ inputs'.clan-core.packages.clan-cli ]; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user