121 lines
3.1 KiB
Nix
121 lines
3.1 KiB
Nix
{ config, pkgs, ... }:
|
||
{
|
||
imports = [
|
||
# Include the results of the hardware scan.
|
||
/etc/nixos/hardware-configuration.nix
|
||
./nvidia.nix
|
||
./virtualization.nix
|
||
./users.nix
|
||
./flatpak.nix
|
||
];
|
||
|
||
# Bootloader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
networking.hostName = "mennos-laptop";
|
||
# networking.wireless.enable = 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 ];
|
||
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";
|
||
};
|
||
};
|
||
|
||
# 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;
|
||
|
||
# Open ports in the firewall.
|
||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||
# Or disable the firewall altogether.
|
||
# networking.firewall.enable = false;
|
||
|
||
# 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?
|
||
}
|