mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Don't repeat IP addresses
This commit is contained in:
parent
90a6c77000
commit
9c9c945b20
5 changed files with 21 additions and 10 deletions
|
@ -4,8 +4,6 @@
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
||||||
networking.domain = "rgbcu.be";
|
|
||||||
|
|
||||||
secrets.rgbPassword.file = ./password.rgb.age;
|
secrets.rgbPassword.file = ./password.rgb.age;
|
||||||
|
|
||||||
users.users = {
|
users.users = {
|
||||||
|
@ -30,6 +28,12 @@
|
||||||
||----w |
|
||----w |
|
||||||
|| ||
|
|| ||
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
ipv4 = "5.255.78.70";
|
||||||
|
|
||||||
|
domain = "rgbcu.be";
|
||||||
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
(homeConfiguration {
|
(homeConfiguration {
|
||||||
|
|
|
@ -7,7 +7,7 @@ systemConfiguration {
|
||||||
passwordFile = config.secrets.resticPassword.path;
|
passwordFile = config.secrets.resticPassword.path;
|
||||||
initialize = true;
|
initialize = true;
|
||||||
|
|
||||||
repository = "sftp:backup@disk:cube-varlib";
|
repository = "sftp:backup@${self.disk.networking.ipv4}:cube-varlib";
|
||||||
|
|
||||||
paths = [ "/var/lib" ];
|
paths = [ "/var/lib" ];
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
||||||
networking.domain = "rgbcu.be";
|
|
||||||
|
|
||||||
secrets.floppyPassword.file = ./password.floppy.age;
|
secrets.floppyPassword.file = ./password.floppy.age;
|
||||||
|
|
||||||
users.users = {
|
users.users = {
|
||||||
|
@ -25,17 +23,22 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
ipv4 = "23.164.232.40";
|
||||||
|
ipv6 = "2602:f9f7::40";
|
||||||
|
|
||||||
|
domain = "rgbcu.be";
|
||||||
|
|
||||||
defaultGateway = "23.164.232.1";
|
defaultGateway = "23.164.232.1";
|
||||||
defaultGateway6 = "2602:f9f7::1";
|
defaultGateway6 = "2602:f9f7::1";
|
||||||
|
|
||||||
interfaces.ens32 = {
|
interfaces.ens32 = {
|
||||||
ipv4.addresses = [{
|
ipv4.addresses = [{
|
||||||
address = "23.164.232.40";
|
address = config.networking.ipv4;
|
||||||
prefixLength = 25;
|
prefixLength = 25;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
ipv6.addresses = [{
|
ipv6.addresses = [{
|
||||||
address = "2602:f9f7::40";
|
address = config.networking.ipv6;
|
||||||
prefixLength = 64;
|
prefixLength = 64;
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, ... }: with lib; merge
|
{ self, lib, pkgs, ... }: with lib; merge
|
||||||
|
|
||||||
(desktopSystemPackages (with pkgs; [
|
(desktopSystemPackages (with pkgs; [
|
||||||
mosh
|
mosh
|
||||||
|
@ -20,13 +20,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
cube = {
|
cube = {
|
||||||
hostname = "5.255.78.70";
|
hostname = self.cube.networking.ipv4;
|
||||||
user = "rgb";
|
user = "rgb";
|
||||||
port = 2222;
|
port = 2222;
|
||||||
};
|
};
|
||||||
|
|
||||||
disk = {
|
disk = {
|
||||||
hostname = "23.164.232.40";
|
hostname = self.disk.networking.ipv4;
|
||||||
user = "floppy";
|
user = "floppy";
|
||||||
port = 2222;
|
port = 2222;
|
||||||
};
|
};
|
||||||
|
|
4
options/ip.nix
Normal file
4
options/ip.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{ lib, ... }: {
|
||||||
|
options.networking.ipv4 = lib.mkValue null;
|
||||||
|
options.networking.ipv6 = lib.mkValue null;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue