Testing updated install steps and automated install script

This commit is contained in:
Emmet
2024-02-25 12:01:59 -06:00
parent 7a24e7507a
commit b2e631f415
3 changed files with 66 additions and 33 deletions

View File

@@ -67,6 +67,20 @@
# configure lib
lib = nixpkgs.lib;
# Systems that can run tests:
supportedSystems = [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
];
# Function to generate a set based on supported systems:
forAllSystems = inputs.nixpkgs.lib.genAttrs supportedSystems;
# Attribute set of nixpkgs for each system:
nixpkgsFor = forAllSystems (system:
import inputs.nixpkgs { inherit system; });
in {
homeConfigurations = {
user = home-manager.lib.homeManagerConfiguration {
@@ -107,6 +121,17 @@
};
};
};
packages = forAllSystems (system:
let pkgs = nixpkgsFor.${system}; in
{
default = self.packages.${system}.install;
install = pkgs.writeShellApplication {
name = "install";
text = builtins.readFile ./install.sh;
};
});
};
inputs = {