2023-12-10 16:11:24 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
2023-12-17 09:51:15 +00:00
|
|
|
lib,
|
2023-12-10 16:11:24 +00:00
|
|
|
...
|
|
|
|
}: {
|
2023-10-15 00:51:56 +00:00
|
|
|
# Enable Flakes
|
2023-11-04 10:14:42 +00:00
|
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
2023-10-15 00:51:56 +00:00
|
|
|
|
2023-12-05 06:57:40 +00:00
|
|
|
# Disable nix-channel
|
|
|
|
nix.channel.enable = false;
|
|
|
|
|
2023-12-10 16:11:24 +00:00
|
|
|
# Disable flake-registry
|
|
|
|
# https://nixos-and-flakes.thiscute.world/best-practices/nix-path-and-flake-registry
|
|
|
|
nix.settings.flake-registry = "";
|
2023-12-17 09:51:15 +00:00
|
|
|
|
|
|
|
# Add each flake input as a registry
|
|
|
|
# To make nix3 commands consistent with the flake
|
|
|
|
# https://github.com/Misterio77/nix-config/blob/main/hosts/common/global/nix.nix
|
|
|
|
nix.registry = lib.mapAttrs (_: value: {flake = value;}) inputs;
|
2023-12-10 16:11:24 +00:00
|
|
|
|
2023-11-04 07:36:48 +00:00
|
|
|
# Install Git
|
2023-11-04 10:14:42 +00:00
|
|
|
environment.systemPackages = [pkgs.git];
|
2023-11-04 07:36:48 +00:00
|
|
|
|
2023-10-15 00:51:56 +00:00
|
|
|
# Does not work with Flake based configurations
|
|
|
|
system.copySystemConfiguration = false;
|
|
|
|
programs.command-not-found.enable = false;
|
2023-09-19 00:17:43 +00:00
|
|
|
}
|