-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vula: re-init at unstable-2024-05-17
Co-authored-by: Adrien Faure <adrien.faure@protonmail.com> Co-authored-by: Ali Jamadi <jamadi1377@gmail.com> Co-authored-by: GetPsyched <priyanshu@getpsyched.dev> Co-authored-by: Robert James Hernandez <rob@sarcasticadmin.com> Co-authored-by: Shahar "Dawn" Or <mightyiampresence@gmail.com> Co-authored-by: Yifei Sun <ysun@hey.com> Co-authored-by: yakampe <yanis.kampe.cv@gmail.com>
- Loading branch information
1 parent
fbb024a
commit d53e3a1
Showing
8 changed files
with
393 additions
and
109 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
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,60 @@ | ||
{ | ||
userPrefix, | ||
operatorsGroup, | ||
}: '' | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" | ||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> | ||
<busconfig> | ||
<type>system</type> | ||
<policy user="${userPrefix}-organize"> | ||
<allow own="local.vula.organize"/> | ||
<allow | ||
send_destination="local.vula.discover" | ||
send_interface="local.vula.discover1.Listen" | ||
send_type="method_call" | ||
/> | ||
<allow | ||
send_destination="local.vula.publish" | ||
send_interface="local.vula.publish1.Listen" | ||
send_type="method_call" | ||
/> | ||
</policy> | ||
<policy user="${userPrefix}-publish"> | ||
<allow own="local.vula.publish"/> | ||
</policy> | ||
<policy user="${userPrefix}-discover"> | ||
<allow own="local.vula.discover"/> | ||
<allow | ||
send_destination="local.vula.organize" | ||
send_interface="local.vula.organize1.ProcessDescriptor" | ||
send_type="method_call" | ||
/> | ||
</policy> | ||
<policy group="${operatorsGroup}"> | ||
<allow send_destination="local.vula.organize" /> | ||
</policy> | ||
<policy context="default"> | ||
<allow | ||
send_destination="local.vula.organize" | ||
send_interface="org.freedesktop.DBus.Introspectable" | ||
send_type="method_call" | ||
/> | ||
<allow | ||
send_destination="local.vula.publish" | ||
send_interface="org.freedesktop.DBus.Introspectable" | ||
send_type="method_call" | ||
/> | ||
<allow | ||
send_destination="local.vula.discover" | ||
send_interface="org.freedesktop.DBus.Introspectable" | ||
send_type="method_call" | ||
/> | ||
</policy> | ||
</busconfig> | ||
'' |
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,11 +1,13 @@ | ||
{ | ||
pkgs, | ||
lib, | ||
sources, | ||
} @ args: { | ||
{pkgs, ...} @ args: { | ||
packages = {inherit (pkgs) vula;}; | ||
nixos = { | ||
modules.services.vula = ./service.nix; | ||
tests.vula = import ./test.nix args; | ||
nixos.modules.services.vula = ./service.nix; | ||
nixos.tests.test = import ./test.nix args; | ||
nixos.examples.simple = { | ||
path = ./example-simple.nix; | ||
description = '' | ||
Simple configuration for Vula. Vula nodes will automatically discover each other on networks that support [multicast DNS](https://en.wikipedia.org/wiki/Multicast_DNS) (mDNS). | ||
Add users to the group defined in `config.services.vula.adminGroup` to grant them permissions to manage Vula through the `vula` command. | ||
''; | ||
}; | ||
} |
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,4 @@ | ||
{ | ||
services.vula.enable = true; | ||
services.vula.openFirewall = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# not exposed because vula uses specific non-release rev and some build flags | ||
{ | ||
stdenv, | ||
fetchFromGitHub, | ||
lib, | ||
}: let | ||
inherit (lib) licenses maintainers; | ||
in | ||
stdenv.mkDerivation { | ||
pname = "nss-altfiles"; | ||
version = "unstable-2020-09-25"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "flatcar"; | ||
repo = "nss-altfiles"; | ||
rev = "9078c543ba7d2bc5011737675b3dddb882673ce7"; | ||
sha256 = "sha256-mkZtuUsahHcwcmXvdH2thhDP7ctT5/wDpd0YUSSfd5w="; | ||
}; | ||
|
||
configureFlags = [ | ||
"--with-types=hosts" | ||
"--with-module-name='vula'" | ||
"--datadir=/var/lib/vula-organize/" | ||
]; | ||
|
||
meta = { | ||
description = "NSS module for relocating default file locations, tailored for Flatcar Container Linux"; | ||
homepage = "https://github.com/flatcar/nss-altfiles"; | ||
license = licenses.lgpl21Only; | ||
maintainers = with maintainers; [mightyiam]; | ||
}; | ||
} |
Oops, something went wrong.