nixos/nixos/common.nix

48 lines
900 B
Nix

{ pkgs, ... }:
{
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Home manager integration with NixOS
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
# Enable networking
networking.networkmanager.enable = true;
# Enable power-profiles
services.power-profiles-daemon.enable = true;
environment.systemPackages = with pkgs; [
gnumake
home-manager
clinfo
glxinfo
];
fonts.fontconfig.enable = true;
programs.ssh.startAgent = true;
programs.fish.enable = true;
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions = {
enable = true;
};
syntaxHighlighting = {
enable = true;
};
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
system.autoUpgrade = {
enable = false;
allowReboot = false;
};
}