summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix71
1 files changed, 39 insertions, 32 deletions
diff --git a/flake.nix b/flake.nix
index 0c53855..361b7a0 100644
--- a/flake.nix
+++ b/flake.nix
@@ -2,7 +2,7 @@
description = "Source code of Quentin Aristote's personal webpage.";
inputs = {
- data.url = "github:qaristote/info/new-pub-format";
+ data.url = "github:qaristote/info";
my-nixpkgs.url = "github:qaristote/my-nixpkgs";
uncss = {
url = "github:qaristote/uncss";
@@ -10,40 +10,47 @@
nixpkgs.follows = "/nixpkgs";
};
};
- nixpkgs = {};
+ nixpkgs = { };
};
- outputs = {
- flake-parts,
- my-nixpkgs,
- ...
- } @ inputs:
- flake-parts.lib.mkFlake {inherit inputs;} ({lib, ...}: {
- imports = builtins.attrValues {inherit (my-nixpkgs.flakeModules) personal;};
+ outputs =
+ {
+ flake-parts,
+ my-nixpkgs,
+ ...
+ }@inputs:
+ flake-parts.lib.mkFlake { inherit inputs; } (
+ { lib, ... }:
+ {
+ imports = builtins.attrValues { inherit (my-nixpkgs.flakeModules) personal; };
- flake.lib = import ./lib {inherit lib;};
+ flake.lib = import ./lib { inherit lib; };
- perSystem = {
- self',
- pkgs,
- system,
- ...
- }: let
- pkgs' = pkgs.extend (
- _: _: {
- uncss = inputs.uncss.packages."${system}".default;
- line-awesome-css = my-nixpkgs.packages."${system}".static_css_lineAwesome;
- }
- );
- in {
- packages = {
- default = self'.packages.webpage;
- webpage = pkgs'.callPackage ./default.nix {
- nixpkgsSrc = inputs.nixpkgs.outPath;
- src = pkgs'.callPackage ./src.nix {};
- data = inputs.data.packages."${system}".src;
+ perSystem =
+ {
+ self',
+ pkgs,
+ system,
+ ...
+ }:
+ let
+ pkgs' = pkgs.extend (
+ _: _: {
+ uncss = inputs.uncss.packages."${system}".default;
+ line-awesome-css = my-nixpkgs.packages."${system}".static_css_lineAwesome;
+ }
+ );
+ in
+ {
+ packages = {
+ default = self'.packages.webpage;
+ webpage = pkgs'.callPackage ./default.nix {
+ nixpkgsSrc = inputs.nixpkgs.outPath;
+ src = pkgs'.callPackage ./src.nix { };
+ data = inputs.data.packages."${system}".src;
+ };
+ };
};
- };
- };
- });
+ }
+ );
}