forked from Anifyuli/my-nixos
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
86 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ self, super, ... }: | ||
self.stdenv.mkDerivation { | ||
name = "waydroid-script"; | ||
|
||
buildInputs = [ | ||
(self.python3.withPackages(ps: with ps; [ tqdm requests inquirerpy ])) | ||
]; | ||
|
||
src = self.fetchFromGitHub { | ||
owner = "casualsnek"; | ||
repo = "waydroid_script"; | ||
rev = "1a2d3ad643206ad5f040e0155bb7ab86c0430365"; | ||
hash = "sha256-OiZO62cvsFyCUPGpWjhxVm8fZlulhccKylOCX/nEyJU="; | ||
}; | ||
|
||
postPatch = '' | ||
patchShebangs main.py | ||
''; | ||
|
||
installPhase = '' | ||
mkdir -p $out/libexec | ||
cp -r . $out/libexec/waydroid_script | ||
mkdir -p $out/bin | ||
ln -s $out/libexec/waydroid_script/main.py $out/bin/waydroid-script | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
{ pkgs, ... }: let | ||
inherit (pkgs) | ||
fetchurl | ||
; | ||
# { pkgs, ... }: | ||
let | ||
# inherit (pkgs) | ||
# fetchurl | ||
# ; | ||
in { | ||
enable = true; | ||
packages = { | ||
zen-browser = rec { | ||
version = "1.0.0-a.28"; | ||
src = fetchurl { | ||
url = "https://github.com/zen-browser/desktop/releases/download/${version}/zen-specific.AppImage"; | ||
hash = "sha256-S49M3QVpjQ36+f4xeC13XXn11IlzHmTvfIZkTS/YOF4="; | ||
}; | ||
}; | ||
# zen-browser = rec { | ||
# version = "1.0.0-a.28"; | ||
# src = fetchurl { | ||
# url = "https://github.com/zen-browser/desktop/releases/download/${version}/zen-specific.AppImage"; | ||
# hash = "sha256-S49M3QVpjQ36+f4xeC13XXn11IlzHmTvfIZkTS/YOF4="; | ||
# }; | ||
# }; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,6 @@ | |
guest.enable = true; | ||
}; | ||
|
||
# waydroid.enable = true; | ||
waydroid.enable = true; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ config, ... }: let | ||
inherit (config.services) certs hydra; | ||
in { | ||
type = "https"; | ||
enable = hydra.enable; | ||
extraConfig = '' | ||
tls ${certs.hydra.cert} ${certs.hydra.key} | ||
log { | ||
format console | ||
output stdout | ||
} | ||
reverse_proxy localhost:${toString hydra.port} | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
enable = false; | ||
port = 9898; | ||
hydraURL = "https://hydra.local"; # externally visible URL | ||
notificationSender = "[email protected]"; # e-mail of Hydra service | ||
# a standalone Hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines | ||
buildMachinesFiles = []; | ||
# you will probably also want, otherwise *everything* will be built from scratch | ||
useSubstitutes = true; | ||
} |