forked from c3d2/nix-config
spaceapi: flakify
This commit is contained in:
parent
8fbef50ba5
commit
8ac07ae985
17
flake.lock
17
flake.lock
|
@ -67,6 +67,7 @@
|
|||
"nixpkgs": "nixpkgs",
|
||||
"scrapers": "scrapers",
|
||||
"secrets": "secrets",
|
||||
"spacemsg": "spacemsg",
|
||||
"ticker": "ticker",
|
||||
"tigger": "tigger",
|
||||
"yammat": "yammat",
|
||||
|
@ -104,6 +105,22 @@
|
|||
"url": "ssh://git@gitea.c3d2.de:2222/c3d2-admins/secrets.git"
|
||||
}
|
||||
},
|
||||
"spacemsg": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1603817965,
|
||||
"narHash": "sha256-CxtSUiTK5VdklEYFlPadx16R7OTQaVEIEX5EqnCH6N8=",
|
||||
"owner": "astro",
|
||||
"repo": "spacemsg",
|
||||
"rev": "682679f93b2491401c6d592292a043b04ac98fc5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "astro",
|
||||
"repo": "spacemsg",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"ticker": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
|
13
flake.nix
13
flake.nix
|
@ -9,13 +9,15 @@
|
|||
yammat.inputs.nixpkgs.follows = "nixpkgs";
|
||||
scrapers.url = "git+https://gitea.c3d2.de/astro/scrapers.git";
|
||||
scrapers.flake = false;
|
||||
spacemsg.url = "github:astro/spacemsg";
|
||||
spacemsg.flake = false;
|
||||
tigger.url = "github:astro/tigger";
|
||||
tigger.flake = false;
|
||||
ticker.url = "git+https://gitea.c3d2.de/astro/ticker.git";
|
||||
ticker.flake = false;
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, secrets, nixos-hardware, zentralwerk, yammat, scrapers, tigger, ticker }:
|
||||
outputs = { self, nixpkgs, secrets, nixos-hardware, zentralwerk, yammat, scrapers, spacemsg, tigger, ticker }:
|
||||
let
|
||||
forAllSystems = nixpkgs.lib.genAttrs [ "aarch64-linux" "x86_64-linux" ];
|
||||
|
||||
|
@ -308,6 +310,15 @@
|
|||
system = "x86_64-linux";
|
||||
};
|
||||
|
||||
spaceapi = nixosSystem' {
|
||||
modules = [
|
||||
./lib/lxc-container.nix
|
||||
"${spacemsg}/spaceapi/module.nix"
|
||||
./hosts/containers/spaceapi
|
||||
];
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
nixosModules.c3d2 = import ./lib;
|
||||
|
|
|
@ -1,14 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let spacemsgGit = builtins.fetchGit "https://github.com/astro/spacemsg.git";
|
||||
in {
|
||||
imports = [
|
||||
../../../lib/lxc-container.nix
|
||||
../../../lib/shared.nix
|
||||
../../../lib/admins.nix
|
||||
"${spacemsgGit}/spaceapi/module.nix"
|
||||
];
|
||||
|
||||
{
|
||||
networking.hostName = "spaceapi";
|
||||
networking.interfaces.eth0.ipv4.addresses = [{
|
||||
address = "172.20.73.25";
|
Loading…
Reference in New Issue
Block a user