Compare commits
3 commits
530584eeac
...
426abb144a
| Author | SHA1 | Date | |
|---|---|---|---|
| 426abb144a | |||
| 0d71737039 | |||
| debf85aa88 |
4 changed files with 58 additions and 67 deletions
83
flake.nix
83
flake.nix
|
|
@ -155,71 +155,28 @@
|
|||
nix-flatpak,
|
||||
chaotic,
|
||||
...
|
||||
} @ inputs: {
|
||||
deploy.nodes = {
|
||||
heimdall = {
|
||||
hostname = "heimdall";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
user = "root";
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.heimdall;
|
||||
};
|
||||
};
|
||||
|
||||
# baldur = {
|
||||
# hostname = "baldur";
|
||||
# profiles.system = {
|
||||
# sshUser = "root";
|
||||
# user = "root";
|
||||
# path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.baldur;
|
||||
# };
|
||||
# };
|
||||
|
||||
bragi = {
|
||||
hostname = "bragi";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
user = "root";
|
||||
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.bragi;
|
||||
};
|
||||
};
|
||||
|
||||
thor = {
|
||||
hostname = "thor";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
user = "root";
|
||||
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.thor;
|
||||
};
|
||||
};
|
||||
|
||||
odin = {
|
||||
hostname = "odin";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
user = "root";
|
||||
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.odin;
|
||||
};
|
||||
};
|
||||
|
||||
freyja = {
|
||||
hostname = "freyja";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
user = "root";
|
||||
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.freyja;
|
||||
};
|
||||
};
|
||||
|
||||
tyr = {
|
||||
hostname = "tyr";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
user = "root";
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.tyr;
|
||||
};
|
||||
} @ inputs: let
|
||||
hostsData = import ./hosts.nix;
|
||||
serversOnly = nixpkgs.lib.filterAttrs (n: v: v.type == "server") hostsData;
|
||||
mkDeployNode = hostname: arch: {
|
||||
inherit hostname;
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
user = "root";
|
||||
path = deploy-rs.lib.${arch}.activate.nixos self.nixosConfigurations.${hostname};
|
||||
};
|
||||
};
|
||||
in {
|
||||
deploy.nodes =
|
||||
nixpkgs.lib.mapAttrs' (
|
||||
hostname: meta: let
|
||||
arch = meta.arch;
|
||||
in {
|
||||
name = hostname;
|
||||
value = mkDeployNode hostname arch;
|
||||
}
|
||||
)
|
||||
serversOnly;
|
||||
|
||||
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
|
||||
modules = [inputs.stylix.nixOnDroidModules.stylix ./hosts/andronix/configuration.nix];
|
||||
|
|
|
|||
37
hosts.nix
Normal file
37
hosts.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
heimdall = {
|
||||
type = "server";
|
||||
arch = "x86_64-linux";
|
||||
};
|
||||
bragi = {
|
||||
type = "server";
|
||||
arch = "aarch64-linux";
|
||||
};
|
||||
thor = {
|
||||
type = "server";
|
||||
arch = "aarch64-linux";
|
||||
};
|
||||
odin = {
|
||||
type = "server";
|
||||
arch = "aarch64-linux";
|
||||
};
|
||||
freyja = {
|
||||
type = "server";
|
||||
arch = "aarch64-linux";
|
||||
};
|
||||
tyr = {
|
||||
type = "server";
|
||||
arch = "x86_64-linux";
|
||||
# extraModules = [./modules/servers/tyr];
|
||||
};
|
||||
ymir = {
|
||||
type = "client";
|
||||
arch = "x86_64-linux";
|
||||
extraModules = [./modules/linux/nixos];
|
||||
};
|
||||
skadi = {
|
||||
type = "client";
|
||||
arch = "x86_64-linux";
|
||||
extraModules = [./modules/linux/nixos];
|
||||
};
|
||||
}
|
||||
|
|
@ -89,6 +89,7 @@
|
|||
support32Bit = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Fix not saving my state
|
||||
hardware.alsa.enablePersistence = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{config, ...}: {
|
||||
services.resolved.extraConfig = ''
|
||||
DNSStubListener=no
|
||||
'';
|
||||
|
||||
# Setup blocky for adblocking
|
||||
services.blocky = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue