major improvements on purity
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user