Make nh work
This commit is contained in:
parent
944319ecae
commit
854cb6891c
@ -12,6 +12,8 @@
|
|||||||
../../modules/nixos/nvidia.nix
|
../../modules/nixos/nvidia.nix
|
||||||
# Gnome customization
|
# Gnome customization
|
||||||
../../modules/nixos/gnome.nix
|
../../modules/nixos/gnome.nix
|
||||||
|
# Nh helper
|
||||||
|
../../modules/nixos/nh.nix
|
||||||
# Home-manager
|
# Home-manager
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
# Stylix colors
|
# Stylix colors
|
||||||
@ -110,6 +112,10 @@
|
|||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
FLAKE = "/home/shoi/etc/nixos";
|
||||||
|
};
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
9
modules/nixos/nh.nix
Normal file
9
modules/nixos/nh.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.nh = {
|
||||||
|
enable = true;
|
||||||
|
clean.enable = true;
|
||||||
|
clean.extraArgs = "--keep-since 4d --keep 3";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user