summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-05-09 21:04:06 +0200
committerAdrian Kummerlaender2018-05-09 21:04:06 +0200
commit85809b555de21708f125190e64a2090c6f471a66 (patch)
treeaf7212c2b05f5aa0d92b5d9e1219552e7c32dbfe
parent0f04ebeab7291fb39bba83a031d777947a8b18fd (diff)
downloadnixos_system-85809b555de21708f125190e64a2090c6f471a66.tar
nixos_system-85809b555de21708f125190e64a2090c6f471a66.tar.gz
nixos_system-85809b555de21708f125190e64a2090c6f471a66.tar.bz2
nixos_system-85809b555de21708f125190e64a2090c6f471a66.tar.lz
nixos_system-85809b555de21708f125190e64a2090c6f471a66.tar.xz
nixos_system-85809b555de21708f125190e64a2090c6f471a66.tar.zst
nixos_system-85809b555de21708f125190e64a2090c6f471a66.zip
Spin down storage drive by default
-rw-r--r--configuration.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/configuration.nix b/configuration.nix
index 8fcab2e..93ad350 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -91,6 +91,16 @@
};
};
+ systemd.services.spin-down-storage = {
+ enable = true;
+ description = "Spin down storage drive by default";
+ serviceConfig = {
+ Type = "oneshot";
+ ExecStart = "${pkgs.hdparm}/bin/hdparm -q -S 120 -y /dev/disk/by-label/storage";
+ };
+ wantedBy = [ "multi-user.target" ];
+ };
+
users.extraUsers.common = {
isNormalUser = true;
uid = 1000;
@@ -102,7 +112,7 @@
systemPackages = let
custom_vim = import ./pkgs/vim/vim.nix pkgs;
in with pkgs; [
- ntfs3g htop fish git silver-searcher custom_vim
+ ntfs3g psmisc htop fish git silver-searcher custom_vim
];
shellAliases = {