restructure
This commit is contained in:
+1
-71
@@ -7,11 +7,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./modules/nfs.nix
|
./modules
|
||||||
./modules/navidrome.nix
|
|
||||||
./modules/slskd.nix
|
|
||||||
./modules/smb.nix
|
|
||||||
./modules/scripts.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
nix.settings.experimental-features = [
|
||||||
@@ -29,44 +25,6 @@
|
|||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.loader.grub = {
|
|
||||||
enable = true;
|
|
||||||
zfsSupport = true;
|
|
||||||
efiSupport = true;
|
|
||||||
efiInstallAsRemovable = true;
|
|
||||||
mirroredBoots = [
|
|
||||||
{
|
|
||||||
devices = [ "nodev" ];
|
|
||||||
path = "/boot";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "zpool/root";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/nix" = {
|
|
||||||
device = "zpool/nix";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/var" = {
|
|
||||||
device = "zpool/var";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/home" = {
|
|
||||||
device = "zpool/home";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/FCFD-4472";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
boot.zfs.forceImportRoot = false;
|
|
||||||
services.zfs.autoScrub.enable = true;
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
networking.hostId = "6054e036";
|
networking.hostId = "6054e036";
|
||||||
networking.hostName = "nixos-music";
|
networking.hostName = "nixos-music";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
@@ -125,33 +83,5 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.timers."bc-wishlist-scraper" = {
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "daily";
|
|
||||||
Unit = "bc-wishlist-scraper.service";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services."bc-wishlist-scraper" = {
|
|
||||||
script = ''
|
|
||||||
${pkgs.bash}/bin/bash /home/user/bc-wishlist-scraper/run.sh
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.timers."scdl" = {
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "daily";
|
|
||||||
Unit = "scdl.service";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.services."scdl" = {
|
|
||||||
script = ''
|
|
||||||
cd ~/Music/scdl && ${pkgs.scdl}/bin/scdl me -f -c --download-archive archive.txt
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "26.05";
|
system.stateVersion = "26.05";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,8 +11,14 @@
|
|||||||
|
|
||||||
programs.beets.settings = {
|
programs.beets.settings = {
|
||||||
directory = "/home/user/Music/Tracks";
|
directory = "/home/user/Music/Tracks";
|
||||||
|
|
||||||
plugins = [ "fetchart" "badfiles" "edit" "fish" "hook" ];
|
plugins = [
|
||||||
|
"fetchart"
|
||||||
|
"badfiles"
|
||||||
|
"edit"
|
||||||
|
"fish"
|
||||||
|
"hook"
|
||||||
|
];
|
||||||
|
|
||||||
import = {
|
import = {
|
||||||
copy = false;
|
copy = false;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./beets.nix
|
./beets.nix
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./slskd.nix
|
||||||
|
./navidrome.nix
|
||||||
|
./nfs.nix
|
||||||
|
./scripts.nix
|
||||||
|
./services.nix
|
||||||
|
./smb.nix
|
||||||
|
./zfs.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{lib, ...}:
|
{ lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.navidrome = {
|
services.navidrome = {
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
systemd.timers."bc-wishlist-scraper" = {
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "daily";
|
||||||
|
Unit = "bc-wishlist-scraper.service";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services."bc-wishlist-scraper" = {
|
||||||
|
script = ''
|
||||||
|
${pkgs.bash}/bin/bash /home/user/bc-wishlist-scraper/run.sh
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user.timers."scdl" = {
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "daily";
|
||||||
|
Unit = "scdl.service";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user.services."scdl" = {
|
||||||
|
script = ''
|
||||||
|
cd ~/Music/scdl && ${pkgs.scdl}/bin/scdl me -f -c --download-archive archive.txt
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
{pkgs, ...}:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.slskd = {
|
services.slskd = {
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
boot.loader.grub = {
|
||||||
|
enable = true;
|
||||||
|
zfsSupport = true;
|
||||||
|
efiSupport = true;
|
||||||
|
efiInstallAsRemovable = true;
|
||||||
|
mirroredBoots = [
|
||||||
|
{
|
||||||
|
devices = [ "nodev" ];
|
||||||
|
path = "/boot";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "zpool/root";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/nix" = {
|
||||||
|
device = "zpool/nix";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/var" = {
|
||||||
|
device = "zpool/var";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/home" = {
|
||||||
|
device = "zpool/home";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/FCFD-4472";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
boot.zfs.forceImportRoot = false;
|
||||||
|
services.zfs.autoScrub.enable = true;
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
}
|
||||||
+27
-19
@@ -1,22 +1,30 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
|
|
||||||
environment.systemPackages = (with pkgs; [
|
environment.systemPackages = (
|
||||||
wget
|
with pkgs;
|
||||||
nixfmt
|
[
|
||||||
tree-sitter
|
wget
|
||||||
lsof
|
nixfmt
|
||||||
exiftool
|
tree-sitter
|
||||||
trash-cli
|
lsof
|
||||||
ffmpeg
|
exiftool
|
||||||
unzip
|
trash-cli
|
||||||
scdl
|
ffmpeg
|
||||||
aria2
|
unzip
|
||||||
nodejs
|
scdl
|
||||||
gomi
|
aria2
|
||||||
bun
|
nodejs
|
||||||
croc
|
gomi
|
||||||
mp3val
|
bun
|
||||||
flac
|
croc
|
||||||
(python314.withPackages(ps: with ps; [ requests python-dotenv ]))
|
mp3val
|
||||||
]);
|
flac
|
||||||
|
(python314.withPackages (
|
||||||
|
ps: with ps; [
|
||||||
|
requests
|
||||||
|
python-dotenv
|
||||||
|
]
|
||||||
|
))
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user