mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-18 17:44:06 +05:30
Testing updated install steps and automated install script
This commit is contained in:
parent
7a24e7507a
commit
b2e631f415
3 changed files with 66 additions and 33 deletions
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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue