aboutsummaryrefslogtreecommitdiff
path: root/hosts/adam/configuration.nix
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-08-17 00:03:59 +0200
committerschererleander <leander@schererleander.de>2025-08-17 00:07:48 +0200
commit24c99cf22e012e07509505b4efdc528589008dd4 (patch)
tree7a1eaa310fe747fe910286eac3c047f936a4a129 /hosts/adam/configuration.nix
parent3bb78df81f840bc542140129c488050628b40881 (diff)
feat: rename hosts
Diffstat (limited to 'hosts/adam/configuration.nix')
-rw-r--r--hosts/adam/configuration.nix79
1 files changed, 79 insertions, 0 deletions
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";
+}