1
0
Fork 0

Compare commits

..

No commits in common. "6eeb49f93c26a69677349aaca7be4c70631a4cd9" and "3ed788ba2667354ca7aec910e7ff8f14e49918e7" have entirely different histories.

8 changed files with 10 additions and 33 deletions

View file

@ -9,7 +9,6 @@ let
inherit (lib) mkEnableOption mkIf; inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.cli-apps.fish; cfg = config.${namespace}.cli-apps.fish;
flakeRoot = "/home/philipp/Documents/nix-config";
in in
{ {
options.${namespace}.cli-apps.fish = { options.${namespace}.cli-apps.fish = {
@ -20,11 +19,11 @@ in
programs.fish = { programs.fish = {
enable = true; enable = true;
shellAliases = { shellAliases = {
nix-dns = "nixos-rebuild switch --flake ${flakeRoot}/.#dns --target-host dns-1 --use-remote-sudo && nixos-rebuild switch --flake ${flakeRoot}/.#dns --target-host dns-2 --use-remote-sudo"; nix-dns = "nixos-rebuild switch --flake .#dns --target-host dns-1 --use-remote-sudo && nixos-rebuild switch --flake .#dns --target-host dns-2 --use-remote-sudo";
nix-blarm = "nixos-rebuild switch --flake ${flakeRoot}/.#blarm --target-host blarm --use-remote-sudo"; nix-blarm = "nixos-rebuild switch --flake .#blarm --target-host blarm --use-remote-sudo";
cd = "z"; cd = "z";
ls = "exa --icons"; ls = "exa";
l = "exa"; l = "exa --icons";
}; };
plugins = [ plugins = [
{ {

View file

@ -19,7 +19,7 @@ in
enable = true; enable = true;
clean.enable = true; clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3"; clean.extraArgs = "--keep-since 4d --keep 3";
flake = "${config.flakeRoot}"; flake = "${config.home-manager.users.philipp.home.homeDirectory}/Documents/nix-config";
}; };
}; };

View file

@ -9,13 +9,6 @@ with lib;
with lib.${namespace}; with lib.${namespace};
let let
cfg = config.${namespace}.services.ente-auth; cfg = config.${namespace}.services.ente-auth;
enteApp = cfg.package.override {
extraBuildEnv = {
NEXT_PUBLIC_ENTE_ENDPOINT = "https://ente-api.monapona.dev";
NEXT_TELEMETRY_DISABLED = "1";
};
};
in in
{ {
options.${namespace}.services.ente-auth = { options.${namespace}.services.ente-auth = {
@ -56,7 +49,7 @@ in
forceSSL = true; forceSSL = true;
useACMEHost = "stahl.sh"; useACMEHost = "stahl.sh";
locations."/" = { locations."/" = {
root = enteApp; root = "${cfg.package}";
}; };
}; };
}; };

View file

@ -36,6 +36,7 @@ in
default = "reddit.stahl.sh"; default = "reddit.stahl.sh";
}; };
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -1,16 +0,0 @@
{
config,
lib,
namespace,
...
}:
with lib;
with lib.${namespace};
{
options.flakeRoot = mkOption {
type = types.str;
description = "Path to the flake root directory.";
};
config.flakeRoot = "${config.users.users.philipp.home}/Documents/nix-config";
}

View file

@ -72,8 +72,8 @@ in
hostname = "invidious-db"; hostname = "invidious-db";
volumes = [ volumes = [
"postgresdata:/var/lib/postgresql/data" "postgresdata:/var/lib/postgresql/data"
"${config.flakeRoot}/modules/nixos/virtualisation/podman/invidious/config/sql:/config/sql" "/home/philipp/nix-config/modules/nixos/virtualisation/podman/invidious/config/sql:/config/sql"
"${config.flakeRoot}/modules/nixos/virtualisation/podman/invidious/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh" "/home/philipp/nix-config/modules/nixos/virtualisation/podman/invidious/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh"
]; ];
environmentFiles = [ /run/secrets/invidious-db ]; environmentFiles = [ /run/secrets/invidious-db ];
}; };

View file

@ -39,6 +39,7 @@ stdenv.mkDerivation (finalAttrs: {
env = extraBuildEnv; env = extraBuildEnv;
buildPhase = '' buildPhase = ''
export NEXT_PUBLIC_ENTE_ENDPOINT=https://ente-api.monapona.dev
yarn build:auth yarn build:auth
''; '';

View file

@ -1,6 +1,5 @@
{ {
lib, lib,
pkgs,
modulesPath, modulesPath,
namespace, namespace,
... ...