nixos/common.nix

49 lines
922 B
Nix
Raw Normal View History

{ 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;
#wireless = {
# enable = true;
# userControlled.enable = true;
#};
};
2023-04-05 11:17:19 +01:00
# Enable power-profiles
services.power-profiles-daemon.enable = true;
environment.systemPackages = with pkgs; [
2023-04-19 09:28:13 +01:00
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";
};
}