2024-04-06 19:55:50 +02:00
|
|
|
{ nix-config, pkgs, lib, ... }:
|
2024-04-06 11:48:42 +02:00
|
|
|
|
|
|
|
let
|
2024-04-06 19:55:50 +02:00
|
|
|
inherit (lib) singleton;
|
2024-04-09 15:19:29 +02:00
|
|
|
inherit (builtins) attrValues;
|
2024-04-06 11:48:42 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = attrValues {
|
2024-04-06 19:55:50 +02:00
|
|
|
inherit (nix-config.nixosModules) system shell desktop;
|
2024-04-06 11:48:42 +02:00
|
|
|
|
|
|
|
customConfig = {
|
2024-04-06 19:55:50 +02:00
|
|
|
modules.system.username = "asuna";
|
2024-04-06 11:48:42 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-06 19:55:50 +02:00
|
|
|
home-manager.sharedModules = attrValues nix-config.homeManagerModules ++ singleton {
|
|
|
|
programs.btop.enable = true;
|
2024-04-06 11:48:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = attrValues {
|
2024-06-02 20:46:18 +02:00
|
|
|
inherit (nix-config.packages.${pkgs.system}) webp-thumbnailer;
|
2024-04-06 11:48:42 +02:00
|
|
|
inherit (pkgs) ruby php;
|
|
|
|
};
|
|
|
|
|
2024-06-02 20:48:40 +02:00
|
|
|
nixpkgs.overlays = attrValues nix-config.overlays ++ [
|
|
|
|
(final: prev: {
|
2024-04-06 11:48:42 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
});
|
2024-06-02 20:48:40 +02:00
|
|
|
})
|
|
|
|
];
|
2024-04-06 11:48:42 +02:00
|
|
|
}
|