dotfiles

My PC Dotfiles & Website
commit ea0b7c9e19d7ae0c7e6280c540cdae31c4e41dab
parent e9e5ae808a9a4ae1bd9aa2c1c02c2a151fb49ba8
Author: maydayv7 <maydayv7@gmail.com>
Date:   Wed, 20 Dec 2023 21:12:30 +0530

fix(checks): Website Deploy

Diffstat:

Achecks/netlify.toml | 9+++++++++
Dnetlify.toml | 10----------
Mscripts/nixos.nix | 2+-
Msite/README.md | 2+-
4 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/checks/netlify.toml b/checks/netlify.toml @@ -0,0 +1,9 @@ +[build] +publish = "build" +command = """ +export NP_GIT=$(which git) +wget -nv https://github.com/DavHau/nix-portable/releases/latest/download/nix-portable +chmod +x nix-portable +./nix-portable nix build --impure --expr "with import <nixpkgs> {}; callPackage ./site { site = ${DEPLOY_PRIME_URL}; }" +./nix-portable nix shell nixpkgs#bash -c "bash" -c "cp -rL result build" +""" diff --git a/netlify.toml b/netlify.toml @@ -1,10 +0,0 @@ -[build] -publish = "build" -command = """ -export NP_GIT=$(which git) -wget -nv https://github.com/DavHau/nix-portable/releases/latest/download/nix-portable -chmod +x nix-portable -./nix-portable nix flake update systems -./nix-portable nix build --impure --expr "with import ./packages; callPackage ./site { site = ${DEPLOY_PRIME_URL}; }" -./nix-portable nix shell nixpkgs#bash -c "bash" -c "cp -rL result build" -""" diff --git a/scripts/nixos.nix b/scripts/nixos.nix @@ -194,7 +194,7 @@ in sudo nix-collect-garbage -d sudo rm -rf /run/secrets/* sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system - sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch + nixos apply --activate fi newline echo "Running De-Duplication..." diff --git a/site/README.md b/site/README.md @@ -19,7 +19,7 @@ zola -r site serve Then click [here](http://localhost:1111) -To build the site, run `nix build`. In order to override the Base URL, <code>nix-build -E "with import ./.; callPackage ./site { site = <b><i>URL</i></b>; }"</code> can be used +To build the site, run `nix build`. In order to override the Base URL, <code>nix-build -E "with import ../packages; callPackage ./site { site = <b><i>URL</i></b>; }"</code> can be used #### Continuous Integration