Compare commits
No commits in common. "e89cd6e91d68322020f03eee6546464140777078" and "d482fd06945b6c3422b998552472cff21e6dde0e" have entirely different histories.
e89cd6e91d
...
d482fd0694
7 changed files with 252 additions and 247 deletions
|
|
@ -1,7 +1,6 @@
|
|||
{ inputs, self, ... }:
|
||||
{ inputs, ... }:
|
||||
{
|
||||
flake = {
|
||||
nixosConfigurations.alexandria = inputs.nixpkgs-stable.lib.nixosSystem {
|
||||
flake.nixosConfigurations.alexandria = inputs.nixpkgs-stable.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
|
|
@ -48,13 +47,4 @@
|
|||
./_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,7 +1,6 @@
|
|||
{ inputs, self, ... }:
|
||||
{ inputs, ... }:
|
||||
{
|
||||
flake = {
|
||||
nixosConfigurations.io = inputs.nixpkgs.lib.nixosSystem {
|
||||
flake.nixosConfigurations.io = inputs.nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
|
|
@ -57,14 +56,4 @@
|
|||
./_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,7 +1,6 @@
|
|||
{ inputs, self, ... }:
|
||||
{ inputs, ... }:
|
||||
{
|
||||
flake = {
|
||||
nixosConfigurations.trantor = inputs.nixpkgs-stable.lib.nixosSystem {
|
||||
flake.nixosConfigurations.trantor = inputs.nixpkgs-stable.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
|
|
@ -52,13 +51,4 @@
|
|||
./_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,22 +1,13 @@
|
|||
{ ... }:
|
||||
{
|
||||
flake.modules = {
|
||||
nixos.stylix =
|
||||
{ inputs, ... }:
|
||||
{
|
||||
nixos.stylix = { inputs, ... }: {
|
||||
imports = [ inputs.stylix.nixosModules.stylix ];
|
||||
};
|
||||
|
||||
homeManager.stylix =
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
homeManager.stylix = { config, inputs, pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.stylix.homeModules.stylix
|
||||
inputs.stylix.homeManagerModules.stylix
|
||||
inputs.zen-browser.homeModules.beta
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs, self, ... }:
|
||||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
flake = {
|
||||
|
|
@ -114,11 +114,5 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
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
Normal file
48
deploy.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ 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 =
|
||||
inputs@{ flake-parts, import-tree, ... }:
|
||||
let
|
||||
aspectsModules = import-tree ./aspects;
|
||||
packagesModules = import-tree ./packages;
|
||||
shellsModules = import-tree ./shells;
|
||||
terranixModules = import-tree ./terranix;
|
||||
aspectsModule = import-tree ./aspects;
|
||||
packagesModule = import-tree ./packages;
|
||||
shellsModule = import-tree ./shells;
|
||||
terranixModule = import-tree ./terranix;
|
||||
in
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [
|
||||
|
|
@ -68,9 +68,12 @@
|
|||
flake-parts.flakeModules.modules
|
||||
inputs.terranix.flakeModule
|
||||
]
|
||||
++ aspectsModules.imports
|
||||
++ packagesModules.imports
|
||||
++ shellsModules.imports
|
||||
++ terranixModules.imports;
|
||||
++ aspectsModule.imports
|
||||
++ packagesModule.imports
|
||||
++ shellsModule.imports
|
||||
++ terranixModule.imports
|
||||
++ [
|
||||
./deploy.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue