-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
51 changed files
with
1,277 additions
and
1,593 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 |
---|---|---|
|
@@ -1412,6 +1412,12 @@ | |
githubId = 916366; | ||
name = "Brandon Elam Barker"; | ||
}; | ||
bbenno = { | ||
email = "[email protected]"; | ||
github = "bbenno"; | ||
githubId = 32938211; | ||
name = "Benno Bielmeier"; | ||
}; | ||
bbigras = { | ||
email = "[email protected]"; | ||
github = "bbigras"; | ||
|
@@ -4248,6 +4254,13 @@ | |
fingerprint = "2F93 661D AC17 EA98 A104 F780 ECC7 55EE 583C 1672"; | ||
}]; | ||
}; | ||
fleaz = { | ||
email = "[email protected]"; | ||
matrix = "@fleaz:rainbownerds.de"; | ||
github = "fleaz"; | ||
githubId = 2489598; | ||
name = "Felix Breidenstein"; | ||
}; | ||
flexagoon = { | ||
email = "[email protected]"; | ||
github = "flexagoon"; | ||
|
@@ -5445,6 +5458,12 @@ | |
githubId = 510202; | ||
name = "Ismaël Bouya"; | ||
}; | ||
imsofi = { | ||
email = "[email protected]"; | ||
github = "imsofi"; | ||
githubId = 20756843; | ||
name = "Sofi"; | ||
}; | ||
imuli = { | ||
email = "[email protected]"; | ||
github = "imuli"; | ||
|
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
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,72 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
cfg = config.services.r53-ddns; | ||
pkg = pkgs.r53-ddns; | ||
in | ||
{ | ||
options = { | ||
services.r53-ddns = { | ||
|
||
enable = mkEnableOption "r53-ddyns"; | ||
|
||
interval = mkOption { | ||
type = types.str; | ||
default = "15min"; | ||
description = "How often to update the entry"; | ||
}; | ||
|
||
zoneID = mkOption { | ||
type = types.str; | ||
description = "The ID of your zone in Route53"; | ||
}; | ||
|
||
domain = mkOption { | ||
type = types.str; | ||
description = "The name of your domain in Route53"; | ||
}; | ||
|
||
hostname = mkOption { | ||
type = types.str; | ||
description = '' | ||
Manually specify the hostname. Otherwise the tool will try to use the name | ||
returned by the OS (Call to gethostname) | ||
''; | ||
}; | ||
|
||
environmentFile = mkOption { | ||
type = types.str; | ||
description = '' | ||
File containing the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY | ||
in the format of an EnvironmentFile as described by systemd.exec(5) | ||
''; | ||
}; | ||
|
||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
|
||
systemd.timers.r53-ddns = { | ||
description = "r53-ddns timer"; | ||
wantedBy = [ "timers.target" ]; | ||
timerConfig = { | ||
OnBootSec = cfg.interval; | ||
OnUnitActiveSec = cfg.interval; | ||
}; | ||
}; | ||
|
||
systemd.services.r53-ddns = { | ||
description = "r53-ddns service"; | ||
serviceConfig = { | ||
ExecStart = "${pkg}/bin/r53-ddns -zone-id ${cfg.zoneID} -domain ${cfg.domain}" | ||
+ lib.optionalString (cfg.hostname != null) " -hostname ${cfg.hostname}"; | ||
EnvironmentFile = "${cfg.environmentFile}"; | ||
DynamicUser = 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,36 @@ | ||
{ mkDerivation, lib, fetchFromGitHub, qmake, libsForQt5 }: | ||
|
||
mkDerivation rec { | ||
pname = "notepad-next"; | ||
version = "0.5.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "dail8859"; | ||
repo = "NotepadNext"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-J7Ngt6YtAAZsza2lN0d1lX3T8gNJHp60sCwwaLMGBHQ="; | ||
# External dependencies - https://github.com/dail8859/NotepadNext/issues/135 | ||
fetchSubmodules = true; | ||
}; | ||
|
||
nativeBuildInputs = [ qmake libsForQt5.qt5.qttools ]; | ||
qmakeFlags = [ "src/NotepadNext.pro" ]; | ||
|
||
# References | ||
# https://github.com/dail8859/NotepadNext/blob/master/doc/Building.md | ||
# https://github.com/dail8859/NotepadNext/pull/124 | ||
postPatch = '' | ||
substituteInPlace ./src/NotepadNext/NotepadNext.pro --replace /usr $out | ||
''; | ||
|
||
# Upstream suggestion: https://github.com/dail8859/NotepadNext/issues/135 | ||
CXXFLAGS = "-std=gnu++1z"; | ||
|
||
meta = with lib; { | ||
homepage = "https://github.com/dail8859/NotepadNext"; | ||
description = "Notepad++-like editor for the Linux desktop"; | ||
license = licenses.gpl3Plus; | ||
platforms = platforms.linux; | ||
maintainers = [ maintainers.sebtm ]; | ||
}; | ||
} |
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.