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
|
# Import other configuration modules
|
||||||
imports = [
|
imports = [
|
||||||
./modules/software.nix
|
./modules/software.nix
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue