diff --git a/flake.nix b/flake.nix index 5b1b3d2..bed2f5e 100644 --- a/flake.nix +++ b/flake.nix @@ -31,6 +31,7 @@ }; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; hyprpanel.url = "github:Jas-SinghFSU/HyprPanel"; + anotherhadi-portfolio.url = "github:anotherhadi/portfolio"; }; outputs = inputs@{ nixpkgs, ... }: { diff --git a/home/system/gtk/default.nix b/home/system/gtk/default.nix index ac861cf..00cbb60 100644 --- a/home/system/gtk/default.nix +++ b/home/system/gtk/default.nix @@ -20,6 +20,18 @@ name = config.var.theme.font; size = config.var.theme.font-size; }; + + gtk3.extraConfig = { + Settings = '' + gtk-application-prefer-dark-theme=1 + ''; + }; + + gtk4.extraConfig = { + Settings = '' + gtk-application-prefer-dark-theme=1 + ''; + }; }; home.pointerCursor = { diff --git a/hosts/server/modules/www/anotherhadi.com.nix b/hosts/server/modules/www/anotherhadi.com.nix index 7471fc8..957d945 100644 --- a/hosts/server/modules/www/anotherhadi.com.nix +++ b/hosts/server/modules/www/anotherhadi.com.nix @@ -1,35 +1,7 @@ -{ pkgs, lib, ... }: -let - package = pkgs.buildNpmPackage { - pname = "homepage"; - version = "0.0.0"; - - src = pkgs.fetchFromGitHub { - owner = "anotherhadi"; - repo = "portfolio"; - rev = "5d54a2d204cdbf0f702173c1bf1279bca25eb736"; - hash = "sha256-8vDm9YwZKpMujILZjXtRERUIxvDqddSxS/gdJfZdUdY="; - }; - - npmDepsHash = "sha256-KMILWgZ6GNKoe/+RZS1tVDTd3SxXl6YtOuCb5kSFeis="; - - buildPhase = '' - npm install - npm run build - mkdir $out - mv build $out - ''; - - meta = { - description = "portfolio"; - homepage = "https://github.com/anotherhadi/portfolio"; - }; - }; - -in { +{ inputs, pkgs, ... }: { services.nginx.virtualHosts."anotherhadi.com" = { serverAliases = [ "www.anotherhadi.com" ]; enableACME = true; - root = package + "/build"; + root = inputs.anotherhadi-portfolio.packages."${pkgs.system}"; }; }