Enable auto-upgrade and automount external storage

This commit is contained in:
coolneng 2020-05-23 15:43:54 +02:00
parent da80c09dc8
commit 60bda7ed7a
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
5 changed files with 46 additions and 3 deletions

View File

@ -87,6 +87,12 @@
];
};
# Auto-upgrade the system
system.autoUpgrade = {
enable = true;
dates = "14:00";
};
# Import other configuration modules
imports = [
./modules/software.nix

View File

@ -16,8 +16,12 @@
# Set up Mopidy
services.mopidy = {
enable = true;
extensionPackages =
[ pkgs.mopidy-mpd pkgs.mopidy-soundcloud pkgs.mopidy-youtube ];
extensionPackages = [
pkgs.mopidy-mpd
# pkgs.mopidy-soundcloud
# pkgs.mopidy-youtube
# pkgs.mopidy-somafm
];
configuration = ''
[audio]
mixer = none

View File

@ -6,7 +6,7 @@
# Enable virtualisation
virtualisation.libvirtd = {
enable = true;
enable = false;
onBoot = "ignore";
onShutdown = "shutdown";
qemuPackage = pkgs.qemu_kvm;

View File

@ -170,4 +170,36 @@
setw -g window-status-current-format "#[fg=#1e2132,bg=#2e3244,nobold,nounderscore,noitalics]#[fg=#c6c8d1,bg=#2e3244] #I #W #[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics]"
'';
};
# Automount external storage
systemd.mounts = [
# USB
{
what = "/dev/sdb1";
where = "/usb";
mountConfig = { TimeoutSec = "5"; };
}
# SD card
{
what = "/dev/mmcblk0p1";
where = "/sdcard";
mountConfig = { TimeoutSec = "5"; };
}
];
systemd.automounts = [
# USB
{
where = "/usb";
automountConfig = { TimeoutIdleSec = "5"; };
wantedBy = [ "default.target" ];
}
# SD card
{
where = "/sdcard";
automountConfig = { TimeoutIdleSec = "5"; };
wantedBy = [ "default.target" ];
}
];
}

View File

@ -35,6 +35,7 @@
podman-compose
shellcheck
android-studio
gnumake
# Rice
adapta-gtk-theme
paper-icon-theme