grimm-nixos-laptop/configuration.nix

68 lines
1.9 KiB
Nix
Raw Normal View History

2023-11-28 23:24:43 +01:00
# 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, ... }:
2023-11-28 23:24:43 +01:00
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
nix.settings.system-features = [
"gccarch-icelake-client"
"kvm"
"big-parallel"
"benchmark"
"nixos-test"
];
2023-11-28 23:24:43 +01:00
# Bootloader.
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
kernelPackages = pkgs.linuxPackagesFor ( pkgs.linux_6_6 );
};
2023-11-28 23:24:43 +01:00
# Enable flatpaks
2023-11-28 23:24:43 +01:00
services.flatpak.enable = true;
programs.thefuck.enable = true;
2023-11-28 23:24:43 +01:00
environment.sessionVariables = {
NIXPKGS_ALLOW_UNFREE="1";
OMP_NUM_THREADS = "12";
MOZ_ENABLE_WAYLAND="1";
OCI_CLI_RC_FILE="/home/grimmauld/.oci/config";
2023-11-28 23:24:43 +01:00
};
# 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. Its 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 = "unstable"; # "23.05"; # Did you read the comment?
programs.dconf.enable = true;
}