Refactor, add roam using colmena
This commit is contained in:
parent
a42514ce97
commit
1106930891
16 changed files with 348 additions and 103 deletions
33
flake.nix
33
flake.nix
|
|
@ -2,6 +2,7 @@
|
|||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
colmena.url = "github:zhaofengli/colmena";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -13,26 +14,52 @@
|
|||
self,
|
||||
nixpkgs,
|
||||
nixos-hardware,
|
||||
colmena,
|
||||
home-manager,
|
||||
}@inputs:
|
||||
let
|
||||
lib = nixpkgs.lib;
|
||||
lib' = import ./lib.nix { inherit lib; };
|
||||
mod = lib'.walk-dir ./mod;
|
||||
specialArgs = { inherit inputs mod lib'; };
|
||||
specialArgs = { inherit inputs lib' mod; };
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
"solo" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
inherit specialArgs;
|
||||
modules = [ ./host/solo ];
|
||||
modules = [
|
||||
./host/solo
|
||||
mod.shared.pc
|
||||
];
|
||||
};
|
||||
|
||||
"c2" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
inherit specialArgs;
|
||||
modules = [ ./host/c2 ];
|
||||
modules = [
|
||||
./host/c2
|
||||
mod.shared.pc
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
colmenaHive = colmena.lib.makeHive {
|
||||
meta = {
|
||||
nixpkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
inherit specialArgs;
|
||||
};
|
||||
"roam" = {
|
||||
deployment = {
|
||||
targetHost = "185.163.117.158";
|
||||
buildOnTarget = true;
|
||||
};
|
||||
imports = [
|
||||
./host/roam
|
||||
mod.shared.all
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue