Skip to content

Commit

Permalink
Merge pull request #192 from kachick/home-manager-with-nixconf
Browse files Browse the repository at this point in the history
Manage nix.conf with home-manager
  • Loading branch information
kachick authored Jul 28, 2023
2 parents 801ccab + 1b0f7ee commit 669cd42
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
23 changes: 14 additions & 9 deletions .config/home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;

nix = {
enable = true;
settings = {
experimental-features = [ "nix-command" "flakes" ];
};

# Without this makes following errors
#
# error:
# Failed assertions:
# - A corresponding Nix package must be specified via `nix.package` for generating
package = pkgs.nix;
};

programs.fish = {
enable = true;

Expand Down Expand Up @@ -101,15 +115,6 @@
# Not under "starship/starship.toml"
xdg.configFile."starship.toml".source = ../starship.toml;

# TODO: Consider to manage nix.conf with home-manager. However it includes`trusted-public-keys`
# nix.package = pkgs.nix;
# nix.settings = {
# experimental-features = "nix-command";
# };
# nix.extraOptions = ''
# experimental-features = nix-command
# '';

home.packages = [
pkgs.dprint
pkgs.deno
Expand Down
1 change: 0 additions & 1 deletion .config/nix/nix.conf

This file was deleted.

0 comments on commit 669cd42

Please sign in to comment.