Files
nix-config/common/linux.nix
2021-12-22 21:11:30 -05:00

55 lines
1.2 KiB
Nix

{ pkgs, ... }:
{
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.supportedFilesystems = [ "ntfs" ];
system.stateVersion = "unstable";
system.autoUpgrade.enable = true;
nix.autoOptimiseStore = true;
nix.extraOptions = "experimental-features = nix-command flakes";
nix.package = pkgs.nixUnstable;
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-9.4.4"
];
};
users.users.dave = {
isNormalUser = true;
extraGroups = [ "docker" "wheel" "libvirtd" ];
shell = pkgs.zsh;
};
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
time.timeZone = "America/Toronto";
services.opensnitch.enable = true;
services.opensnitch-ui.enable = true;
sound.enable = true;
# Enable 32bit for steam
hardware.pulseaudio.enable = true;
hardware.opengl.driSupport32Bit = true;
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
hardware.pulseaudio.support32Bit = true;
virtualisation.docker.enable = true;
virtualisation.podman.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
}