mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +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);
|
||||
name = "shared";
|
||||
};
|
||||
nixpkgs.file = toString (
|
||||
if unstable
|
||||
then inputs.nixos-unstable
|
||||
else inputs.nixos-stable
|
||||
);
|
||||
nixpkgs.git = {
|
||||
url = "https://github.com/NixOS/nixpkgs";
|
||||
ref =
|
||||
(
|
||||
if unstable
|
||||
then inputs.nixos-unstable
|
||||
else inputs.nixos-stable
|
||||
)
|
||||
.rev;
|
||||
shallow = true;
|
||||
};
|
||||
}
|
||||
// nixos-stable.lib.mapAttrs' (name: value: {
|
||||
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);
|
||||
deployScriptFor = {
|
||||
name,
|
||||
|
||||
Reference in New Issue
Block a user