Configure for atlas/pinj and add Wayland session variables

- Rename hosts/hostname/ to hosts/atlas/
- Replace all <hostname> placeholders with 'atlas'
- Replace all <username> placeholders with 'pinj'
- Set timezone to Europe/Rome (with TODO note to change if needed)
- Set locale to en_US.UTF-8
- Add Wayland session variables (QT_QPA_PLATFORM, MOZ_ENABLE_WAYLAND,
  NIXOS_OZONE_WL) for proper app integration
- Remove placeholder comments that are no longer needed

https://claude.ai/code/session_01UAdmEkSeh9NGPfjRfViLWY
This commit is contained in:
Claude
2026-02-01 20:00:52 +00:00
parent 88bab96c2b
commit 042b36f2e4
5 changed files with 17 additions and 18 deletions

View File

@@ -34,9 +34,8 @@
mangoModule = assert lib.hasAttrByPath [ "nixosModules" "mango" ] mango; mangoModule = assert lib.hasAttrByPath [ "nixosModules" "mango" ] mango;
mango.nixosModules.mango; mango.nixosModules.mango;
# IMPORTANT: Replace <hostname> with actual hostname
commonModules = [ commonModules = [
./hosts/<hostname>/hardware-configuration.nix ./hosts/atlas/hardware-configuration.nix
./modules/common.nix ./modules/common.nix
mangoModule mangoModule
]; ];

View File

@@ -10,10 +10,9 @@
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# SYSTEM # SYSTEM
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# IMPORTANT: Replace with actual values networking.hostName = "atlas";
networking.hostName = "<hostname>"; time.timeZone = "Europe/Rome"; # TODO: Change to your timezone
time.timeZone = "<timezone>"; i18n.defaultLocale = "en_US.UTF-8";
i18n.defaultLocale = "<locale>";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@@ -42,6 +41,13 @@
# This variable is optional but makes it explicit # This variable is optional but makes it explicit
environment.variables.AMD_VULKAN_ICD = "RADV"; environment.variables.AMD_VULKAN_ICD = "RADV";
# Wayland session variables for proper app integration
environment.sessionVariables = {
QT_QPA_PLATFORM = "wayland";
MOZ_ENABLE_WAYLAND = "1";
NIXOS_OZONE_WL = "1"; # Electron apps (VS Code, Discord, etc.)
};
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# CPU - Zen 3 Optimizations (Ryzen 7 5700G) # CPU - Zen 3 Optimizations (Ryzen 7 5700G)
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
@@ -75,16 +81,14 @@
enable = true; enable = true;
settings.default_session = { settings.default_session = {
command = "mango"; command = "mango";
# IMPORTANT: Replace <username> with actual username user = "pinj";
user = "<username>";
}; };
}; };
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# USER ACCOUNT # USER ACCOUNT
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# IMPORTANT: Replace <username> with actual username users.users.pinj = {
users.users.<username> = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "video" "seat" ]; extraGroups = [ "wheel" "networkmanager" "video" "seat" ];
# IMPORTANT: Generate a password hash with: mkpasswd -m sha-512 # IMPORTANT: Generate a password hash with: mkpasswd -m sha-512

View File

@@ -22,10 +22,9 @@
}; };
}; };
# IMPORTANT: Replace <username> with actual username
# NOTE: After first enabling/applying this dev profile, you must log out and # NOTE: After first enabling/applying this dev profile, you must log out and
# log back in (or reboot) for the docker group membership to take effect. # log back in (or reboot) for the docker group membership to take effect.
users.users.<username>.extraGroups = [ "docker" ]; users.users.pinj.extraGroups = [ "docker" ];
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# DEVELOPMENT TOOLS # DEVELOPMENT TOOLS
@@ -35,8 +34,7 @@
nix-direnv.enable = true; # Caches nix shells nix-direnv.enable = true; # Caches nix shells
}; };
# IMPORTANT: Replace <username> with actual username users.users.pinj.packages = with pkgs; [
users.users.<username>.packages = with pkgs; [
# -- Git -- # -- Git --
lazygit lazygit
gh # GitHub CLI gh # GitHub CLI

View File

@@ -53,14 +53,12 @@
# programs to function correctly. These groups are only added when using # programs to function correctly. These groups are only added when using
# the gaming profile. If you need consistent group membership across # the gaming profile. If you need consistent group membership across
# both profiles, add these groups to common.nix instead. # both profiles, add these groups to common.nix instead.
# IMPORTANT: Replace <username> with actual username users.users.pinj.extraGroups = [ "corectrl" "gamemode" ];
users.users.<username>.extraGroups = [ "corectrl" "gamemode" ];
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# GAMING PACKAGES # GAMING PACKAGES
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# IMPORTANT: Replace <username> with actual username users.users.pinj.packages = with pkgs; [
users.users.<username>.packages = with pkgs; [
# -- Performance Overlays -- # -- Performance Overlays --
mangohud # FPS counter, GPU stats mangohud # FPS counter, GPU stats
goverlay # MangoHud GUI config goverlay # MangoHud GUI config