1
1
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Tim Van Baak accfdc159c catacomb: enable sound 2024-08-31 14:51:28 +00:00
Tim Van Baak e8fda52758 catacomb: Remove more NAS components 2024-08-31 14:51:12 +00:00
2 changed files with 12 additions and 26 deletions

View File

@ -15,8 +15,6 @@
# Enables the generation of /boot/extlinux/extlinux.conf # Enables the generation of /boot/extlinux/extlinux.conf
generic-extlinux-compatible.enable = true; generic-extlinux-compatible.enable = true;
}; };
supportedFilesystems = ["zfs"];
kernelParams = [ "zfs.zfs_dmu_offset_next_sync=0" ];
}; };
system.stateVersion = "22.11"; # Read the usual warning system.stateVersion = "22.11"; # Read the usual warning
@ -24,9 +22,10 @@
swapDevices = [ { device = "/swap"; size = 1024; } ]; swapDevices = [ { device = "/swap"; size = 1024; } ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
lsof # list open files lsof # list open files
mpv # cli media player
smartmontools # provides smartctl smartmontools # provides smartctl
usbutils # provides lsusb usbutils # provides lsusb
]; ];
networking = { networking = {
@ -43,29 +42,24 @@
}; };
}; };
services.cron = { services.pipewire = {
enable = true; 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.openssh.settings.PasswordAuthentication = true;
services.rsyncd.enable = true; services.rsyncd.enable = true;
services.zfs = {
autoScrub = {
enable = true;
pools = ["catapool"];
interval = "monthly";
};
};
users.groups = {
nas = { gid = 1600; };
};
users.users.tvb = { users.users.tvb = {
uid = 1001; uid = 1001;
extraGroups = [ "nas" ]; extraGroups = [
"pipewire"
];
packages = [ packages = [
(pkgs.writeShellScriptBin "yt-dlp" '' (pkgs.writeShellScriptBin "yt-dlp" ''
exec $HOME/.env/bin/yt-dlp "$@" exec $HOME/.env/bin/yt-dlp "$@"

View File

@ -18,14 +18,6 @@
fsType = "ext4"; 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 # 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 # (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 # still possible to use this option, but it's recommended to use it in conjunction