{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# add ags
ags.url = "github:Aylur/ags";
};
outputs = { home-manager, nixpkgs, ... }@inputs:
let
username = "kahlenden";
hostname = "Windows11";
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
{
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs username system; };
modules = [ ./configuration.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${username} = import ./home.nix;
home-manager.extraSpecialArgs = {inherit inputs username; };
}
];
};
};
}
This is what i came up with, still error tho, no idea what went wrong
error:
… while calling the 'seq' builtin
at /nix/store/dw3dzpv6yqrw2gikw9qgnda0sy8xvlwi-source/lib/modules.nix:322:18:
321| options = checked options;
322| config = checked (removeAttrs config [ "_module" ]);
| ^
323| _module = checked (config._module);
… while evaluating a branch condition
at /nix/store/dw3dzpv6yqrw2gikw9qgnda0sy8xvlwi-source/lib/modules.nix:261:9:
260| checkUnmatched =
261| if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
| ^
262| let
(stack trace truncated; use '--show-trace' to show the full trace)
error: in pure evaluation mode, 'fetchTarball' requires a 'sha256' argument