mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
run nix fmt
This commit is contained in:
parent
eab8e4b1d8
commit
d5cbe31c02
61 changed files with 1299 additions and 830 deletions
|
@ -1,16 +1,24 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let cfg = config.jopejoe1.zerotierone;
|
||||
in {
|
||||
let
|
||||
cfg = config.jopejoe1.zerotierone;
|
||||
in
|
||||
{
|
||||
options.jopejoe1.zerotierone = {
|
||||
enable = lib.mkEnableOption "Enable zerotierone";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.zerotierone.enable = true;
|
||||
services.zerotierone.joinNetworks = [ "9e1948db638e9f93" ] ++ lib.optional (config.networking.hostName == "kuraokami") "7c31a21e86f9a75c";
|
||||
services.zerotierone.joinNetworks = [
|
||||
"9e1948db638e9f93"
|
||||
] ++ lib.optional (config.networking.hostName == "kuraokami") "7c31a21e86f9a75c";
|
||||
services.zerotierone.port = 9993;
|
||||
environment.systemPackages = with pkgs; lib.optional config.jopejoe1.gui.enable moonlight-qt;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue