Skip to content

Commit

Permalink
Restyle Nix code with nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 7, 2024
1 parent a8d004f commit c477f7f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
20 changes: 15 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@
teracli.url = "github:chevdor/tera-cli";
};

outputs = { self, nixpkgs, flake-utils, flake-compat, gitignore, teracli }:
flake-utils.lib.eachDefaultSystem (system:
outputs =
{
self,
nixpkgs,
flake-utils,
flake-compat,
gitignore,
teracli,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
Expand All @@ -30,8 +39,9 @@
];
};
inherit (gitignore.lib) gitignoreSource;
polytype = rec {
};
polytype =
rec {
};
in
with pkgs;
{
Expand Down Expand Up @@ -62,7 +72,7 @@
FONTCONFIG_FILE = fontsConf;
shellHook = ''
make fonts
'';
'';
};
}
);
Expand Down
23 changes: 14 additions & 9 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# https://nixos.wiki/wiki/Flakes#Using_flakes_project_from_a_legacy_Nix
(import (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash; }
) {
src = ./.;
}).shellNix
(import
(
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{
src = ./.;
}
).shellNix

0 comments on commit c477f7f

Please sign in to comment.