Enable auto-upgrade and automount external storage
This commit is contained in:
parent
da80c09dc8
commit
60bda7ed7a
|
@ -87,6 +87,12 @@
|
|||
];
|
||||
};
|
||||
|
||||
# Auto-upgrade the system
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
dates = "14:00";
|
||||
};
|
||||
|
||||
# Import other configuration modules
|
||||
imports = [
|
||||
./modules/software.nix
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
# Enable virtualisation
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
onBoot = "ignore";
|
||||
onShutdown = "shutdown";
|
||||
qemuPackage = pkgs.qemu_kvm;
|
||||
|
|
|
@ -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" ];
|
||||
}
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
podman-compose
|
||||
shellcheck
|
||||
android-studio
|
||||
gnumake
|
||||
# Rice
|
||||
adapta-gtk-theme
|
||||
paper-icon-theme
|
||||
|
|
Loading…
Reference in New Issue