Added a new host, made for laptop gaming

This commit is contained in:
Alexandre1a 2026-01-16 10:12:08 +01:00
parent c974bc0321
commit c92f658380
No known key found for this signature in database
GPG Key ID: CE01C28FBC5EEF10
2 changed files with 59 additions and 0 deletions

View File

@ -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";
};
}

6
hosts/laptop/modules.nix Normal file
View File

@ -0,0 +1,6 @@
{
imports = [
../common/modules.nix
];
}