mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 16:23:57 +01:00
d17402a84c
Might eventually not need any overlays at all. Will probably make a README.md file in the overlays directory in that case to make it easy to remember how to write them.
40 lines
978 B
Nix
40 lines
978 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.x86_64-linux) fluent-icons osu-backgrounds;
|
|
inherit (pkgs) ruby php;
|
|
};
|
|
|
|
nixpkgs.overlays = attrValues {
|
|
inherit (nix-config.overlays) hyprland;
|
|
|
|
exampleOverlay = 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
|
|
'';
|
|
});
|
|
};
|
|
};
|
|
}
|