nix-config/nixos/configuration.nix

85 lines
2.5 KiB
Nix
Raw Normal View History

2024-01-04 00:23:45 +01:00
{ config, pkgs, inputs, outputs, ... }:
{
imports =
[
inputs.hardware.nixosModules.common-cpu-intel
inputs.hardware.nixosModules.common-pc-laptop-ssd
inputs.hardware.nixosModules.common-pc-laptop
./lenovo-thinkpad-x1-1st-gen.nix
./hardware-configuration.nix
outputs.nixosModules.gnome
./security.nix
./users.nix
./software.nix
2024-01-05 13:11:02 +01:00
./wireguard.nix
2024-01-04 00:23:45 +01:00
];
nixpkgs.config.allowUnfree = true;
nixpkgs.config.allowAliases = false;
2024-01-07 16:07:03 +01:00
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
substituters =
[ "https://nix-community.cachix.org" "https://devenv.cachix.org" ];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
];
};
nixpkgs.overlays = [
outputs.overlays.additions
outputs.overlays.unstable-packages
outputs.overlays.dynamic-triple-buffering
];
2024-01-04 00:23:45 +01:00
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "goop-drive"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Moscow";
# Select internationalisation properties.
i18n.defaultLocale = "en_GB.UTF-8";
# Configure keymap in X11
services.xserver = {
layout = "us";
xkbVariant = "workman";
};
console.useXkbConfig = true;
2024-01-07 16:07:03 +01:00
# Prefer tlp over Gnome's power-profiles-daemon
#services.power-profiles-daemon.enable = false;
#services.tlp.enable = true;
2024-01-04 00:23:45 +01:00
# Enable CUPS to print documents.
#services.printing.enable = false;
# 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;
# };
# 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 = "23.11"; # Did you read the comment?
}