mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
update flake
This commit is contained in:
parent
542d2639e4
commit
aaea5d9650
1 changed files with 35 additions and 19 deletions
54
flake.nix
54
flake.nix
|
|
@ -9,25 +9,41 @@
|
|||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
};
|
||||
|
||||
outputs = inputs: let
|
||||
system = "x86_64-linux";
|
||||
inherit (inputs.nixpkgs) lib;
|
||||
|
||||
overlays = [];
|
||||
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system overlays;
|
||||
config.allowUnfree = true;
|
||||
config.android_sdk.accept_license = true;
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
...
|
||||
} @ inputs: {
|
||||
nixosConfigurations = {
|
||||
Parzival-Mobile = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit nixpkgs inputs;};
|
||||
modules = [
|
||||
./hosts/Parzival-Mobile
|
||||
home-manager.nixosModules.home-manager
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ns = host: (lib.nixosSystem {
|
||||
specialArgs = {inherit pkgs inputs;};
|
||||
modules = [
|
||||
(./hosts + "/${host}")
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
});
|
||||
in {nixosConfigurations = lib.attrsets.genAttrs ["Parzival" "Parzival-Mobile" "WCE-Overseer"] ns;};
|
||||
#outputs = inputs: let
|
||||
# system = "x86_64-linux";
|
||||
# inherit (inputs.nixpkgs) lib;
|
||||
|
||||
# overlays = [];
|
||||
|
||||
# pkgs = import inputs.nixpkgs {
|
||||
# inherit system overlays;
|
||||
# config.allowUnfree = true;
|
||||
# config.android_sdk.accept_license = true;
|
||||
# };
|
||||
|
||||
# ns = host: (lib.nixosSystem {
|
||||
# specialArgs = {inherit pkgs inputs;};
|
||||
# modules = [
|
||||
# (./hosts + "/${host}")
|
||||
# inputs.home-manager.nixosModules.home-manager
|
||||
# inputs.sops-nix.nixosModules.sops
|
||||
# ];
|
||||
# });
|
||||
#in {nixosConfigurations = lib.attrsets.genAttrs ["Parzival" "Parzival-Mobile" "WCE-Overseer"] ns;};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue