Move defaults/base to nixos-modules/system/physical.nix
This commit is contained in:
parent
24b4b04df9
commit
b4cd63afe8
8 changed files with 62 additions and 60 deletions
|
@ -9,6 +9,7 @@
|
|||
imports = [
|
||||
./applications.nix
|
||||
./overlays.nix
|
||||
./physical.nix
|
||||
./security.nix
|
||||
./unfree.nix
|
||||
./virtual-machine.nix
|
||||
|
|
52
nixos-modules/system/physical.nix
Normal file
52
nixos-modules/system/physical.nix
Normal file
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.qois.system.physical;
|
||||
in
|
||||
with lib;
|
||||
{
|
||||
options.qois.system.physical.enable = mkEnableOption "Enable qois physical system configuration";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
pciutils
|
||||
dmidecode
|
||||
smartmontools
|
||||
iw
|
||||
efibootmgr
|
||||
efitools
|
||||
efivar
|
||||
pwgen
|
||||
powertop
|
||||
lm_sensors
|
||||
]
|
||||
++ [
|
||||
# Filesystem & Disk Utilities
|
||||
hdparm
|
||||
smartmontools
|
||||
]
|
||||
++ [
|
||||
# Networking Utilities
|
||||
tcpdump
|
||||
];
|
||||
|
||||
# System Services
|
||||
services.fwupd.enable = true;
|
||||
|
||||
services.smartd = {
|
||||
enable = true;
|
||||
notifications.mail = {
|
||||
enable = true;
|
||||
mailer = "${pkgs.msmtp}/bin/sendmail";
|
||||
sender = "system@qo.is";
|
||||
recipient = "sysadmin@qo.is";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue