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 # Import other configuration modules
imports = [ imports = [
./modules/software.nix ./modules/software.nix

View File

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

View File

@ -6,7 +6,7 @@
# Enable virtualisation # Enable virtualisation
virtualisation.libvirtd = { virtualisation.libvirtd = {
enable = true; enable = false;
onBoot = "ignore"; onBoot = "ignore";
onShutdown = "shutdown"; onShutdown = "shutdown";
qemuPackage = pkgs.qemu_kvm; 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]" 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 podman-compose
shellcheck shellcheck
android-studio android-studio
gnumake
# Rice # Rice
adapta-gtk-theme adapta-gtk-theme
paper-icon-theme paper-icon-theme