feat: fix some dns stuff.
This commit is contained in:
parent
530584eeac
commit
debf85aa88
3 changed files with 53 additions and 67 deletions
79
flake.nix
79
flake.nix
|
|
@ -155,71 +155,24 @@
|
|||
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
|
||||
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;
|
||||
}
|
||||
) (import ./hosts.nix);
|
||||
|
||||
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 = "client";
|
||||
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];
|
||||
};
|
||||
}
|
||||
|
|
@ -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