nix-config/example/configuration.nix
Donovan Glover 6bb9350f7a
example: Inherit all overlays by default
Fixes an issue where the old phinger-cursors wasn't being used and
should future-proof any necessary overlays for the functioning of the
system.
2024-06-02 14:50:50 -04:00

38 lines
930 B
Nix

{ nix-config, pkgs, lib, ... }:
let
inherit (lib) singleton;
inherit (builtins) attrValues;
in
{
imports = attrValues {
inherit (nix-config.nixosModules) system shell desktop;
customConfig = {
modules.system.username = "asuna";
};
};
home-manager.sharedModules = attrValues nix-config.homeManagerModules ++ singleton {
programs.btop.enable = true;
};
environment.systemPackages = attrValues {
inherit (nix-config.packages.${pkgs.system}) webp-thumbnailer;
inherit (pkgs) ruby php;
};
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
install -Dm755 btop-overlay $out/bin/btop-overlay
'';
});
})
];
}