From c92f6583801bc6998f74de6b9f49754181c7d7e7 Mon Sep 17 00:00:00 2001 From: Alexandre1a Date: Fri, 16 Jan 2026 10:12:08 +0100 Subject: [PATCH] Added a new host, made for laptop gaming --- hosts/laptop/configuration.nix | 53 ++++++++++++++++++++++++++++++++++ hosts/laptop/modules.nix | 6 ++++ 2 files changed, 59 insertions(+) create mode 100644 hosts/laptop/configuration.nix create mode 100644 hosts/laptop/modules.nix diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix new file mode 100644 index 0000000..da4d833 --- /dev/null +++ b/hosts/laptop/configuration.nix @@ -0,0 +1,53 @@ +{ pkgs, ... }: +{ + imports = [ + ./modules.nix + ]; + + networking = { + hostName = "laptop"; + networkmanager = { + enable = true; + }; + }; + + users = { + users = { + laptop = { + isNormalUser = true; + description = "Laptop"; + shell = pkgs.zsh; + extraGroups = [ "networkmanager" "wheel" ]; + }; + }; + }; + + programs = { + hyprland = { + enable = true; + }; + zsh = { + enable = true; + }; + }; + + enviroment = { + systemPackages = with pkgs; [ + playerctl + nvtopPackages.nvidia + libva + libva-utils + cudatoolkit + + sddm-astraunot + ]; + sessionVariables = { + NIXOS_OZONE_WL = "1"; + }; + pathToLink = [ "/share/zsh" ]; + }; + + system = { + stateVersion = "24.11"; + }; +} diff --git a/hosts/laptop/modules.nix b/hosts/laptop/modules.nix new file mode 100644 index 0000000..02a7863 --- /dev/null +++ b/hosts/laptop/modules.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ../common/modules.nix + ]; + +}