CrOS/flake.nix
TheWanderingCrow ffe49cfd32 update flake
2024-12-25 15:44:13 -05:00

55 lines
1.5 KiB
Nix

{
description = "Entry point for NixOS";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixvim.url = "git+https://git.wanderingcrow.net/TheWanderingCrow/nvix";
sops-nix.url = "github:Mic92/sops-nix";
};
outputs = {
nixpkgs,
home-manager,
...
} @ inputs: {
nixosConfigurations = {
Parzival-Mobile = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
nixpkgs = {
system = "x86_64-linux";
config.allowUnfree = true;
};
};
modules = [
./hosts/Parzival-Mobile
home-manager.nixosModules.home-manager
];
};
};
};
#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;};
}