mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 17:53:17 +01:00
ce67ffbf73
This fixes an issue where previously homeManagerModules would be an unknown flake output. Note that this change is a part of Nix 2.22.3 but not Nix 2.23.3.
38 lines
923 B
Nix
38 lines
923 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.homeModules ++ 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
|
|
'';
|
|
});
|
|
})
|
|
];
|
|
}
|