nix-config/modules/nixos/common.nix

30 lines
697 B
Nix
Raw Normal View History

{
config,
pkgs,
2024-04-04 18:44:59 -05:00
inputs,
outputs,
...
}: {
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# packages that should be on every system.
environment.systemPackages = with pkgs; [
2024-04-04 18:44:59 -05:00
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
];
2024-04-04 18:44:59 -05:00
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit inputs outputs;};
}