added share nm-connection to main and lush

This commit is contained in:
Sebastian Moser
2024-04-08 18:21:13 +02:00
parent c7291705a4
commit 0875a66c70
2 changed files with 52 additions and 3 deletions

View File

@@ -110,14 +110,16 @@
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.networkmanager.profiles = { networking.networkmanager.profiles = {
main = { home = {
connection = { connection = {
id = "main"; id = "main";
uuid = "a02273d9-ad12-395e-8372-f61129635b6f"; uuid = "a02273d9-ad12-395e-8372-f61129635b6f";
type = "ethernet"; type = "ethernet";
autoconnect-priority = "-999"; autoconnect-priority = "-999";
interface-name = "eth0"; interface-name = "eth0";
autoconnect = true;
}; };
ipv4 = { ipv4 = {
address1 = "192.168.1.44/24,192.168.1.1"; address1 = "192.168.1.44/24,192.168.1.1";
dns = "1.1.1.1;"; dns = "1.1.1.1;";
@@ -150,13 +152,36 @@
}; };
}; };
share = {
connection = {
id = "share";
uuid = "f55f34e3-4595-4642-b1f6-df3185bc0a04";
type = "ethernet";
autoconnect = false;
interface-name = "eth0";
};
ethernet = {
mac-address = "F4:39:09:4A:DF:0E";
};
ipv4 = {
address1 = "192.168.4.1/24";
method = "shared";
};
ipv6 = {
addr-gen-mode = "stable-privacy";
method = "auto";
};
};
pt = { pt = {
connection = { connection = {
id = "pt"; id = "pt";
uuid = "f028117e-9eef-47c1-8483-574f7ee798a4"; uuid = "f028117e-9eef-47c1-8483-574f7ee798a4";
type = "bluetooth"; type = "bluetooth";
autoconnect = "true"; autoconnect = true;
}; };
bluetooth = { bluetooth = {

View File

@@ -318,7 +318,7 @@
id = "hot"; id = "hot";
uuid = "ab51de8a-9742-465a-928b-be54a83ab6a3"; uuid = "ab51de8a-9742-465a-928b-be54a83ab6a3";
type = "wifi"; type = "wifi";
autoconnect = "false"; autoconnect = false;
interface-name = "wlp2s0"; interface-name = "wlp2s0";
}; };
wifi = { wifi = {
@@ -332,6 +332,30 @@
}; };
}; };
share = {
connection = {
id = "share";
uuid = "f55f34e3-4595-4642-b1f6-df3185bc0a04";
type = "ethernet";
autoconnect = false;
interface-name = "enp1s0";
};
ethernet = {
mac-address = "F4:39:09:4A:DF:0E";
};
ipv4 = {
address1 = "192.168.4.1/24";
method = "shared";
};
ipv6 = {
addr-gen-mode = "stable-privacy";
method = "auto";
};
};
dhcp = { dhcp = {
connection = { connection = {
id = "dhcp"; id = "dhcp";