From 4c5a61dc9021ed5fca7ffaf5000abaf66c1b4ea8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 5 Apr 2022 19:40:58 -0700 Subject: refactor security to a module --- hosts/common/system/default.nix | 2 +- hosts/common/system/security.nix | 5 ----- modules/system/default.nix | 2 +- modules/system/security/default.nix | 5 +++++ 4 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 hosts/common/system/security.nix create mode 100644 modules/system/security/default.nix diff --git a/hosts/common/system/default.nix b/hosts/common/system/default.nix index 291314b..9b2a7e4 100644 --- a/hosts/common/system/default.nix +++ b/hosts/common/system/default.nix @@ -1,5 +1,5 @@ { pkgs, ... }: { - imports = [ ./boot.nix ./hardware.nix ./network.nix ./security.nix ]; + imports = [ ./boot.nix ./hardware.nix ./network.nix ]; } diff --git a/hosts/common/system/security.nix b/hosts/common/system/security.nix deleted file mode 100644 index b35e60e..0000000 --- a/hosts/common/system/security.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ config, ... }: - -{ - security.sudo.wheelNeedsPassword = false; -} diff --git a/modules/system/default.nix b/modules/system/default.nix index 3f7d3ec..d3eea02 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -1 +1 @@ -{ ... }: { imports = [ ./console ./locale ./nix ./users ]; } +{ ... }: { imports = [ ./console ./locale ./nix ./users ./security ]; } diff --git a/modules/system/security/default.nix b/modules/system/security/default.nix new file mode 100644 index 0000000..9550e8d --- /dev/null +++ b/modules/system/security/default.nix @@ -0,0 +1,5 @@ +{ ... }: + +{ + security.sudo.wheelNeedsPassword = false; +} -- cgit 1.4.1