update plancha server configuration

This commit is contained in:
Douze Bé 2025-01-02 14:14:31 +01:00
parent cb6bfc5702
commit f8e8df1085
3 changed files with 29 additions and 10 deletions

View file

@ -14,8 +14,27 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; { device = "/dev/disk/by-uuid/b4deb5e5-6488-41ca-9718-08be27d0bfd4";
fsType = "ext4"; fsType = "btrfs";
options = [ "subvol=root" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/b4deb5e5-6488-41ca-9718-08be27d0bfd4";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/b4deb5e5-6488-41ca-9718-08be27d0bfd4";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/7864-394A";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
}; };
swapDevices = [ ]; swapDevices = [ ];

View file

@ -9,8 +9,8 @@
networking = { networking = {
hostName = "plancha"; hostName = "plancha";
useDHCP = false; # useDHCP = false;
defaultGateway = "192.168.36.1"; # defaultGateway = "192.168.36.1";
nat = { nat = {
enable = true; enable = true;
@ -32,11 +32,11 @@
interfaces = { interfaces = {
# primary network interface, connected to WAN through a router # primary network interface, connected to WAN through a router
end0 = { end0 = {
useDHCP = false; useDHCP = true;
ipv4.addresses = [ { # ipv4.addresses = [ {
address = "192.168.36.16"; # address = "192.168.36.16";
prefixLength = 24; # prefixLength = 24;
} ]; # } ];
}; };
# interface for containers virtual network # interface for containers virtual network
br0 = { br0 = {

View file

@ -83,7 +83,7 @@ let
plancha = pkgs.krops.writeDeploy "deploy-server-plancha" { plancha = pkgs.krops.writeDeploy "deploy-server-plancha" {
source = source "plancha"; source = source "plancha";
target = lib.mkTarget "operator@192.168.36.16" // { target = lib.mkTarget "operator@192.168.12.12" // {
port = "144"; port = "144";
sudo = true; sudo = true;
}; };