Centralize hostname/user defaults

Co-authored-by: ragusa-it <196988693+ragusa-it@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-01 20:54:32 +00:00
parent ba88891d03
commit 62c62ef680
5 changed files with 32 additions and 30 deletions

View File

@@ -37,15 +37,18 @@
outputs = { self, nixpkgs, mango, quickshell, noctalia, nix-gaming, home-manager, ... }@inputs:
let
system = "x86_64-linux";
hostname = "atlas";
username = "pinj";
lib = nixpkgs.lib;
specialArgs = { inherit inputs system; };
hostConfig = ./hosts + "/${hostname}/hardware-configuration.nix";
specialArgs = { inherit inputs system hostname username; };
# Verify mango flake exports the expected module
mangoModule = assert lib.hasAttrByPath [ "nixosModules" "mango" ] mango;
mango.nixosModules.mango;
commonModules = [
./hosts/atlas/hardware-configuration.nix
hostConfig
./modules/common.nix
mangoModule
# Home Manager module - Foundation for user-level package management