nix/flake.nix

52 lines
1.2 KiB
Nix
Raw Normal View History

2024-06-05 20:52:52 +02:00
{
2024-09-28 12:06:19 +02:00
outputs = {
self,
nixpkgs,
nix-on-droid,
ags,
stylix,
home-manager,
...
} @ inputs: let
systemConfig = {modules}:
2024-08-21 09:02:49 +02:00
nixpkgs.lib.nixosSystem {
2024-09-28 12:06:19 +02:00
specialArgs = {inherit inputs;};
2024-09-15 10:00:51 +02:00
modules = modules ++ [stylix.nixosModules.stylix home-manager.nixosModules.default];
2024-08-21 09:02:49 +02:00
};
2024-08-04 00:37:19 +02:00
in {
2024-09-22 13:42:52 +02:00
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
2024-09-28 12:06:19 +02:00
pkgs = import nixpkgs {system = "aarch64-linux";};
modules = [./hosts/phone];
2024-09-22 13:42:52 +02:00
};
2024-08-04 00:37:19 +02:00
nixosConfigurations = {
desktop = systemConfig {
2024-09-28 12:06:19 +02:00
modules = [./hosts/desktop];
2024-08-04 00:37:19 +02:00
};
laptop = systemConfig {
2024-09-28 12:06:19 +02:00
modules = [./hosts/laptop];
2024-08-04 00:37:19 +02:00
};
2024-06-05 20:52:52 +02:00
};
};
2024-10-04 15:19:23 +02:00
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";
};
};
2024-06-05 20:52:52 +02:00
}