main
Cyryl Płotnicki 2022-12-12 19:37:35 +00:00
commit 2b6cbc4938
2 changed files with 178 additions and 0 deletions

130
flake.lock Normal file
View File

@ -0,0 +1,130 @@
{
"nodes": {
"androidPkgs": {
"inputs": {
"devshell": "devshell",
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1638562808,
"narHash": "sha256-nnGyBugMQo9WweTgpfPbJu0fHnRtxvsPQ9el2D3wPrY=",
"owner": "tadfisher",
"repo": "android-nixpkgs",
"rev": "a191ab6adb019b09d3bb919bb98dca31d83519d5",
"type": "github"
},
"original": {
"owner": "tadfisher",
"ref": "stable",
"repo": "android-nixpkgs",
"type": "github"
}
},
"devshell": {
"locked": {
"lastModified": 1637575296,
"narHash": "sha256-ZY8YR5u8aglZPe27+AJMnPTG6645WuavB+w0xmhTarw=",
"owner": "numtide",
"repo": "devshell",
"rev": "0e56ef21ba1a717169953122c7415fa6a8cd2618",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "devshell",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1638122382,
"narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "74f7e4319258e287b0f9cb95426c9853b282730b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1637841632,
"narHash": "sha256-QYqiKHdda0EOnLGQCHE+GluD/Lq2EJj4hVTooPM55Ic=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "73369f8d0864854d1acfa7f1e6217f7d6b6e3fa1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgsUnstable": {
"locked": {
"lastModified": 1638376152,
"narHash": "sha256-ucgLpVqhFnClH7YRUHBHnmiOd82RZdFR3XJt36ks5fE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6daa4a5c045d40e6eae60a3b6e427e8700f1c07f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1638371214,
"narHash": "sha256-0kE6KhgH7n0vyuX4aUoGsGIQOqjIx2fJavpCWtn73rc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a640d8394f34714578f3e6335fc767d0755d78f9",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-21.11",
"repo": "nixpkgs",
"type": "github"
}
},
"robotnix": {
"inputs": {
"androidPkgs": "androidPkgs",
"nixpkgs": "nixpkgs_2",
"nixpkgsUnstable": "nixpkgsUnstable"
},
"locked": {
"lastModified": 1669527062,
"narHash": "sha256-V7Tp8+QQz3qMDGT+RMqRjRvKGVSbaOHZX1XB61Qtfxw=",
"owner": "danielfullmer",
"repo": "robotnix",
"rev": "8068193eb689349292dcf25f467753ecfe1d4ecf",
"type": "github"
},
"original": {
"owner": "danielfullmer",
"repo": "robotnix",
"type": "github"
}
},
"root": {
"inputs": {
"robotnix": "robotnix"
}
}
},
"root": "root",
"version": 7
}

48
flake.nix Normal file
View File

@ -0,0 +1,48 @@
{
description = "A basic example robotnix configuration";
inputs.robotnix.url = "github:danielfullmer/robotnix";
outputs = { self, robotnix }: {
# "dailydriver" is an arbitrary user-chosen name for this particular
# configuration. Change it to something meaningful for you, perhaps just
# the device name if you only have one of this kind of device.
robotnixConfigurations."fp3" = robotnix.lib.robotnixSystem
({ config, pkgs, ... }: {
# These two are required options
device = "FP3";
flavor = "lineageos";
# buildDateTime is set by default by the flavor, and is updated when those flavors have new releases.
# If you make new changes to your build that you want to be pushed by the OTA updater, you should set this yourself.
# buildDateTime = 1584398664; # Use `date "+%s"` to get the current time
# signing.enable = true;
# signing.keyStorePath = "/var/secrets/android-keys"; # A _string_ of the path for the key store.
# Build with ccache
# ccache.enable = true;
androidVersion = 11;
apps.fdroid.enable = true;
apps.chromium.enable = false;
microg.enable = true;
webview.chromium.enable = false;
webview.prebuilt.enable = true;
## Custom hosts file
#hosts = pkgs.fetchurl { # 2019-08-14
# url = "https://raw.githubusercontent.com/StevenBlack/hosts/449a0d7f613e6518ede4f3333e94f8071d3f1cd3/hosts";
# sha256 = "1mcn77l2m45qms7ynww2hzx0d6mja03bzj4di0s9j7spycp4540i";
#};
ccache.enable = true;
});
# This provides a convenient output which allows you to build the image by
# simply running "nix build" on this flake.
# Build other outputs with (for example): "nix build .#robotnixConfigurations.dailydriver.ota"
defaultPackage.x86_64-linux = self.robotnixConfigurations."fp3".img;
};
}