major improvements on purity

This commit is contained in:
2025-02-01 23:26:22 -05:00
parent 0667de38fe
commit 2084f190da
4 changed files with 54 additions and 46 deletions

View File

@@ -29,32 +29,29 @@
}@inputs:
let
username = "primary";
hostname = nixpkgs.lib.strings.removeSuffix "\n" (builtins.readFile /etc/hostname);
system = "x86_64-linux";
pkgs = import nixpkgs {
# config.allowUnfreePredicate =
# pkg:
# builtins.elem (nixpkgs.lib.getName pkg) [
# "steam-unwrapped"
# "steam"
# ];
# idk pkgs.wivrn pulls a bunch of cuda stuff even though cudaSupport is disabled?
config.allowUnfree = true;
config.cudaSupport = false;
};
in
{
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
# desktop
nixosConfigurations.yarn = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs username hostname;
hostname = "yarn";
inherit inputs username;
};
inherit pkgs;
modules = [
./system-${hostname}.nix
agenix.nixosModules.default
./system-yarn.nix
];
};
# laptop
nixosConfigurations.mreow = nixpkgs.lib.nixosSystem {
specialArgs = {
hostname = "mreow";
inherit inputs username;
};
modules = [
./system-mreow.nix
];
};
};