dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
commit d9825d63423a5f5477d161e7e8ecadc57c86744b parent f9f44114b44deb791fc0df6763bf99e073a8d5e9 Author: maydayv7 <maydayv7@gmail.com> Date: Mon, 27 Nov 2023 11:56:06 +0530 refactor: Add `flake.nix` to `site`
Diffstat:
| M | README.md | | | 2 | +- |
| M | devices/Vortex/default.nix | | | 2 | +- |
| M | modules/nix/format.nix | | | 10 | ---------- |
| D | packages/website.nix | | | 19 | ------------------- |
| T | site/default.nix | | | 0 | |
| A | site/flake.nix | | | 17 | +++++++++++++++++ |
6 files changed, 19 insertions(+), 31 deletions(-)
diff --git a/README.md b/README.md @@ -4,7 +4,7 @@ <img alt="Desktop" src="files/images/logo/dark.png"> </picture> -   [](https://nixos.org) +   [](https://nixos.org) This [repository](https://github.com/maydayv7/dotfiles) contains the configuration and `dotfiles` for my continuously evolving multi-PC setup (using [Nix](https://nixos.org/)). All the devices I own, controlled by code. It also builds and deploys my website to [maydayv7.tk](https://maydayv7.tk). You can follow along with my [NixOS Desktop](https://maydayv7.tk/series/nixos-desktop/) Series diff --git a/devices/Vortex/default.nix b/devices/Vortex/default.nix @@ -23,7 +23,7 @@ gui = { desktop = "gnome"; - wallpaper = "Sunrise"; + wallpaper = "Tomorrow"; }; nix = { diff --git a/modules/nix/format.nix b/modules/nix/format.nix @@ -23,16 +23,6 @@ prettier = { enable = true; settings.bracketSameLine = true; - - # Formatting Errors - excludes = [ - "site/templates/macros/edit.html" - "site/templates/macros/head.html" - "site/templates/macros/javascript.html" - "site/templates/macros/menu.html" - "site/templates/macros/posts.html" - "site/templates/tags/list.html" - ]; }; }; }; diff --git a/packages/website.nix b/packages/website.nix @@ -1,19 +0,0 @@ -{ - site ? null, - pkgs ? import ../., - files ? {website = ../site;}, - ... -}: -with pkgs; - stdenvNoCC.mkDerivation rec { - pname = "website"; - version = "stable"; - src = files.website; - buildInputs = [zola]; - installPhase = "cp -r public $out"; - buildPhase = "zola build ${ - if (site != null) - then "--base-url " + site - else "" - }"; - } diff --git a/site/default.nix b/site/default.nix diff --git a/site/flake.nix b/site/flake.nix @@ -0,0 +1,17 @@ +_: { + ## Website Configuration ## + perSystem = {pkgs, ...}: { + # Package + packages.website = pkgs.callPackage ./. {inherit pkgs;}; + + # Formatting Errors + treefmt.config.programs.prettier.excludes = [ + "site/templates/macros/edit.html" + "site/templates/macros/head.html" + "site/templates/macros/javascript.html" + "site/templates/macros/menu.html" + "site/templates/macros/posts.html" + "site/templates/tags/list.html" + ]; + }; +}