feat: add nh

This commit is contained in:
Moritz Böhme 2024-11-08 20:00:36 +01:00
parent e93f7ce742
commit a31054750a
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 4 additions and 15 deletions

View file

@ -265,6 +265,10 @@ in
programs = {
mtr.enable = true;
command-not-found.enable = false;
nh = {
enable = true;
flake = "/home/moritz/Documents/dotfiles/";
};
};
services = {

View file

@ -10,12 +10,6 @@ let
inherit (lib) mkEnableOption mkOption types;
cfg = config.my.programs.nix;
mkNom = system: nix:
inputs.nix-monitored.packages.${system}.default.override
{
withNotify = false;
nix = nix;
};
in
{
options.my.programs.nix = {
@ -31,15 +25,6 @@ in
};
config = {
my.nixpkgs.overlays = [
(final: prev:
{
nixos-rebuild = prev.nixos-rebuild.override {
nix = mkNom final.system final.nix;
};
})
];
home-manager.users.moritz.programs.direnv.nix-direnv.package = pkgs.nix-direnv.override {
nix = config.nix.package;
};