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