120 lines
2.9 KiB
Nix
120 lines
2.9 KiB
Nix
{ config, pkgs, ... }:
|
||
{
|
||
imports = [
|
||
./packages/default.nix
|
||
./virtualization.nix
|
||
./users.nix
|
||
./flatpak.nix
|
||
./hosts.nix
|
||
];
|
||
|
||
# Bootloader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
# Enable networking
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "Europe/Amsterdam";
|
||
|
||
# Enable experimental nix-command flakes
|
||
nix = {
|
||
package = pkgs.nixFlakes;
|
||
extraOptions = ''
|
||
experimental-features = nix-command flakes
|
||
'';
|
||
};
|
||
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "en_US.UTF-8";
|
||
|
||
i18n.extraLocaleSettings = {
|
||
LC_ADDRESS = "nl_NL.UTF-8";
|
||
LC_IDENTIFICATION = "nl_NL.UTF-8";
|
||
LC_MEASUREMENT = "nl_NL.UTF-8";
|
||
LC_MONETARY = "nl_NL.UTF-8";
|
||
LC_NAME = "nl_NL.UTF-8";
|
||
LC_NUMERIC = "nl_NL.UTF-8";
|
||
LC_PAPER = "nl_NL.UTF-8";
|
||
LC_TELEPHONE = "nl_NL.UTF-8";
|
||
LC_TIME = "nl_NL.UTF-8";
|
||
};
|
||
|
||
# Enable the X11 windowing system.
|
||
services.xserver.enable = true;
|
||
|
||
# Enable the GNOME Desktop Environment.
|
||
services.xserver.displayManager.gdm.enable = true;
|
||
services.xserver.desktopManager.gnome.enable = true;
|
||
|
||
environment.systemPackages = [
|
||
pkgs.tailscale
|
||
pkgs.pciutils
|
||
];
|
||
services.tailscale.enable = true;
|
||
|
||
# Configure keymap in X11
|
||
services.xserver.xkb = {
|
||
layout = "us";
|
||
variant = "euro";
|
||
};
|
||
|
||
# Enable sound with pipewire.
|
||
hardware.pulseaudio.enable = false;
|
||
security.rtkit.enable = true;
|
||
services.pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
alsa.support32Bit = true;
|
||
pulse.enable = true;
|
||
};
|
||
|
||
# Allow unfree packages
|
||
nixpkgs.config.allowUnfree = true;
|
||
|
||
# 1Password
|
||
programs._1password.enable = true;
|
||
programs._1password-gui = {
|
||
enable = true;
|
||
polkitPolicyOwners = [ "menno" ];
|
||
};
|
||
|
||
environment.etc = {
|
||
"1password/custom_allowed_browsers" = {
|
||
text = ''
|
||
firefox
|
||
brave
|
||
'';
|
||
mode = "0755";
|
||
};
|
||
};
|
||
|
||
# Enable the OpenSSH daemon.
|
||
# services.openssh = {
|
||
# enable = true;
|
||
# port = 400;
|
||
# permitRootLogin = "no";
|
||
# passwordAuthentication = false;
|
||
# pubkeyAuthentication = true;
|
||
# };
|
||
|
||
# Open ports in the firewall.
|
||
networking.firewall = {
|
||
enable = true;
|
||
allowedTCPPorts = [ ];
|
||
allowedUDPPorts = [ ];
|
||
};
|
||
|
||
# Set hostname to DOTF_HOSTNAME if defined, otherwise use the hostname of the system.
|
||
networking.hostName = builtins.getEnv "DOTF_HOSTNAME";
|
||
|
||
# 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 = "24.05"; # Did you read the comment?
|
||
}
|