mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Add nm-networks per machine
This commit is contained in:
parent
e4f49d909d
commit
838a55807f
@ -35,6 +35,10 @@
|
||||
# add TUD vpn
|
||||
openvpn.enable = true;
|
||||
|
||||
# nm-networks
|
||||
networking.nmConnections = [
|
||||
];
|
||||
|
||||
# enable sops
|
||||
sops = {
|
||||
enable = true;
|
||||
|
||||
@ -37,6 +37,12 @@
|
||||
# add TUD vpn
|
||||
openvpn.enable = true;
|
||||
|
||||
# nm-networks
|
||||
networking.nmConnections = [
|
||||
"tartaros"
|
||||
"eduroam"
|
||||
];
|
||||
|
||||
# enable sops
|
||||
sops = {
|
||||
enable = true;
|
||||
|
||||
@ -5,14 +5,18 @@
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
options.elss.networking.useNetworkManager = mkEnableOption "enable networkmanager";
|
||||
options.elss.networking = {
|
||||
useNetworkManager = mkEnableOption "enable networkmanager";
|
||||
nmConnections = mkOption {
|
||||
type = types.listOf types.str;
|
||||
description = "Connections to instantiate for the machine";
|
||||
default = [];
|
||||
};
|
||||
};
|
||||
|
||||
config = let
|
||||
hostName = config.system.name;
|
||||
connections = [
|
||||
"tartaros"
|
||||
"eduroam"
|
||||
];
|
||||
connections = config.elss.networking.nmConnections;
|
||||
|
||||
mkSopsSecrets = connection: {
|
||||
"${connection}" = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user