From db88d50e8924cba8b424c0ea7546b81baccd9c5c Mon Sep 17 00:00:00 2001 From: schererleander Date: Tue, 29 Apr 2025 16:59:25 +0200 Subject: initial commit --- hosts/nixos/configuration.nix | 63 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 hosts/nixos/configuration.nix (limited to 'hosts/nixos/configuration.nix') diff --git a/hosts/nixos/configuration.nix b/hosts/nixos/configuration.nix new file mode 100644 index 0000000..5d8578c --- /dev/null +++ b/hosts/nixos/configuration.nix @@ -0,0 +1,63 @@ +{ config, pkgs, ...}: + +{ + + imports = [ + ./hardware-configuration.nix + ../../modules/nixos + ]; + + # Bootloader. + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + # Use latest kernel + boot.kernelPackages = pkgs.linuxPackages_latest; + + # Graphics + hardware.graphics = { + enable = true; + enable32Bit = true; + extraPackages = with pkgs; [ + amdvlk + ]; + }; + + environment.variables.AMD_VULKAN_ICD = "RADV"; + + # Network + networking = { + hostName = "nixos"; + networkmanager.enable = true; + }; + + # Time + time.timeZone = "Europe/Berlin"; + + # Keymap + console.keyMap = "de"; + + # User + users.users.leander = { + isNormalUser = true; + extraGroups = [ "networkmanager" "wheel" "video" "input" ]; + }; + + services = { + openssh.enable = true; + gnome.gnome-keyring.enable = true; + }; + + # Security + security.polkit.enable = true; + + # home manager crash when disabled + programs.dconf.enable = true; + + audio.enable = true; + wooting.enable = true; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nixpkgs.config.allowUnfree = true; + system.stateVersion = "24.11"; +} -- cgit v1.3.1