Some more sane defaults

This commit is contained in:
Filippo Berto 2023-02-15 09:03:44 +01:00
parent 02585b1f5e
commit a4b29ec259
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
6 changed files with 22 additions and 22 deletions

View file

@ -141,7 +141,6 @@
};
};
};
services.fstrim.enable = true;
}
# Home manager configuration
@ -162,6 +161,14 @@
}
./nixos_modules/bertof_user.nix
# Some defaults
{
services.fstrim.enable = true;
services.fwupd.enable = true;
services.smartd.enable = true;
}
./nixos_modules/btrfs_scrub.nix
./nixos_modules/distributed.nix
./nixos_modules/remote-deploy.nix
./nixos_modules/extended_registry.nix

View file

@ -145,10 +145,6 @@ with lib; {
# };
# };
# };
smartd = {
enable = true;
notifications.x11.enable = true;
};
# sonarr = { enable = true; openFirewall = true; group = "users"; };
thermald.enable = true;
# transmission = {

View file

@ -170,10 +170,6 @@ with lib; {
};
};
};
smartd = {
enable = true;
notifications.x11.enable = true;
};
sonarr = {
enable = true;
openFirewall = true;

View file

@ -0,0 +1,14 @@
{ lib, config, ... }:
let
inherit (builtins) mapAttrs attrValues;
inherit (lib) filterAttrs unique;
btrfsFileSystems =
filterAttrs (_k: v: v.fsType == "btrfs") config.fileSystems;
btrfsDevices =
unique (attrValues (mapAttrs (_: v: v.device) btrfsFileSystems));
in {
services.btrfs.autoScrub = {
enable = true;
fileSystems = btrfsDevices;
};
}

View file

@ -84,8 +84,6 @@ with lib; {
];
};
services.fwupd.enable = true;
services.keybase.enable = true;
# Enable sound.
@ -229,12 +227,6 @@ with lib; {
};
};
# SMART
services.smartd = {
enable = true;
notifications.x11.enable = true;
};
# FPRINTD
# services.fprintd = {
# enable = true;

View file

@ -96,7 +96,6 @@ with lib; {
# updater.enable = true;
# };
dbus.packages = with pkgs; [ dconf ];
fwupd.enable = true;
gnome.gnome-keyring.enable = true;
gvfs = {
enable = true;
@ -121,10 +120,6 @@ with lib; {
# media-session.enable = true;
};
power-profiles-daemon.enable = true;
smartd = {
enable = true;
notifications.x11.enable = true;
};
snapper = {
configs = let
common = {