mirror of
https://github.com/genebean/dots.git
synced 2026-03-28 01:47:42 -04:00
Networking
This commit is contained in:
parent
46c825d7a4
commit
d09d68e986
3 changed files with 11 additions and 46 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -694,11 +694,11 @@
|
||||||
"sops-nix": "sops-nix"
|
"sops-nix": "sops-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773114599,
|
"lastModified": 1773144129,
|
||||||
"narHash": "sha256-xPPkXW9mlszorwDVJ3bXQsKVg0wIpiiOCL9kbZlyTjY=",
|
"narHash": "sha256-F00t0DRlt0GsaUxgp1qreSpV6qaZy0oNX9j98qj+NoY=",
|
||||||
"owner": "genebean",
|
"owner": "genebean",
|
||||||
"repo": "private-flake",
|
"repo": "private-flake",
|
||||||
"rev": "8d886b681a65ad3e2a102d40a7a34001b6973450",
|
"rev": "ed799ef806b4dc232866f9411ac5bc32b6f9ff5f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
{ config, pkgs, username, ... }: {
|
{ config, pkgs, username, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
|
||||||
./disk-config.nix
|
|
||||||
./post-install
|
|
||||||
../../common/linux/nixroutes.nix
|
../../common/linux/nixroutes.nix
|
||||||
|
./disk-config.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
|
./post-install
|
||||||
|
inputs.private-flake.nixosModules.private.hetznix01
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
|
@ -85,18 +86,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.network = {
|
|
||||||
enable = true;
|
|
||||||
networks."10-wan" = {
|
|
||||||
matchConfig.Name = "enp1s0";
|
|
||||||
address = config.private-flake.hetznix01.networkAddresses;
|
|
||||||
dns = config.private-flake.hetznix01.dnsServers;
|
|
||||||
routes = config.private-flake.hetznix01.networkRoutes;
|
|
||||||
# make the routes on this interface a dependency for network-online.target
|
|
||||||
linkConfig.RequiredForOnline = "routable";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.${username} = {
|
users.users.${username} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Gene Liverman";
|
description = "Gene Liverman";
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
{ pkgs, username, ... }: {
|
{ pkgs, username, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
|
||||||
./disk-config.nix
|
|
||||||
./post-install
|
|
||||||
../../common/linux/nixroutes.nix
|
../../common/linux/nixroutes.nix
|
||||||
|
./disk-config.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
|
./post-install
|
||||||
|
inputs.private-flake.nixosModules.private.hetznix02
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
|
@ -52,31 +53,6 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.network = {
|
|
||||||
enable = true;
|
|
||||||
networks."10-wan" = {
|
|
||||||
matchConfig.Name = "enp1s0";
|
|
||||||
address = [
|
|
||||||
"195.201.224.89/32"
|
|
||||||
"2a01:4f8:1c1e:aa68::1/64"
|
|
||||||
"fe80::9400:3ff:feae:45aa/64"
|
|
||||||
];
|
|
||||||
dns = [
|
|
||||||
"185.12.64.1"
|
|
||||||
"185.12.64.2"
|
|
||||||
"2a01:4ff:ff00::add:1"
|
|
||||||
"2a01:4ff:ff00::add:2"
|
|
||||||
];
|
|
||||||
routes = [
|
|
||||||
{ Destination = "172.31.1.1"; }
|
|
||||||
{ Gateway = "172.31.1.1"; GatewayOnLink = true; }
|
|
||||||
{ Gateway = "fe80::1"; }
|
|
||||||
];
|
|
||||||
# make the routes on this interface a dependency for network-online.target
|
|
||||||
linkConfig.RequiredForOnline = "routable";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.${username} = {
|
users.users.${username} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Gene Liverman";
|
description = "Gene Liverman";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue