diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-12-23 17:36:20 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-12-23 17:36:53 +0100 |
commit | 0946b5e1a42b5cb64c5b78a33dd89f3647d43903 (patch) | |
tree | 1db2900ef52cabcca00de33c6dd7ae7b1d68bb30 /infra/libkookie/modules/workstation/net/core.nix | |
parent | 93bda8ccf0fa2c3db7d3ab570ec49066bdc66249 (diff) |
libkookie: net: init module to handle networking configuration
Diffstat (limited to 'infra/libkookie/modules/workstation/net/core.nix')
-rw-r--r-- | infra/libkookie/modules/workstation/net/core.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/infra/libkookie/modules/workstation/net/core.nix b/infra/libkookie/modules/workstation/net/core.nix new file mode 100644 index 000000000000..2b6f37f32064 --- /dev/null +++ b/infra/libkookie/modules/workstation/net/core.nix @@ -0,0 +1,11 @@ +{ config, lib, ... }: + +let cfg = config.libkookie.workstation.net; +in +{ + networking.hostName = cfg.hostname; + networking.hostId = cfg.id; + + networking.networkmanager.enable = cfg.networkmanager; + networking.firewall.enable = cfg.firewall; +} |