70 lines
2 KiB
Nix
70 lines
2 KiB
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{ config, fetchpatch, pkgs, ... }:
|
||
{
|
||
imports =
|
||
[ # Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
];
|
||
|
||
nix.settings.system-features = [
|
||
"gccarch-icelake-client"
|
||
"kvm"
|
||
"big-parallel"
|
||
"benchmark"
|
||
"nixos-test"
|
||
];
|
||
|
||
# Bootloader.
|
||
boot = {
|
||
loader.systemd-boot.enable = true;
|
||
loader.efi.canTouchEfiVariables = true;
|
||
kernelParams = [ "nouveau.config=NvGspRm=1" "quiet" ];
|
||
kernelPackages = pkgs.linuxPackagesFor ( pkgs.linux_latest );
|
||
};
|
||
|
||
# Enable flatpaks
|
||
|
||
services.flatpak.enable = true;
|
||
programs.thefuck.enable = true;
|
||
chaotic.mesa-git.enable = true;
|
||
|
||
environment.sessionVariables = {
|
||
NIXPKGS_ALLOW_UNFREE="1";
|
||
OMP_NUM_THREADS = "12";
|
||
MOZ_ENABLE_WAYLAND="1";
|
||
# QT_QPA_PLATFORM="wayland-egl";
|
||
OCI_CLI_RC_FILE="/home/grimmauld/.oci/config";
|
||
};
|
||
|
||
# Allow unfree packages
|
||
nixpkgs.config.allowUnfree = true;
|
||
|
||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||
|
||
# Some programs need SUID wrappers, can be configured further or are
|
||
# started in user sessions.
|
||
# programs.mtr.enable = true;
|
||
# programs.gnupg.agent = {
|
||
# enable = true;
|
||
# enableSSHSupport = true;
|
||
# };
|
||
|
||
# List services that you want to enable:
|
||
|
||
# Enable the OpenSSH daemon.
|
||
# services.openssh.enable = true;
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "23.05"; # "23.05"; # Did you read the comment?
|
||
|
||
programs.dconf.enable = true;
|
||
|
||
}
|