add grafana dashboard, change navidrome to pid.album=folder + some other small changes
This commit is contained in:
@@ -120,11 +120,6 @@
|
|||||||
|
|
||||||
services.ratbagd.enable = true;
|
services.ratbagd.enable = true;
|
||||||
|
|
||||||
programs.gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
pinentryPackage = pkgs.pinentry-curses;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.nh = {
|
programs.nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
flake = "/home/user/nix-config";
|
flake = "/home/user/nix-config";
|
||||||
|
|||||||
@@ -1,41 +1,56 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"usb_storage"
|
||||||
|
"usbhid"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/c9d2db79-b3a1-4698-bee3-1cc6d8cb7f02";
|
device = "/dev/disk/by-uuid/c9d2db79-b3a1-4698-bee3-1cc6d8cb7f02";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=root" ];
|
options = [ "subvol=root" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home" =
|
fileSystems."/home" = {
|
||||||
{ device = "/dev/disk/by-uuid/c9d2db79-b3a1-4698-bee3-1cc6d8cb7f02";
|
device = "/dev/disk/by-uuid/c9d2db79-b3a1-4698-bee3-1cc6d8cb7f02";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=home" ];
|
options = [ "subvol=home" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/nix" =
|
fileSystems."/nix" = {
|
||||||
{ device = "/dev/disk/by-uuid/c9d2db79-b3a1-4698-bee3-1cc6d8cb7f02";
|
device = "/dev/disk/by-uuid/c9d2db79-b3a1-4698-bee3-1cc6d8cb7f02";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=nix" ];
|
options = [ "subvol=nix" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/16F5-2D1A";
|
device = "/dev/disk/by-uuid/16F5-2D1A";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [
|
||||||
};
|
"fmask=0022"
|
||||||
|
"dmask=0022"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
flac
|
flac
|
||||||
nitch
|
nitch
|
||||||
openssl
|
openssl
|
||||||
|
nixfmt-tree
|
||||||
(python314.withPackages (
|
(python314.withPackages (
|
||||||
ps: with ps; [
|
ps: with ps; [
|
||||||
requests
|
requests
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -24,4 +25,9 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
pinentryPackage = pkgs.pinentry-curses;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
./services.nix
|
./services.nix
|
||||||
./zfs.nix
|
./zfs.nix
|
||||||
./firewall.nix
|
./firewall.nix
|
||||||
|
./grafana.nix
|
||||||
../scripts.nix
|
../scripts.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
{
|
{
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
32895
|
|
||||||
4533
|
|
||||||
2049
|
|
||||||
445
|
|
||||||
5030
|
5030
|
||||||
3900
|
3900
|
||||||
3901
|
3901
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
services.grafana = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
settings = {
|
||||||
|
security.secret_key = "$__file{/run/secrets/grafana/secret_key};";
|
||||||
|
server = {
|
||||||
|
http_addr = "0.0.0.0";
|
||||||
|
http_port = 3000;
|
||||||
|
enable_gzip = true;
|
||||||
|
domain = "192.168.132.149";
|
||||||
|
};
|
||||||
|
|
||||||
|
analytics.reporting_enabled = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -4,13 +4,17 @@
|
|||||||
services.navidrome = {
|
services.navidrome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "user";
|
user = "user";
|
||||||
|
openFirewall = true;
|
||||||
settings = {
|
settings = {
|
||||||
MusicFolder = "/home/user/Music";
|
MusicFolder = "/home/user/Music";
|
||||||
PlaylistsPath = "Playlists";
|
PlaylistsPath = "Playlists";
|
||||||
Address = "0.0.0.0";
|
Address = "0.0.0.0";
|
||||||
ScanSchedule = "@every 24h";
|
ScanSchedule = "@daily";
|
||||||
EnableInsightsCollector = false;
|
EnableInsightsCollector = false;
|
||||||
Scanner.PurgeMissing = "always";
|
Scanner.PurgeMissing = "always";
|
||||||
|
CoverArtPriority = "embedded, cover.*, folder.*, front.*, jacket.*, *, external";
|
||||||
|
pid.album = "folder";
|
||||||
|
Subsonic.DefaultReportRealPath = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
environmentFile = /home/user/slskd_secrets;
|
environmentFile = /home/user/slskd_secrets;
|
||||||
user = "user";
|
user = "user";
|
||||||
settings = {
|
settings = {
|
||||||
remote_configuration = true;
|
|
||||||
remote_file_management = true;
|
remote_file_management = true;
|
||||||
directories = {
|
directories = {
|
||||||
downloads = "/media/music/Soulseek";
|
downloads = "/media/music/Soulseek";
|
||||||
@@ -60,6 +59,8 @@
|
|||||||
Fuck DRM. Fuck Spotify
|
Fuck DRM. Fuck Spotify
|
||||||
Discord: keksnino
|
Discord: keksnino
|
||||||
https://www.last.fm/user/KeksNino
|
https://www.last.fm/user/KeksNino
|
||||||
|
|
||||||
|
also check out @musicpuppy
|
||||||
'';
|
'';
|
||||||
listen_port = 32895;
|
listen_port = 32895;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user