This commit is contained in:
Hadi 2024-09-04 21:04:53 +02:00
parent 7ddff66f00
commit 0489f7eaa7
3 changed files with 15 additions and 30 deletions

View File

@ -31,6 +31,7 @@
}; };
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel"; hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
anotherhadi-portfolio.url = "github:anotherhadi/portfolio";
}; };
outputs = inputs@{ nixpkgs, ... }: { outputs = inputs@{ nixpkgs, ... }: {

View File

@ -20,6 +20,18 @@
name = config.var.theme.font; name = config.var.theme.font;
size = config.var.theme.font-size; 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 = { home.pointerCursor = {

View File

@ -1,35 +1,7 @@
{ pkgs, lib, ... }: { inputs, pkgs, ... }: {
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 {
services.nginx.virtualHosts."anotherhadi.com" = { services.nginx.virtualHosts."anotherhadi.com" = {
serverAliases = [ "www.anotherhadi.com" ]; serverAliases = [ "www.anotherhadi.com" ];
enableACME = true; enableACME = true;
root = package + "/build"; root = inputs.anotherhadi-portfolio.packages."${pkgs.system}";
}; };
} }