Compare commits
2 commits
d482fd0694
...
e89cd6e91d
| Author | SHA1 | Date | |
|---|---|---|---|
| e89cd6e91d | |||
| aac98fda2e |
7 changed files with 256 additions and 261 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{ inputs, ... }:
|
{ inputs, self, ... }:
|
||||||
{
|
{
|
||||||
flake.nixosConfigurations.alexandria = inputs.nixpkgs-stable.lib.nixosSystem {
|
flake = {
|
||||||
|
nixosConfigurations.alexandria = inputs.nixpkgs-stable.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
|
|
@ -47,4 +48,13 @@
|
||||||
./_alexandria/vaultwarden.nix
|
./_alexandria/vaultwarden.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
deploy.nodes.alexandria = {
|
||||||
|
hostname = "alexandria";
|
||||||
|
profiles.system = {
|
||||||
|
sshUser = "user";
|
||||||
|
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.alexandria;
|
||||||
|
user = "root";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ inputs, ... }:
|
{ inputs, self, ... }:
|
||||||
{
|
{
|
||||||
flake.nixosConfigurations.io = inputs.nixpkgs.lib.nixosSystem {
|
flake = {
|
||||||
|
nixosConfigurations.io = inputs.nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
|
|
@ -56,4 +57,14 @@
|
||||||
./_io/services.nix
|
./_io/services.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
deploy.nodes.io = {
|
||||||
|
hostname = "io";
|
||||||
|
profiles.system = {
|
||||||
|
sshUser = "user";
|
||||||
|
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.io;
|
||||||
|
user = "root";
|
||||||
|
remoteBuild = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ inputs, ... }:
|
{ inputs, self, ... }:
|
||||||
{
|
{
|
||||||
flake.nixosConfigurations.trantor = inputs.nixpkgs-stable.lib.nixosSystem {
|
flake = {
|
||||||
|
nixosConfigurations.trantor = inputs.nixpkgs-stable.lib.nixosSystem {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
|
|
@ -51,4 +52,13 @@
|
||||||
./_trantor/unbound.nix
|
./_trantor/unbound.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
deploy.nodes.trantor = {
|
||||||
|
hostname = "trantor";
|
||||||
|
profiles.system = {
|
||||||
|
sshUser = "user";
|
||||||
|
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.trantor;
|
||||||
|
user = "root";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,22 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
flake.modules = {
|
flake.modules = {
|
||||||
nixos.stylix = { inputs, ... }: {
|
nixos.stylix =
|
||||||
|
{ inputs, ... }:
|
||||||
|
{
|
||||||
imports = [ inputs.stylix.nixosModules.stylix ];
|
imports = [ inputs.stylix.nixosModules.stylix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
homeManager.stylix = { config, inputs, pkgs, ... }: {
|
homeManager.stylix =
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.stylix.homeManagerModules.stylix
|
inputs.stylix.homeModules.stylix
|
||||||
inputs.zen-browser.homeModules.beta
|
inputs.zen-browser.homeModules.beta
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, ... }:
|
{ inputs, self, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
flake = {
|
flake = {
|
||||||
|
|
@ -114,5 +114,11 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
deploy.nodes.io.profiles.user = {
|
||||||
|
sshUser = "user";
|
||||||
|
path = inputs.deploy-rs.lib.x86_64-linux.activate.home-manager self.homeConfigurations."user@io";
|
||||||
|
user = "user";
|
||||||
|
remoteBuild = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
48
deploy.nix
48
deploy.nix
|
|
@ -1,48 +0,0 @@
|
||||||
{ inputs, self, ... }:
|
|
||||||
{
|
|
||||||
flake.deploy = {
|
|
||||||
remoteBuild = true;
|
|
||||||
nodes = {
|
|
||||||
alexandria = {
|
|
||||||
hostname = "alexandria";
|
|
||||||
profiles.system = {
|
|
||||||
sshUser = "user";
|
|
||||||
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.alexandria;
|
|
||||||
user = "root";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
trantor = {
|
|
||||||
hostname = "trantor";
|
|
||||||
profiles.system = {
|
|
||||||
sshUser = "user";
|
|
||||||
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.trantor;
|
|
||||||
user = "root";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
io = {
|
|
||||||
hostname = "io";
|
|
||||||
profiles = {
|
|
||||||
system = {
|
|
||||||
sshUser = "user";
|
|
||||||
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.io;
|
|
||||||
user = "root";
|
|
||||||
remoteBuild = false;
|
|
||||||
};
|
|
||||||
user = {
|
|
||||||
sshUser = "user";
|
|
||||||
path = inputs.deploy-rs.lib.x86_64-linux.activate.home-manager self.homeConfigurations."user@io";
|
|
||||||
user = "user";
|
|
||||||
remoteBuild = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
perSystem =
|
|
||||||
{ system, ... }:
|
|
||||||
{
|
|
||||||
checks = inputs.deploy-rs.lib.${system}.deployChecks self.deploy;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
19
flake.nix
19
flake.nix
|
|
@ -53,10 +53,10 @@
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ flake-parts, import-tree, ... }:
|
inputs@{ flake-parts, import-tree, ... }:
|
||||||
let
|
let
|
||||||
aspectsModule = import-tree ./aspects;
|
aspectsModules = import-tree ./aspects;
|
||||||
packagesModule = import-tree ./packages;
|
packagesModules = import-tree ./packages;
|
||||||
shellsModule = import-tree ./shells;
|
shellsModules = import-tree ./shells;
|
||||||
terranixModule = import-tree ./terranix;
|
terranixModules = import-tree ./terranix;
|
||||||
in
|
in
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
systems = [
|
systems = [
|
||||||
|
|
@ -68,12 +68,9 @@
|
||||||
flake-parts.flakeModules.modules
|
flake-parts.flakeModules.modules
|
||||||
inputs.terranix.flakeModule
|
inputs.terranix.flakeModule
|
||||||
]
|
]
|
||||||
++ aspectsModule.imports
|
++ aspectsModules.imports
|
||||||
++ packagesModule.imports
|
++ packagesModules.imports
|
||||||
++ shellsModule.imports
|
++ shellsModules.imports
|
||||||
++ terranixModule.imports
|
++ terranixModules.imports;
|
||||||
++ [
|
|
||||||
./deploy.nix
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue