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
|
||||
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,7 +30,10 @@ in
|
||||
nixpkgs.overlays = attrValues nix-config.overlays ++ [
|
||||
(final: prev: {
|
||||
btop = prev.btop.overrideAttrs (oldAttrs: {
|
||||
postInstall = (oldAttrs.postInstall or "") + /* bash */ ''
|
||||
postInstall =
|
||||
(oldAttrs.postInstall or "")
|
||||
# bash
|
||||
+ ''
|
||||
echo "#!/usr/bin/env sh" >> btop-overlay
|
||||
echo "echo 'hello world'" >> btop-overlay
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user