From a0572f8a95d5808bbaa3b46812dec4a8097e9e0a Mon Sep 17 00:00:00 2001 From: biscuit Date: Tue, 20 May 2025 12:02:26 -0500 Subject: [PATCH] added variable --- flake.nix | 8 ++++++-- info.nix | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 info.nix diff --git a/flake.nix b/flake.nix index 6be263d..88f5980 100644 --- a/flake.nix +++ b/flake.nix @@ -16,13 +16,17 @@ home-manager, ... } @ inputs: let + info = import ./info.nix; lib = nixpkgs.lib; system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; + args = { + inherit inputs; + } // info; in { nixosConfigurations = { biscuit = lib.nixosSystem { - specialArgs = {inherit inputs system;}; + specialArgs = args; inherit system; modules = [ ./nixos/biscuit/configuration.nix @@ -35,7 +39,7 @@ inherit system; overlays = []; }; - extraSpecialArgs = {inherit inputs system;}; + extraSpecialArgs = args; modules = [./dotfiles/biscuit/home.nix]; }; }; diff --git a/info.nix b/info.nix new file mode 100644 index 0000000..c3ec4a0 --- /dev/null +++ b/info.nix @@ -0,0 +1,4 @@ +{ + hostname = "nixos"; + username = "biscuit"; +}