Skip to content

Commit

Permalink
feat: disable global flake registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnossiom committed Jan 18, 2024
1 parent bdf73ca commit 5044cb7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion home-manager/modules/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ with lib;

difftastic.enable = true;

ignores = [ ".direnv/" ];
# Ignore very specific stuff that is not common to much repos
ignores = [
# Direnv cache
".direnv/"
# Nix build result link
"result"
];

aliases = {
b = "branch --all";
Expand Down
3 changes: 0 additions & 3 deletions home-manager/profiles/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ in
settings = {
confirm_os_window_close = 0;
enable_audio_bell = "no";

# foreground = "#${config.colorScheme.colors.base05}";
# background = "#${config.colorScheme.colors.base00}";
};
};

Expand Down
4 changes: 4 additions & 0 deletions nixos/modules/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ in
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;

# Disable flake registry to keep system pure and
# avoid network calls each nix invoation.
flake-registry = "";

keep-going = true;

trusted-users = [ config.local.user.username ];
Expand Down

0 comments on commit 5044cb7

Please sign in to comment.