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

25 lines
628 B
Nix
Raw Normal View History

{
pkgs,
inputs,
...
}: {
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 = "";
nix.registry.nixpkgs.flake = inputs.nixpkgs;
nix.registry.nixpkgs-stable.flake = inputs.nixpkgs-stable;
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
}