mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-23 14:18:37 +01:00
example: Format with nixfmt-rfc-style
This commit is contained in:
parent
14f65a9633
commit
18c0cb3933
@ -1,4 +1,9 @@
|
|||||||
{ nix-config, pkgs, lib, ... }:
|
{
|
||||||
|
nix-config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) singleton;
|
inherit (lib) singleton;
|
||||||
@ -13,9 +18,9 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.sharedModules = attrValues nix-config.homeModules ++ singleton {
|
home-manager.sharedModules =
|
||||||
programs.btop.enable = true;
|
attrValues nix-config.homeModules
|
||||||
};
|
++ singleton { programs.btop.enable = true; };
|
||||||
|
|
||||||
environment.systemPackages = attrValues {
|
environment.systemPackages = attrValues {
|
||||||
inherit (nix-config.packages.${pkgs.system}) webp-thumbnailer;
|
inherit (nix-config.packages.${pkgs.system}) webp-thumbnailer;
|
||||||
@ -25,12 +30,15 @@ in
|
|||||||
nixpkgs.overlays = attrValues nix-config.overlays ++ [
|
nixpkgs.overlays = attrValues nix-config.overlays ++ [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
btop = prev.btop.overrideAttrs (oldAttrs: {
|
btop = prev.btop.overrideAttrs (oldAttrs: {
|
||||||
postInstall = (oldAttrs.postInstall or "") + /* bash */ ''
|
postInstall =
|
||||||
echo "#!/usr/bin/env sh" >> btop-overlay
|
(oldAttrs.postInstall or "")
|
||||||
echo "echo 'hello world'" >> btop-overlay
|
# 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
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
nix-config.url = "github:donovanglover/nix-config";
|
nix-config.url = "github:donovanglover/nix-config";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nix-config, ... } @ attrs:
|
outputs =
|
||||||
|
{ nix-config, ... }@attrs:
|
||||||
let
|
let
|
||||||
inherit (nix-config.inputs) nixpkgs;
|
inherit (nix-config.inputs) nixpkgs;
|
||||||
inherit (nixpkgs.lib) nixosSystem optional;
|
inherit (nixpkgs.lib) nixosSystem optional;
|
||||||
|
Loading…
Reference in New Issue
Block a user