Skip to content

Commit

Permalink
Manage nix.conf with home-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 28, 2023
1 parent 801ccab commit 1b0f7ee
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 1b0f7ee

Please sign in to comment.