2024-04-06 19:55:50 +02:00
|
|
|
{ nix-config, pkgs, lib, ... }:
|
2024-04-06 11:48:42 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (builtins) attrValues;
|
2024-04-06 19:55:50 +02:00
|
|
|
inherit (lib) singleton;
|
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-04-06 19:55:50 +02:00
|
|
|
inherit (nix-config.packages.x86_64-linux) fluent-icons hycov osu-backgrounds;
|
2024-04-06 11:48:42 +02:00
|
|
|
inherit (pkgs) ruby php;
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.overlays = attrValues {
|
|
|
|
inherit (nix-config.overlays) kitty;
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|