From 1484a137d91e3b5e476cd801607bf1b63850d7da Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 9 Jan 2025 18:21:47 -0800 Subject: [PATCH] lynx: nh --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 2 ++ hosts/lynx/configuration.nix | 10 ++++++++-- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index 6f8fc0d..82adca3 100644 --- a/flake.lock +++ b/flake.lock @@ -579,6 +579,26 @@ "type": "github" } }, + "nh": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1735816258, + "narHash": "sha256-7zBiXoC43piFocq0wHvNm5KgzolCi3axD4QhWfsw4DU=", + "owner": "viperML", + "repo": "nh", + "rev": "b7a857066e726dafe9c5f00a8af6ab3f25036ee1", + "type": "github" + }, + "original": { + "owner": "viperML", + "repo": "nh", + "type": "github" + } + }, "niri": { "inputs": { "niri-stable": "niri-stable", @@ -958,6 +978,7 @@ "home-manager": "home-manager_2", "lix-module": "lix-module", "neovim-overlay": "neovim-overlay", + "nh": "nh", "niri": "niri", "nix-darwin": "nix-darwin", "nix-gaming": "nix-gaming", diff --git a/flake.nix b/flake.nix index 0084a8f..d1b6089 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,8 @@ niri = { url = "github:sodiboo/niri-flake"; inputs.nixpkgs.follows = "nixpkgs"; }; nix-gaming.url = "github:fufexan/nix-gaming"; + nh = { url = "github:viperML/nh"; inputs.nixpkgs.follows = "nixpkgs"; }; + nix-darwin = { url = "github:LnL7/nix-darwin"; inputs.nixpkgs.follows = "nixpkgs"; }; repo-clone.url = "git+https://git.zynh.me/Zynh0722/repo-clone"; diff --git a/hosts/lynx/configuration.nix b/hosts/lynx/configuration.nix index b6a26ef..61fc206 100644 --- a/hosts/lynx/configuration.nix +++ b/hosts/lynx/configuration.nix @@ -1,11 +1,17 @@ -{ pkgs, lib, self, ... }: { +{ pkgs, lib, self, inputs, ... }: { # List packages installed in system profile. To search by name, run: # $ nix-env -qaP | grep wget - environment.systemPackages = [ ]; + environment.systemPackages = [ + inputs.nh.packages.${pkgs.system}.default + ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.optimise.automatic = true; + environment.variables = { + NH_FLAKE = "/Users/zynh/nixos"; + }; + environment.shells = with pkgs; [ bashInteractive zsh fish ]; # Auto upgrade nix package and the daemon service.