added variable

This commit is contained in:
biscuit
2025-05-20 12:02:26 -05:00
parent 6e32ac5ceb
commit a0572f8a95
2 changed files with 10 additions and 2 deletions
+6 -2
View File
@@ -16,13 +16,17 @@
home-manager, home-manager,
... ...
} @ inputs: let } @ inputs: let
info = import ./info.nix;
lib = nixpkgs.lib; lib = nixpkgs.lib;
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
args = {
inherit inputs;
} // info;
in { in {
nixosConfigurations = { nixosConfigurations = {
biscuit = lib.nixosSystem { biscuit = lib.nixosSystem {
specialArgs = {inherit inputs system;}; specialArgs = args;
inherit system; inherit system;
modules = [ modules = [
./nixos/biscuit/configuration.nix ./nixos/biscuit/configuration.nix
@@ -35,7 +39,7 @@
inherit system; inherit system;
overlays = []; overlays = [];
}; };
extraSpecialArgs = {inherit inputs system;}; extraSpecialArgs = args;
modules = [./dotfiles/biscuit/home.nix]; modules = [./dotfiles/biscuit/home.nix];
}; };
}; };
+4
View File
@@ -0,0 +1,4 @@
{
hostname = "nixos";
username = "biscuit";
}