feat(fruitbook): init
This commit is contained in:
13
modules/nixos/wifi.nix
Normal file
13
modules/nixos/wifi.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ config, pkgs, lib, inputs, system, ... }:
|
||||
|
||||
let cfg = config.sydnix.wifi;
|
||||
in {
|
||||
options.sydnix.wifi = {
|
||||
enable = lib.mkEnableOption "WiFi";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
networking.networkmanager.enable = true;
|
||||
sydnix.impermanence.directories = [ "/etc/NetworkManager/system-connections" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user