feat: start migrating steveej-t14 and sj-vps-htz-0 to sops

This commit is contained in:
steveej 2023-07-05 15:55:04 +02:00
parent 6587a914e4
commit b481126ae2
55 changed files with 877 additions and 452 deletions

View file

@ -2,7 +2,9 @@
{
inputs = {
# flake and infra basics
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
nixpkgs-2211.url = "github:nixos/nixpkgs/nixos-22.11";
nixpkgs-2305.url = "github:nixos/nixpkgs/nixos-23.05";
nixpkgs.follows = "nixpkgs-2305";
flake-parts.url = "github:hercules-ci/flake-parts";
get-flake.url = "github:ursi/get-flake";
nixos-anywhere.url = github:numtide/nixos-anywhere/main;
@ -25,6 +27,9 @@
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
# applications
aphorme_launcher = {
url = "github:Iaphetes/aphorme_launcher/main";
@ -56,6 +61,12 @@
url = "gitlab:snakedye/salut";
flake = false;
};
logseqNightly = {
url = "file:///dev/null";
# url = "https://github.com/logseq/logseq/releases/download/nightly/Logseq-linux-x64-0.9.10-nightly.20230628.AppImage";
flake = false;
};
};
outputs = inputs @ {
@ -71,7 +82,8 @@
"aarch64-linux"
];
in
flake-parts.lib.mkFlake {inherit inputs;} {
flake-parts.lib.mkFlake {inherit inputs;}
({withSystem, ...}: {
flake.colmena =
lib.lists.foldl (sum: cur: lib.attrsets.recursiveUpdate sum cur)
{
@ -83,13 +95,15 @@
# try this instead: https://github.com/zhaofengli/colmena/issues/60#issuecomment-1510496861
(builtins.map (nodeName:
import ./nix/os/devices/${nodeName} {
inherit nodeName;
repoFlake = self;
repoFlakeWithSystem = withSystem;
nodeFlake = self.inputs.get-flake ./nix/os/devices/${nodeName};
}) [
"sj-vps-htz0"
"steveej-t14"
"elias-e525"
"vmd102066.contaboserver.net"
"sj-vps-htz0.infra.stefanjunker.de"
"justyna-p300"
# "elias-e525"
# "justyna-p300"
]);
# this makes nixos-anywhere work
@ -165,5 +179,5 @@
packages' = packages;
};
};
};
});
}