dotfiles

My PC Dotfiles & Website
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:

MREADME.md | 2+-
Mdevices/Vortex/default.nix | 2+-
Mmodules/nix/format.nix | 10----------
Dpackages/website.nix | 19-------------------
Tsite/default.nix | 0
Asite/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> -![Version](https://img.shields.io/github/v/release/maydayv7/dotfiles?include_prereleases&label=version&style=flat-square&logo=github) ![License](https://img.shields.io/github/license/maydayv7/dotfiles?color=dgreen&style=flat-square) ![Size](https://img.shields.io/github/repo-size/maydayv7/dotfiles?color=red&label=size&style=flat-square) [![NixOS](https://img.shields.io/badge/NixOS-unstable-9cf.svg?style=flat-square&logo=NixOS&logoColor=white)](https://nixos.org) +![Version](https://img.shields.io/github/v/release/maydayv7/dotfiles?include_prereleases&label=version&style=flat-square&logo=github) ![License](https://img.shields.io/github/license/maydayv7/dotfiles?color=dgreen&style=flat-square) ![Size](https://img.shields.io/github/repo-size/maydayv7/dotfiles?color=red&label=size&style=flat-square) [![NixOS](https://img.shields.io/badge/NixOS-23.11-9cf.svg?style=flat-square&logo=NixOS&logoColor=white)](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" + ]; + }; +}