Enable nh from nixpkgs

This commit is contained in:
Lgmrszd 2024-05-11 01:00:14 +03:00
parent fbbd7dd021
commit 3b6dd1f5f8
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
3 changed files with 12 additions and 6 deletions

View file

@ -22,10 +22,6 @@
url = "github:nix-community/home-manager/master"; url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nh = {
url = "github:viperML/nh";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = { sops-nix = {
url = "github:Mic92/sops-nix"; url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -99,7 +95,7 @@
]; ];
} }
# nur.nixosModules.nur # nur.nixosModules.nur
inputs.nh.nixosModules.default # inputs.nh.nixosModules.default
./hosts/laptop/configuration.nix ./hosts/laptop/configuration.nix
./hosts/laptop/hardware-configuration.nix ./hosts/laptop/hardware-configuration.nix
./hosts/laptop/mounts.nix ./hosts/laptop/mounts.nix
@ -128,7 +124,7 @@
}; };
modules = [ modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = my-overlays; }) ({ config, pkgs, ... }: { nixpkgs.overlays = my-overlays; })
inputs.nh.nixosModules.default # inputs.nh.nixosModules.default
./hosts/vps1/configuration.nix ./hosts/vps1/configuration.nix
./hosts/vps1/hardware-configuration.nix ./hosts/vps1/hardware-configuration.nix
sops-nix.nixosModules.sops sops-nix.nixosModules.sops

View file

@ -228,6 +228,12 @@ in
programs.fish = { programs.fish = {
enable = true; enable = true;
}; };
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 7d --keep 2";
};
# KDE Programs # KDE Programs

View file

@ -126,6 +126,10 @@ in
}; };
}; };
programs.nh = {
enable = true;
};
programs.mosh.enable = true; programs.mosh.enable = true;