remove polaris-14 pr

This commit is contained in:
Peder Bergebakken Sundt 2023-08-08 19:42:51 +02:00
parent 1a5d66090f
commit 95188f8cd3
2 changed files with 4 additions and 15 deletions

View File

@ -29,10 +29,6 @@
# TODO: somehow make these private repos optional (a lazy fetch would be nice) # TODO: somehow make these private repos optional (a lazy fetch would be nice)
pbsds-papers.url = "git+ssh://git@github.com/pbsds/papers.git"; pbsds-papers.url = "git+ssh://git@github.com/pbsds/papers.git";
# temporary stuff i want to use
# TODO: can i fetch a subset of files of these?
pr-polaris14.url = "github:pbsds/nixpkgs/polaris-14";
}; };
nixConfig.extra-substituters = [ nixConfig.extra-substituters = [
@ -82,22 +78,13 @@
#"riscv64-linux" #"riscv64-linux"
]; ];
# TODO: move unstable here?
tmpConfig = {
disabledModules = [ "services/misc/polaris.nix" ];
imports = [ "${inputs.pr-polaris14}/nixos/modules/services/misc/polaris.nix" ];
nixpkgs.overlays = [(final: prev: { # TODO: nixpkgs.config.packageOverrides ?
polaris = prev.callPackage "${inputs.pr-polaris14}/pkgs/servers/polaris" { };
polaris-web = prev.callPackage "${inputs.pr-polaris14}/pkgs/servers/polaris/web.nix" { };
})];
};
mkConfig = hostname: domain: system: modules: nixpkgs.lib.nixosSystem { mkConfig = hostname: domain: system: modules: nixpkgs.lib.nixosSystem {
inherit system; inherit system;
specialArgs = { specialArgs = {
inherit inputs; inherit inputs;
flakes = flake inputs system; flakes = flake inputs system;
}; };
modules = modules ++ [ ./base.nix "${self}/hosts/${hostname}" tmpConfig ({ modules = modules ++ [ ./base.nix "${self}/hosts/${hostname}" ({
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
inherit inputs; inherit inputs;
flakes = flake inputs system; flakes = flake inputs system;

View File

@ -3,13 +3,15 @@
# Polaris # Polaris
# Self-host your music collection, and access it from any computer and mobile device # Self-host your music collection, and access it from any computer and mobile device
#disabledModules = [ "services/misc/polaris.nix" ];
#imports = [ "${inputs.unstable}/nixos/modules/services/misc/polaris.nix" ];
services.polaris = { services.polaris = {
enable = true; enable = true;
#user = "pbsds"; #user = "pbsds";
#group = "users"; #group = "users";
port = 7890; port = 7890;
#package = pkgs.unstable.polaris; # instead of my overlay, TODO: move that overlay here package = pkgs.unstable.polaris;
settings = { settings = {
settings.reindex_every_n_seconds = 7*24*60*60; # weekly, default is 1800, i.e. hourly settings.reindex_every_n_seconds = 7*24*60*60; # weekly, default is 1800, i.e. hourly
settings.album_art_pattern = settings.album_art_pattern =