From 02529ca1465db789e6f1b4162ae3f1e4cc5623db Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Tue, 26 Aug 2025 00:34:31 -0600 Subject: [PATCH] nix fmt --- flake.lock | 60 ++++++++++++++++---------------------------- homepage/default.nix | 25 ++++++++++-------- homepage/flake.nix | 15 ++++++----- 3 files changed, 45 insertions(+), 55 deletions(-) diff --git a/flake.lock b/flake.lock index 79a6162..67dda1e 100644 --- a/flake.lock +++ b/flake.lock @@ -233,22 +233,19 @@ "homepage": { "inputs": { "flake-utils": "flake-utils_3", - "nixpkgs": "nixpkgs" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { - "lastModified": 1737639979, - "narHash": "sha256-GP4bOkJMWSp55OpkBmP4VP1S2MUxmXF36fBX6/qxyOw=", - "ref": "master", - "rev": "a07048bb01ee5fb12f683366315fd3fde4f15412", - "revCount": 24, - "type": "git", - "url": "https://git.posixlycorrect.com/fabian/homepage.git" + "path": "./homepage", + "type": "path" }, "original": { - "ref": "master", - "type": "git", - "url": "https://git.posixlycorrect.com/fabian/homepage.git" - } + "path": "./homepage", + "type": "path" + }, + "parent": [] }, "impermanence": { "locked": { @@ -311,7 +308,7 @@ "nixGL": { "inputs": { "flake-utils": "flake-utils_4", - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs" }, "locked": { "lastModified": 1752054764, @@ -329,15 +326,17 @@ }, "nixpkgs": { "locked": { - "lastModified": 1719426051, - "narHash": "sha256-yJL9VYQhaRM7xs0M867ZFxwaONB9T2Q4LnGo1WovuR4=", - "path": "/nix/store/f0ddmw6s86y567yg06h5019z72szbzch-source", - "rev": "89c49874fb15f4124bf71ca5f42a04f2ee5825fd", - "type": "path" + "lastModified": 1746378225, + "narHash": "sha256-OeRSuL8PUjIfL3Q0fTbNJD/fmv1R+K2JAOqWJd3Oceg=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "93e8cdce7afc64297cfec447c311470788131cd9", + "type": "github" }, "original": { - "id": "nixpkgs", - "type": "indirect" + "owner": "nixos", + "repo": "nixpkgs", + "type": "github" } }, "nixpkgs-lib": { @@ -356,21 +355,6 @@ } }, "nixpkgs_2": { - "locked": { - "lastModified": 1746378225, - "narHash": "sha256-OeRSuL8PUjIfL3Q0fTbNJD/fmv1R+K2JAOqWJd3Oceg=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "93e8cdce7afc64297cfec447c311470788131cd9", - "type": "github" - }, - "original": { - "owner": "nixos", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_3": { "locked": { "lastModified": 1754563854, "narHash": "sha256-YzNTExe3kMY9lYs23mZR7jsVHe5TWnpwNrsPOpFs/b8=", @@ -386,7 +370,7 @@ "type": "github" } }, - "nixpkgs_4": { + "nixpkgs_3": { "locked": { "lastModified": 1754498491, "narHash": "sha256-erbiH2agUTD0Z30xcVSFcDHzkRvkRXOQ3lb887bcVrs=", @@ -405,7 +389,7 @@ "nur": { "inputs": { "flake-parts": "flake-parts_2", - "nixpkgs": "nixpkgs_4" + "nixpkgs": "nixpkgs_3" }, "locked": { "lastModified": 1754684884, @@ -481,7 +465,7 @@ "impermanence": "impermanence", "mediawikiSkinCitizen": "mediawikiSkinCitizen", "nixGL": "nixGL", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_2", "nur": "nur", "trivionomicon": "trivionomicon", "unstable": "unstable", diff --git a/homepage/default.nix b/homepage/default.nix index 82ea541..c472bcd 100644 --- a/homepage/default.nix +++ b/homepage/default.nix @@ -1,14 +1,17 @@ -{ stdenv, zola, lib, ... }: +{ + stdenv, + zola, + lib, + ... +}: with lib; + stdenv.mkDerivation { + pname = "posixlycorrect.com"; + version = "0.0.1"; -stdenv.mkDerivation { - pname = "posixlycorrect.com"; - version = "0.0.1"; - - src = ./posixlycorrect; - - buildPhase = '' - ${getExe zola} build --output-dir $out - ''; -} + src = ./posixlycorrect; + buildPhase = '' + ${getExe zola} build --output-dir $out + ''; + } diff --git a/homepage/flake.nix b/homepage/flake.nix index 50a2fa8..8b48840 100644 --- a/homepage/flake.nix +++ b/homepage/flake.nix @@ -3,16 +3,19 @@ flake-utils.url = "github:numtide/flake-utils"; }; - outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: - let - pkgs = import nixpkgs { inherit system; }; - in - { + outputs = { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem (system: let + pkgs = import nixpkgs {inherit system;}; + in { formatter = pkgs.alejandra; packages = rec { default = posixlycorrect; - posixlycorrect = pkgs.callPackage ./. { }; + posixlycorrect = pkgs.callPackage ./. {}; }; }); }