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

28 lines
685 B
Nix
Raw Normal View History

2024-03-26 14:24:51 +00:00
# ref: https://github.com/Misterio77/nix-config/blob/main/hosts/common/global/nix.nix
{
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
nix.settings.flake-registry = "";
# Add each flake input as a registry
# To make nix3 commands consistent with the flake
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
}