nix/flake.nix
2024-10-04 15:19:23 +02:00

52 lines
1.2 KiB
Nix

{
outputs = {
self,
nixpkgs,
nix-on-droid,
ags,
stylix,
home-manager,
...
} @ inputs: let
systemConfig = {modules}:
nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = modules ++ [stylix.nixosModules.stylix home-manager.nixosModules.default];
};
in {
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
pkgs = import nixpkgs {system = "aarch64-linux";};
modules = [./hosts/phone];
};
nixosConfigurations = {
desktop = systemConfig {
modules = [./hosts/desktop];
};
laptop = systemConfig {
modules = [./hosts/laptop];
};
};
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
ags.url = "github:Aylur/ags";
stylix.url = "github:danth/stylix";
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-on-droid = {
url = "github:nix-community/nix-on-droid/master";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}