Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hydra: ?compare=1427817
- Loading branch information
Showing
56 changed files
with
4,720 additions
and
859 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
27 changes: 27 additions & 0 deletions
27
nixos/modules/services/desktops/gnome3/chrome-gnome-shell.nix
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,27 @@ | ||
# Chrome GNOME Shell native host connector. | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
{ | ||
###### interface | ||
options = { | ||
services.gnome3.chrome-gnome-shell.enable = mkEnableOption '' | ||
Chrome GNOME Shell native host connector, a DBus service | ||
allowing to install GNOME Shell extensions from a web browser. | ||
''; | ||
}; | ||
|
||
|
||
###### implementation | ||
config = mkIf config.services.gnome3.chrome-gnome-shell.enable { | ||
environment.etc = { | ||
"chromium/native-messaging-hosts/org.gnome.chrome_gnome_shell.json".source = "${pkgs.chrome-gnome-shell}/etc/chromium/native-messaging-hosts/org.gnome.chrome_gnome_shell.json"; | ||
"opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json".source = "${pkgs.chrome-gnome-shell}/etc/opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json"; | ||
}; | ||
|
||
environment.systemPackages = [ pkgs.chrome-gnome-shell ]; | ||
|
||
services.dbus.packages = [ pkgs.chrome-gnome-shell ]; | ||
}; | ||
} |
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,31 @@ | ||
# This test runs netdata and checks for data via apps.plugin | ||
|
||
import ./make-test.nix ({ pkgs, ...} : { | ||
name = "netdata"; | ||
meta = with pkgs.stdenv.lib.maintainers; { | ||
maintainers = [ cransom ]; | ||
}; | ||
|
||
nodes = { | ||
netdata = | ||
{ config, pkgs, ... }: | ||
{ | ||
environment.systemPackages = with pkgs; [ curl jq ]; | ||
services.netdata.enable = true; | ||
}; | ||
}; | ||
|
||
testScript = '' | ||
startAll; | ||
$netdata->waitForUnit("netdata.service"); | ||
# check if netdata can read disk ops for root owned processes. | ||
# if > 0, successful. verifies both netdata working and | ||
# apps.plugin has elevated capabilities. | ||
my $cmd = <<'CMD'; | ||
curl -s http://localhost:19999/api/v1/data\?chart=users.pwrites | \ | ||
jq -e '[.data[range(10)][.labels | indices("root")[0]]] | add | . > 0' | ||
CMD | ||
$netdata->waitUntilSucceeds($cmd); | ||
''; | ||
}) |
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
Oops, something went wrong.