summaryrefslogtreecommitdiff
path: root/templates/full
diff options
context:
space:
mode:
Diffstat (limited to 'templates/full')
-rw-r--r--templates/full/flake.nix2
-rw-r--r--templates/full/nix/default.nix2
-rw-r--r--templates/full/nix/packages.nix12
3 files changed, 6 insertions, 10 deletions
diff --git a/templates/full/flake.nix b/templates/full/flake.nix
index 9d33ecb..b35fa45 100644
--- a/templates/full/flake.nix
+++ b/templates/full/flake.nix
@@ -2,7 +2,7 @@
description = "";
inputs = {
- nixpkgs.url = "nixpkgs/nixpkgs-unstable";
+ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
diff --git a/templates/full/nix/default.nix b/templates/full/nix/default.nix
index 66bb711..87d9d60 100644
--- a/templates/full/nix/default.nix
+++ b/templates/full/nix/default.nix
@@ -7,6 +7,6 @@
perSystem =
{ pkgs, ... }:
{
- formatter = pkgs.alejandra;
+ formatter = pkgs.nixfmt-rfc-style;
};
}
diff --git a/templates/full/nix/packages.nix b/templates/full/nix/packages.nix
index e48cdde..8774a3b 100644
--- a/templates/full/nix/packages.nix
+++ b/templates/full/nix/packages.nix
@@ -1,17 +1,13 @@
{ self, ... }:
-let
- version = self.shortRev or self.dirtyShortRev or "unknown";
-in
{
- flake.overlays.default = _: prev: {
- hello = prev.callPackage ./derivation.nix { inherit version; };
- };
-
perSystem =
{ pkgs, self', ... }:
{
package = {
- hello = pkgs.callPackage ./derivation.nix { inherit version; };
+ hello = pkgs.callPackage ./derivation.nix {
+ version = self.shortRev or self.dirtyShortRev or "unknown";
+ };
+
default = self'.packages.hello;
};
};