mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-07 08:55:24 +01:00
56 lines
989 B
Nix
56 lines
989 B
Nix
{
|
|
nix-config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
inherit (lib) singleton mkMerge;
|
|
inherit (builtins) attrValues;
|
|
in
|
|
{
|
|
imports = with nix-config.nixosModules; [
|
|
desktop
|
|
fonts
|
|
shell
|
|
stylix
|
|
system
|
|
];
|
|
|
|
home-manager.sharedModules =
|
|
attrValues nix-config.homeModules
|
|
++ singleton {
|
|
programs.btop.enable = true;
|
|
};
|
|
|
|
environment.systemPackages = mkMerge [
|
|
(with pkgs; [
|
|
ruby
|
|
php
|
|
])
|
|
|
|
(with nix-config.packages.${pkgs.system}; [
|
|
dunst-scripts
|
|
])
|
|
];
|
|
|
|
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
|
|
'';
|
|
});
|
|
})
|
|
];
|
|
|
|
modules.system.username = "asuna";
|
|
}
|