From 796bc7dcb6443dba4b399151691e7d54503883f8 Mon Sep 17 00:00:00 2001 From: moons-14 Date: Thu, 28 May 2026 13:11:52 +0900 Subject: [PATCH] feat(hosts): add userName to specialArgs, wire hardware-configuration --- .gitignore | 2 ++ hosts/default.nix | 7 +++++-- profiles/base.nix | 9 ++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 06b6a15..0c92e47 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,7 @@ !hosts/ !overlays/ !profiles/ +!modules/ +!applications/ !/flake/ diff --git a/hosts/default.nix b/hosts/default.nix index 83fe160..d705b23 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -7,6 +7,8 @@ let inherit (inputs.nixpkgs.lib) nixosSystem; + userName = "moons"; + mkSystem = { host, @@ -19,11 +21,12 @@ let nixosSystem { inherit system; modules = [ + ./${host}/hardware-configuration.nix ../profiles/${profile}.nix - ../hosts/${host}/default.nix + ./${host}/default.nix ] ++ extraModules; - specialArgs = { inherit inputs; }; + specialArgs = { inherit inputs userName; }; }; in { diff --git a/profiles/base.nix b/profiles/base.nix index 958608a..9ef46a6 100644 --- a/profiles/base.nix +++ b/profiles/base.nix @@ -1 +1,8 @@ -_: { } +{ + userName, + ... +}: +{ + imports = [ ]; + home-manager.users.${userName}.imports = [ ]; +}