From 24c99cf22e012e07509505b4efdc528589008dd4 Mon Sep 17 00:00:00 2001 From: schererleander Date: Sun, 17 Aug 2025 00:03:59 +0200 Subject: feat: rename hosts --- hosts/adam/configuration.nix | 79 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 hosts/adam/configuration.nix (limited to 'hosts/adam/configuration.nix') diff --git a/hosts/adam/configuration.nix b/hosts/adam/configuration.nix new file mode 100644 index 0000000..5e29cfc --- /dev/null +++ b/hosts/adam/configuration.nix @@ -0,0 +1,79 @@ +{ pkgs, host, username, ... }: + +{ + + imports = [ + ./hardware-configuration.nix + ./audio.nix + ./wooting.nix + ]; + + # Bootloader. + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + boot.loader.systemd-boot.consoleMode = "max"; + + # 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 = host; + networkmanager.enable = true; + }; + + # Improve startup time + systemd.services.NetworkManager-wait-online.enable = false; + + # Time + time.timeZone = "Europe/Berlin"; + + # Keymap + console.keyMap = "de"; + + # User + users.users.${username} = { + isNormalUser = true; + extraGroups = [ + "networkmanager" + "wheel" + "video" + "input" + ]; + shell = pkgs.zsh; + ignoreShellProgramCheck = true; + }; + + services = { + openssh.enable = true; + gnome.gnome-keyring.enable = true; + }; + + xdg.portal = { + enable = true; + wlr.enable = true; + }; + + security.polkit.enable = true; + + programs.dconf.enable = true; + + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; + nixpkgs.config.allowUnfree = true; + + system.stateVersion = "25.05"; +} -- cgit v1.3.1