aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-08-01 03:06:27 +0200
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-08-01 03:06:27 +0200
commit00754b7cab04ee43349206782714beec113332c0 (patch)
tree37e1d17296bc3ba1a09872b8c5155bb746c4b270 /flake.nix
parentdfc71443a0bc74ba8caa37fd610a6fbed3afe8cc (diff)
Replace flake-utils with my own futils
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix37
1 files changed, 12 insertions, 25 deletions
diff --git a/flake.nix b/flake.nix
index 85a27ff..1b92321 100644
--- a/flake.nix
+++ b/flake.nix
@@ -3,7 +3,7 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
- flake-utils.url = "github:numtide/flake-utils";
+ futils.url = "git+https://git.sorre.xyz/miranb/futils";
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
@@ -38,39 +38,26 @@
outputs =
{
nixpkgs,
- flake-utils,
+ futils,
nix-on-droid,
...
}@inputs:
- flake-utils.lib.eachDefaultSystem (
+ futils.lib.eachSystem (
system:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
in
{
- devShells.default =
- let
- stdenvMinimal = pkgs.stdenvNoCC.override {
- cc = null;
- preHook = "";
- allowedRequisites = null;
- initialPath = pkgs.lib.filter (
- a: pkgs.lib.hasPrefix "coreutils" a.name
- ) pkgs.stdenvNoCC.initialPath;
- extraNativeBuildInputs = [ ];
- };
- minimalMkShell = pkgs.mkShell.override { stdenv = stdenvMinimal; };
- in
- minimalMkShell {
- buildInputs = with pkgs; [
- git
- sops
+ devShells.default = futils.lib.minimalMkShell pkgs {
+ buildInputs = with pkgs; [
+ git
+ sops
- # Formatting
- treefmt
- nixfmt-rfc-style
- ];
- };
+ # Formatting
+ treefmt
+ nixfmt-rfc-style
+ ];
+ };
}
)
// {