Testing updated install steps and automated install script
This commit is contained in:
25
flake.nix
25
flake.nix
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user