flake

Francesco Saccone's Nix flake.
git clone https://git.francescosaccone.com/flake
Log | Files | Refs | README | LICENSE

commit 408b0893d013fd9a0c51447a805965c5a1876801
parent 38d6a431712247e7edc8202a0072488595adf607
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Thu, 15 May 2025 09:30:30 +0200

refactor: remove unused networkmanager module

Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>

Diffstat:
Mmodules/nixos/default.nix | 1-
Dmodules/nixos/networkmanager/default.nix | 33---------------------------------
2 files changed, 0 insertions(+), 34 deletions(-)

diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix @@ -7,7 +7,6 @@ ./git ./ly ./monero - ./networkmanager ./openssh ./quark ./sway diff --git a/modules/nixos/networkmanager/default.nix b/modules/nixos/networkmanager/default.nix @@ -1,33 +0,0 @@ -{ - lib, - options, - config, - ... -}: -{ - options.modules.networkmanager = { - enable = lib.mkOption { - description = "Whether to enable NetworkManager."; - default = false; - type = lib.types.bool; - }; - randomiseMacAddress = lib.mkOption { - description = "Whether to randomise the MAC address of each interface."; - default = false; - type = lib.types.bool; - }; - }; - - config = lib.mkIf config.modules.networkmanager.enable { - networking.networkmanager = - let - inherit (config.modules.networkmanager) randomiseMacAddress; - macAddress = if randomiseMacAddress then "random" else "preserve"; - in - { - enable = true; - wifi = { inherit macAddress; }; - ethernet = { inherit macAddress; }; - }; - }; -}