1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Don't repeat IP addresses

This commit is contained in:
RGBCube 2024-04-24 11:31:47 +03:00
parent 90a6c77000
commit 9c9c945b20
No known key found for this signature in database
5 changed files with 21 additions and 10 deletions

View file

@ -4,8 +4,6 @@
system.stateVersion = "23.05";
nixpkgs.hostPlatform = "x86_64-linux";
networking.domain = "rgbcu.be";
secrets.rgbPassword.file = ./password.rgb.age;
users.users = {
@ -30,6 +28,12 @@
||----w |
|| ||
'';
networking = {
ipv4 = "5.255.78.70";
domain = "rgbcu.be";
};
})
(homeConfiguration {

View file

@ -7,7 +7,7 @@ systemConfiguration {
passwordFile = config.secrets.resticPassword.path;
initialize = true;
repository = "sftp:backup@disk:cube-varlib";
repository = "sftp:backup@${self.disk.networking.ipv4}:cube-varlib";
paths = [ "/var/lib" ];

View file

@ -4,8 +4,6 @@
system.stateVersion = "23.11";
nixpkgs.hostPlatform = "x86_64-linux";
networking.domain = "rgbcu.be";
secrets.floppyPassword.file = ./password.floppy.age;
users.users = {
@ -25,17 +23,22 @@
};
networking = {
ipv4 = "23.164.232.40";
ipv6 = "2602:f9f7::40";
domain = "rgbcu.be";
defaultGateway = "23.164.232.1";
defaultGateway6 = "2602:f9f7::1";
interfaces.ens32 = {
ipv4.addresses = [{
address = "23.164.232.40";
address = config.networking.ipv4;
prefixLength = 25;
}];
ipv6.addresses = [{
address = "2602:f9f7::40";
address = config.networking.ipv6;
prefixLength = 64;
}];
};