diff --git a/example/configuration.nix b/example/configuration.nix index adb0a792..2cfe71d8 100644 --- a/example/configuration.nix +++ b/example/configuration.nix @@ -1,4 +1,9 @@ -{ nix-config, pkgs, lib, ... }: +{ + nix-config, + pkgs, + lib, + ... +}: let inherit (lib) singleton; @@ -13,9 +18,9 @@ in }; }; - home-manager.sharedModules = attrValues nix-config.homeModules ++ singleton { - programs.btop.enable = true; - }; + home-manager.sharedModules = + attrValues nix-config.homeModules + ++ singleton { programs.btop.enable = true; }; environment.systemPackages = attrValues { inherit (nix-config.packages.${pkgs.system}) webp-thumbnailer; @@ -25,12 +30,15 @@ in nixpkgs.overlays = attrValues nix-config.overlays ++ [ (final: prev: { btop = prev.btop.overrideAttrs (oldAttrs: { - postInstall = (oldAttrs.postInstall or "") + /* bash */ '' - echo "#!/usr/bin/env sh" >> btop-overlay - echo "echo 'hello world'" >> btop-overlay + postInstall = + (oldAttrs.postInstall or "") + # bash + + '' + echo "#!/usr/bin/env sh" >> btop-overlay + echo "echo 'hello world'" >> btop-overlay - install -Dm755 btop-overlay $out/bin/btop-overlay - ''; + install -Dm755 btop-overlay $out/bin/btop-overlay + ''; }); }) ]; diff --git a/example/flake.nix b/example/flake.nix index 8d1d924a..e675b398 100644 --- a/example/flake.nix +++ b/example/flake.nix @@ -5,7 +5,8 @@ nix-config.url = "github:donovanglover/nix-config"; }; - outputs = { nix-config, ... } @ attrs: + outputs = + { nix-config, ... }@attrs: let inherit (nix-config.inputs) nixpkgs; inherit (nixpkgs.lib) nixosSystem optional;