mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
chore: move to <niveum/*>
This commit is contained in:
49
deploy.nix
49
deploy.nix
@@ -7,36 +7,29 @@ let
|
||||
pkgs = import "${krops}/pkgs" {};
|
||||
importJson = (import <nixpkgs> {}).lib.importJSON;
|
||||
|
||||
niveum = {
|
||||
lib.file = toString ./lib;
|
||||
packages.file = toString ./packages;
|
||||
configs.file = toString ./configs;
|
||||
dot.file = toString ./dot;
|
||||
modules.file = toString ./modules;
|
||||
nixos-config.symlink = "system/configuration.nix";
|
||||
|
||||
nixpkgs.git = {
|
||||
url = https://github.com/NixOS/nixpkgs-channels;
|
||||
ref = (importJson ./nixpkgs.json).rev;
|
||||
};
|
||||
nixos-unstable.git = {
|
||||
url = https://github.com/NixOS/nixpkgs-channels;
|
||||
ref = "07d4df5";
|
||||
};
|
||||
home-manager.git = {
|
||||
url = https://github.com/rycee/home-manager;
|
||||
ref = "31e8494";
|
||||
};
|
||||
stockholm.git = {
|
||||
url = https://cgit.krebsco.de/stockholm;
|
||||
ref = "421a9792";
|
||||
};
|
||||
};
|
||||
|
||||
regularSystem = path: name: {
|
||||
source = lib.evalSource [
|
||||
(niveum // {
|
||||
{
|
||||
niveum.file = toString ./.;
|
||||
system.file = toString path;
|
||||
nixos-config.symlink = "system/configuration.nix";
|
||||
|
||||
nixpkgs.git = {
|
||||
url = https://github.com/NixOS/nixpkgs-channels;
|
||||
ref = (importJson ./nixpkgs.json).rev;
|
||||
};
|
||||
nixos-unstable.git = {
|
||||
url = https://github.com/NixOS/nixpkgs-channels;
|
||||
ref = "07d4df5";
|
||||
};
|
||||
home-manager.git = {
|
||||
url = https://github.com/rycee/home-manager;
|
||||
ref = "31e8494";
|
||||
};
|
||||
stockholm.git = {
|
||||
url = https://cgit.krebsco.de/stockholm;
|
||||
ref = "421a9792";
|
||||
};
|
||||
secrets.pass = {
|
||||
dir = toString ~/.password-store/systems;
|
||||
inherit name;
|
||||
@@ -45,7 +38,7 @@ let
|
||||
dir = toString ~/.password-store;
|
||||
name = "shared";
|
||||
};
|
||||
})
|
||||
}
|
||||
];
|
||||
target = "root@${name}:22022";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user