adguardhome: add presistent client phone
This commit is contained in:
parent
7092d4d8fc
commit
539bbce959
1 changed files with 32 additions and 10 deletions
|
|
@ -1,12 +1,7 @@
|
||||||
{
|
topLevel: {
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
in
|
|
||||||
{
|
|
||||||
flake.modules.nixos."hosts/nixberry" =
|
flake.modules.nixos."hosts/nixberry" =
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
|
@ -31,8 +26,12 @@ in
|
||||||
# build failure
|
# build failure
|
||||||
programs.nix-ld.enable = false;
|
programs.nix-ld.enable = false;
|
||||||
|
|
||||||
|
sops.secrets.tailscale_key = {
|
||||||
|
inherit sopsFile;
|
||||||
|
};
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
with config.flake.modules.nixos;
|
with topLevel.config.flake.modules.nixos;
|
||||||
with inputs.nixos-raspberrypi.nixosModules;
|
with inputs.nixos-raspberrypi.nixosModules;
|
||||||
[
|
[
|
||||||
inputs.catppuccin.nixosModules.catppuccin
|
inputs.catppuccin.nixosModules.catppuccin
|
||||||
|
|
@ -49,7 +48,7 @@ in
|
||||||
++ [
|
++ [
|
||||||
{
|
{
|
||||||
home-manager.users.cholli = {
|
home-manager.users.cholli = {
|
||||||
imports = with config.flake.modules.homeManager; [
|
imports = with topLevel.config.flake.modules.homeManager; [
|
||||||
inputs.catppuccin.homeModules.catppuccin
|
inputs.catppuccin.homeModules.catppuccin
|
||||||
|
|
||||||
# components
|
# components
|
||||||
|
|
@ -58,13 +57,19 @@ in
|
||||||
# Activate all user based config
|
# Activate all user based config
|
||||||
cholli
|
cholli
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/398456
|
||||||
|
home.enableNixpkgsReleaseCheck = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = inputs.nixpkgs-master.legacyPackages.${pkgs.stdenv.hostPlatform.system}.tailscale;
|
||||||
useRoutingFeatures = "server";
|
useRoutingFeatures = "server";
|
||||||
|
authKeyFile = config.sops.secrets.tailscale_key.path;
|
||||||
|
extraUpFlags = [ "--advertise-exit-node" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
@ -173,9 +178,26 @@ in
|
||||||
uid = "019aac26-684c-7c2c-a43d-2253f4407d45";
|
uid = "019aac26-684c-7c2c-a43d-2253f4407d45";
|
||||||
use_global_settings = true;
|
use_global_settings = true;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "holli - phone";
|
||||||
|
ids = [
|
||||||
|
"192.168.178.51"
|
||||||
|
"100.124.47.76"
|
||||||
|
"fd7a:115c:a1e0::b701:2f4f"
|
||||||
|
];
|
||||||
|
tags = [
|
||||||
|
"device_pc"
|
||||||
|
"os_linux"
|
||||||
|
];
|
||||||
|
use_global_settings = true;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name = "nixberry";
|
name = "nixberry";
|
||||||
ids = [ "192.168.178.2" ];
|
ids = [
|
||||||
|
"192.168.178.2"
|
||||||
|
"100.90.93.35"
|
||||||
|
"fd7a:115c:a1e0::dd01:5d34"
|
||||||
|
];
|
||||||
tags = [
|
tags = [
|
||||||
"device_pc"
|
"device_pc"
|
||||||
"os_linux"
|
"os_linux"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue