Compare commits
No commits in common. "accfdc159c8edea1af03a0b4ec8efefa683e7343" and "9389c21c07208fdf633052ff5fe39ca8ad47e9e7" have entirely different histories.
accfdc159c
...
9389c21c07
|
@ -15,6 +15,8 @@
|
|||
# Enables the generation of /boot/extlinux/extlinux.conf
|
||||
generic-extlinux-compatible.enable = true;
|
||||
};
|
||||
supportedFilesystems = ["zfs"];
|
||||
kernelParams = [ "zfs.zfs_dmu_offset_next_sync=0" ];
|
||||
};
|
||||
|
||||
system.stateVersion = "22.11"; # Read the usual warning
|
||||
|
@ -22,10 +24,9 @@
|
|||
swapDevices = [ { device = "/swap"; size = 1024; } ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
lsof # list open files
|
||||
mpv # cli media player
|
||||
lsof # list open files
|
||||
smartmontools # provides smartctl
|
||||
usbutils # provides lsusb
|
||||
usbutils # provides lsusb
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
@ -42,24 +43,29 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.pipewire = {
|
||||
services.cron = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# To avoid needing an active user session, run a single system instance
|
||||
systemWide = true;
|
||||
};
|
||||
|
||||
services.openssh.settings.PasswordAuthentication = true;
|
||||
|
||||
services.rsyncd.enable = true;
|
||||
|
||||
services.zfs = {
|
||||
autoScrub = {
|
||||
enable = true;
|
||||
pools = ["catapool"];
|
||||
interval = "monthly";
|
||||
};
|
||||
};
|
||||
|
||||
users.groups = {
|
||||
nas = { gid = 1600; };
|
||||
};
|
||||
|
||||
users.users.tvb = {
|
||||
uid = 1001;
|
||||
extraGroups = [
|
||||
"pipewire"
|
||||
];
|
||||
extraGroups = [ "nas" ];
|
||||
packages = [
|
||||
(pkgs.writeShellScriptBin "yt-dlp" ''
|
||||
exec $HOME/.env/bin/yt-dlp "$@"
|
||||
|
|
|
@ -18,6 +18,14 @@
|
|||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/mnt" =
|
||||
{ device = "catapool/test";
|
||||
fsType = "zfs";
|
||||
options = [ "nofail" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
|
|
Loading…
Reference in New Issue