2024-08-03 20:31:14 +02:00
|
|
|
{
|
|
|
|
nix-config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-04-06 11:48:42 +02:00
|
|
|
|
|
|
|
let
|
2024-09-02 00:07:43 +02:00
|
|
|
inherit (lib) singleton mkMerge;
|
2024-04-09 15:19:29 +02:00
|
|
|
inherit (builtins) attrValues;
|
2024-04-06 11:48:42 +02:00
|
|
|
in
|
|
|
|
{
|
2024-09-02 01:35:17 +02:00
|
|
|
imports = with nix-config.nixosModules; [
|
|
|
|
desktop
|
2024-10-06 14:54:00 +02:00
|
|
|
fonts
|
|
|
|
shell
|
|
|
|
stylix
|
|
|
|
system
|
2024-09-02 01:35:17 +02:00
|
|
|
];
|
2024-04-06 11:48:42 +02:00
|
|
|
|
2024-08-03 20:31:14 +02:00
|
|
|
home-manager.sharedModules =
|
|
|
|
attrValues nix-config.homeModules
|
2024-08-27 16:58:05 +02:00
|
|
|
++ singleton {
|
|
|
|
programs.btop.enable = true;
|
|
|
|
};
|
2024-04-06 11:48:42 +02:00
|
|
|
|
2024-09-02 00:07:43 +02:00
|
|
|
environment.systemPackages = mkMerge [
|
|
|
|
(with pkgs; [
|
|
|
|
ruby
|
|
|
|
php
|
|
|
|
])
|
|
|
|
|
|
|
|
(with nix-config.packages.${pkgs.system}; [
|
2024-10-06 13:30:19 +02:00
|
|
|
dunst-scripts
|
2024-09-02 00:07:43 +02:00
|
|
|
])
|
|
|
|
];
|
2024-04-06 11:48:42 +02:00
|
|
|
|
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: {
|
2024-08-03 20:31:14 +02:00
|
|
|
postInstall =
|
|
|
|
(oldAttrs.postInstall or "")
|
|
|
|
# bash
|
|
|
|
+ ''
|
|
|
|
echo "#!/usr/bin/env sh" >> btop-overlay
|
|
|
|
echo "echo 'hello world'" >> btop-overlay
|
2024-04-06 11:48:42 +02:00
|
|
|
|
2024-08-03 20:31:14 +02:00
|
|
|
install -Dm755 btop-overlay $out/bin/btop-overlay
|
|
|
|
'';
|
2024-04-06 11:48:42 +02:00
|
|
|
});
|
2024-06-02 20:48:40 +02:00
|
|
|
})
|
|
|
|
];
|
2024-09-02 01:35:17 +02:00
|
|
|
|
|
|
|
modules.system.username = "asuna";
|
2024-04-06 11:48:42 +02:00
|
|
|
}
|