mirror of
https://github.com/kmein/niveum
synced 2026-03-22 21:01:07 +01:00
feat: make deploying faster by fetching krops sources from git
This commit is contained in:
39
flake.nix
39
flake.nix
@@ -104,15 +104,42 @@
|
|||||||
dir = toString (home /.password-store);
|
dir = toString (home /.password-store);
|
||||||
name = "shared";
|
name = "shared";
|
||||||
};
|
};
|
||||||
nixpkgs.file = toString (
|
nixpkgs.git = {
|
||||||
if unstable
|
url = "https://github.com/NixOS/nixpkgs";
|
||||||
then inputs.nixos-unstable
|
ref =
|
||||||
else inputs.nixos-stable
|
(
|
||||||
);
|
if unstable
|
||||||
|
then inputs.nixos-unstable
|
||||||
|
else inputs.nixos-stable
|
||||||
|
)
|
||||||
|
.rev;
|
||||||
|
shallow = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
// nixos-stable.lib.mapAttrs' (name: value: {
|
// nixos-stable.lib.mapAttrs' (name: value: {
|
||||||
inherit name;
|
inherit name;
|
||||||
value.file = toString value;
|
value.git = {
|
||||||
|
url = let
|
||||||
|
github = x: "https://github.com/${x}";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home-manager = github "nix-community/home-manager";
|
||||||
|
menstruation-backend = github "kmein/menstruation.rs";
|
||||||
|
menstruation-telegram = github "kmein/menstruation-telegram";
|
||||||
|
nixos-unstable = github "NixOS/nixpkgs";
|
||||||
|
nix-writers = "https://cgit.krebsco.de/nix-writers";
|
||||||
|
recht = github "kmein/recht";
|
||||||
|
retiolum = github "krebs/retiolum";
|
||||||
|
stockholm = "https://cgit.lassul.us/stockholm";
|
||||||
|
scripts = github "kmein/scripts";
|
||||||
|
telebots = github "kmein/telebots";
|
||||||
|
tinc-graph = github "kmein/tinc-graph";
|
||||||
|
traadfri = github "kmein/traadfri";
|
||||||
|
}
|
||||||
|
.${name};
|
||||||
|
ref = value.rev;
|
||||||
|
shallow = true;
|
||||||
|
};
|
||||||
}) (nixos-stable.lib.filterAttrs (name: _: builtins.elem name sources) inputs);
|
}) (nixos-stable.lib.filterAttrs (name: _: builtins.elem name sources) inputs);
|
||||||
deployScriptFor = {
|
deployScriptFor = {
|
||||||
name,
|
name,
|
||||||
|
|||||||
Reference in New Issue
Block a user