Some more sane defaults
This commit is contained in:
parent
02585b1f5e
commit
a4b29ec259
6 changed files with 22 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -145,10 +145,6 @@ with lib; {
|
|||
# };
|
||||
# };
|
||||
# };
|
||||
smartd = {
|
||||
enable = true;
|
||||
notifications.x11.enable = true;
|
||||
};
|
||||
# sonarr = { enable = true; openFirewall = true; group = "users"; };
|
||||
thermald.enable = true;
|
||||
# transmission = {
|
||||
|
|
|
|||
|
|
@ -170,10 +170,6 @@ with lib; {
|
|||
};
|
||||
};
|
||||
};
|
||||
smartd = {
|
||||
enable = true;
|
||||
notifications.x11.enable = true;
|
||||
};
|
||||
sonarr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
|
|
|||
14
nixos_modules/btrfs_scrub.nix
Normal file
14
nixos_modules/btrfs_scrub.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue