2022-12-19 22:35:54 +00:00
|
|
|
{
|
2022-12-20 10:33:21 +00:00
|
|
|
description = "Laureηt's infrastructure";
|
2022-12-19 22:35:54 +00:00
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2022-12-21 21:37:21 +00:00
|
|
|
|
2023-03-14 13:12:21 +00:00
|
|
|
agenix = {
|
|
|
|
url = "github:yaxitech/ragenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2022-12-21 21:37:21 +00:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-12-20 10:33:21 +00:00
|
|
|
|
|
|
|
webcord.url = "github:fufexan/webcord-flake";
|
2022-12-19 22:35:54 +00:00
|
|
|
};
|
2022-12-21 19:29:15 +00:00
|
|
|
|
2023-03-14 13:12:21 +00:00
|
|
|
outputs = { nixpkgs, agenix, home-manager, webcord, ... }@inputs: {
|
2022-12-19 22:35:54 +00:00
|
|
|
# colmena
|
|
|
|
colmena = {
|
|
|
|
meta = {
|
|
|
|
nixpkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
2022-12-21 19:29:15 +00:00
|
|
|
overlays = [ ];
|
2022-12-19 22:35:54 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-12-20 10:33:21 +00:00
|
|
|
# default config
|
|
|
|
defaults = { name, ... }: {
|
2022-12-19 22:35:54 +00:00
|
|
|
imports = [
|
2022-12-20 10:33:21 +00:00
|
|
|
./hosts/${name}/configuration.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
2023-03-14 13:12:21 +00:00
|
|
|
agenix.nixosModules.default
|
2022-12-19 22:35:54 +00:00
|
|
|
];
|
2022-12-20 10:33:21 +00:00
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
};
|
|
|
|
};
|
2022-12-19 22:35:54 +00:00
|
|
|
|
2022-12-20 10:33:21 +00:00
|
|
|
# personnal laptop
|
|
|
|
neodymium = { ... }: {
|
2022-12-24 15:58:49 +00:00
|
|
|
home-manager.users.laurent = {
|
|
|
|
imports = [ webcord.homeManagerModules.default ];
|
|
|
|
};
|
2022-12-19 22:35:54 +00:00
|
|
|
deployment = {
|
|
|
|
allowLocalDeployment = true;
|
|
|
|
targetHost = null;
|
|
|
|
};
|
|
|
|
};
|
2022-12-20 10:33:21 +00:00
|
|
|
|
|
|
|
# ovh vps
|
|
|
|
hydrogen = { ... }: {
|
|
|
|
deployment = {
|
|
|
|
targetHost = "178.62.253.235";
|
|
|
|
targetUser = "root";
|
|
|
|
};
|
|
|
|
};
|
2022-12-19 22:35:54 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|