initial commit
This commit is contained in:
commit
b0f075f2cb
22 changed files with 1812 additions and 0 deletions
76
flake.nix
Normal file
76
flake.nix
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
description = "Flight Flutter Flake";
|
||||
|
||||
inputs = {
|
||||
self.submodules = true;
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
nix2flatpak.url = "github:neobrain/nix2flatpak";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
flake-parts,
|
||||
nixpkgs,
|
||||
self,
|
||||
...
|
||||
}@inputs:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
"x86_64-darwin"
|
||||
];
|
||||
|
||||
perSystem =
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
_module.args.pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config = {
|
||||
android_sdk.accept_license = true;
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
# packages =
|
||||
# let
|
||||
# default = pkgs.callPackage ./linux/nix/pkg {
|
||||
# src = self;
|
||||
# };
|
||||
# in
|
||||
# {
|
||||
# inherit default;
|
||||
|
||||
# flatpak = inputs.nix2flatpak.lib.${system}.mkFlatpak {
|
||||
# appName = "Flight";
|
||||
# developer = "QuadRadical";
|
||||
# appId = "flight.federated.Flight";
|
||||
# package = default;
|
||||
# runtime = "org.gnome.Platform/49";
|
||||
# permissions = {
|
||||
# share = [ "network" ];
|
||||
# sockets = [
|
||||
# "fallback-x11"
|
||||
# "wayland"
|
||||
# ];
|
||||
# devices = [ "dri" ];
|
||||
# };
|
||||
# };
|
||||
|
||||
# gomuks = pkgs.callPackage ./linux/nix/pkg/gomuks.nix {
|
||||
# src = self;
|
||||
# };
|
||||
# };
|
||||
|
||||
devShells.default = pkgs.callPackage ./linux/nix/devshell.nix { };
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue