config/hosts/falcon/default.nix

126 lines
2.7 KiB
Nix

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{ config
, modulesPath
, pkgs
, ...
}: {
imports = [
./hardware.nix
../../users/carsten
../common.nix
./pkgs.nix
];
# Enable non-free packages
nixpkgs.config.allowUnfree = true;
boot.loader = {
systemd-boot = {
enable = true;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
};
# Configure nix itself
nix = {
# Enable nix flakes
package = pkgs.nixFlakes;
settings = {
# Maximum number of concurrent tasks during one build
build-cores = 12;
# Maximum number of jobs that Nix will try to build in parallel
max-jobs = "auto";
# Perform builds in a sandboxed environment
sandbox = true;
# Enable flakes
experimental-features = [ "nix-command" "flakes" ];
};
};
# Set your time zone.
time.timeZone = "Europe/Copenhagen";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.utf8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
# Configure console keymap
console.keyMap = "us";
# Audio
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Pinentry / GPG
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "gtk2";
enableSSHSupport = true;
};
security.pam.loginLimits = [
# Unlimited amount of processes for root
{
domain = "root";
item = "nproc";
value = "unlimited";
}
# Unlimited open file descriptors
{
domain = "*";
item = "nofile";
value = "unlimited";
}
];
networking = {
networkmanager.enable = true;
hostName = "falcon";
nameservers = [ "192.168.1.1" "87.62.97.64" ];
};
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "";
displayManager.gdm.enable = true;
desktopManager.gnome.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 = "22.11"; # Did you read the comment?
}