flake/nixos/profiles/common/core/nix/flake.nix

29 lines
769 B
Nix
Raw Normal View History

{
pkgs,
inputs,
lib,
...
}: {
2023-10-15 00:51:56 +00:00
# Enable Flakes
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;
# Disable flake-registry
# https://nixos-and-flakes.thiscute.world/best-practices/nix-path-and-flake-registry
nix.settings.flake-registry = "";
# 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-11-04 07:36:48 +00:00
# Install Git
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
}