feat: add nh
This commit is contained in:
parent
e93f7ce742
commit
a31054750a
2 changed files with 4 additions and 15 deletions
|
@ -265,6 +265,10 @@ in
|
|||
programs = {
|
||||
mtr.enable = true;
|
||||
command-not-found.enable = false;
|
||||
nh = {
|
||||
enable = true;
|
||||
flake = "/home/moritz/Documents/dotfiles/";
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue