Reformat using nixpkgs-fmt
This commit is contained in:
parent
368ed0797d
commit
5a734099bf
36 changed files with 209 additions and 168 deletions
|
@ -12,7 +12,7 @@ rec {
|
||||||
|
|
||||||
hosts = import ./hosts;
|
hosts = import ./hosts;
|
||||||
|
|
||||||
tubslatex = callPackage ./pkgs/tubslatex {};
|
tubslatex = callPackage ./pkgs/tubslatex { };
|
||||||
keys = callPackage ./pkgs/keys {};
|
keys = callPackage ./pkgs/keys { };
|
||||||
homePage = callPackage ./pkgs/homePage {};
|
homePage = callPackage ./pkgs/homePage { };
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,8 @@ let
|
||||||
"media.local"
|
"media.local"
|
||||||
];
|
];
|
||||||
backups = "/mnt/storage/backup";
|
backups = "/mnt/storage/backup";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/profiles/base
|
../../modules/profiles/base
|
||||||
];
|
];
|
||||||
|
@ -107,13 +108,22 @@ in {
|
||||||
allowPing = true;
|
allowPing = true;
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
22 # SSH
|
22 # SSH
|
||||||
80 443 # HTTP(S)
|
80
|
||||||
111 2049 # NFS
|
443 # HTTP(S)
|
||||||
137 138 139 445 # SMB
|
111
|
||||||
|
2049 # NFS
|
||||||
|
137
|
||||||
|
138
|
||||||
|
139
|
||||||
|
445 # SMB
|
||||||
];
|
];
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
137 138 139 445 # SMB
|
137
|
||||||
111 2049 # NFS
|
138
|
||||||
|
139
|
||||||
|
445 # SMB
|
||||||
|
111
|
||||||
|
2049 # NFS
|
||||||
51234 # Wireguard
|
51234 # Wireguard
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
let
|
let
|
||||||
hostName = "surgat";
|
hostName = "surgat";
|
||||||
this = import ../.. { inherit pkgs; };
|
this = import ../.. { inherit pkgs; };
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
imports = [ this.profiles.base ];
|
imports = [ this.profiles.base ];
|
||||||
|
|
||||||
networking.hostName = hostName;
|
networking.hostName = hostName;
|
||||||
|
@ -43,7 +44,8 @@ in {
|
||||||
allowPing = true;
|
allowPing = true;
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
22 # SSH
|
22 # SSH
|
||||||
80 443 # HTTPS
|
80
|
||||||
|
443 # HTTPS
|
||||||
];
|
];
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
51234 # Wireguard
|
51234 # Wireguard
|
||||||
|
@ -60,10 +62,10 @@ in {
|
||||||
boot.loader.grub.version = 2;
|
boot.loader.grub.version = 2;
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
|
||||||
networking.interfaces."ens3".ipv6.addresses = [ {
|
networking.interfaces."ens3".ipv6.addresses = [{
|
||||||
address = "2a01:4f8:c17:1d70::";
|
address = "2a01:4f8:c17:1d70::";
|
||||||
prefixLength = 64;
|
prefixLength = 64;
|
||||||
} ];
|
}];
|
||||||
|
|
||||||
networking.defaultGateway6 = {
|
networking.defaultGateway6 = {
|
||||||
address = "fe80::1";
|
address = "fe80::1";
|
||||||
|
|
|
@ -3,13 +3,14 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.admin;
|
cfg = config.dadada.admin;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.admin = {
|
options.dadada.admin = {
|
||||||
enable = mkEnableOption "Enable admin access";
|
enable = mkEnableOption "Enable admin access";
|
||||||
|
|
||||||
users = mkOption {
|
users = mkOption {
|
||||||
type = with types; attrsOf (listOf path);
|
type = with types; attrsOf (listOf path);
|
||||||
default = [];
|
default = [ ];
|
||||||
description = ''
|
description = ''
|
||||||
List of admin users with root access to all the machine.
|
List of admin users with root access to all the machine.
|
||||||
'';
|
'';
|
||||||
|
@ -32,12 +33,14 @@ in {
|
||||||
|
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
|
|
||||||
users.users = mapAttrs (user: keys: (
|
users.users = mapAttrs
|
||||||
|
(user: keys: (
|
||||||
{
|
{
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" ];
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
openssh.authorizedKeys.keyFiles = keys;
|
openssh.authorizedKeys.keyFiles = keys;
|
||||||
})) cfg.users;
|
}))
|
||||||
|
cfg.users;
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||||
|
|
||||||
|
@ -49,9 +52,8 @@ in {
|
||||||
services.tor.hiddenServices = {
|
services.tor.hiddenServices = {
|
||||||
"rat" = mkIf cfg.rat.enable {
|
"rat" = mkIf cfg.rat.enable {
|
||||||
name = "rat";
|
name = "rat";
|
||||||
map = [ { port = 22; } ];
|
map = [{ port = 22; }];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, lib, ...}:
|
{ config, pkgs, lib, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
backupExcludes = [
|
backupExcludes = [
|
||||||
|
@ -20,7 +20,8 @@ let
|
||||||
"/var/tmp"
|
"/var/tmp"
|
||||||
];
|
];
|
||||||
cfg = config.dadada.backupClient;
|
cfg = config.dadada.backupClient;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.backupClient = {
|
options.dadada.backupClient = {
|
||||||
enable = mkEnableOption "Enable backup client";
|
enable = mkEnableOption "Enable backup client";
|
||||||
gs = mkEnableOption "Enable backup to GS location";
|
gs = mkEnableOption "Enable backup to GS location";
|
||||||
|
@ -63,7 +64,7 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.borgbackup.jobs.bs = mkIf cfg.bs{
|
services.borgbackup.jobs.bs = mkIf cfg.bs {
|
||||||
paths = "/";
|
paths = "/";
|
||||||
exclude = backupExcludes;
|
exclude = backupExcludes;
|
||||||
repo = "borg@media.dadada.li:/mnt/storage/backup/${config.networking.hostName}";
|
repo = "borg@media.dadada.li:/mnt/storage/backup/${config.networking.hostName}";
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.dadada.element;
|
cfg = config.dadada.element;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.element = {
|
options.dadada.element = {
|
||||||
enable = lib.mkEnableOption "Enable element webapp";
|
enable = lib.mkEnableOption "Enable element webapp";
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,8 @@ with lib;
|
||||||
let
|
let
|
||||||
luks = config.dadada.luks;
|
luks = config.dadada.luks;
|
||||||
fido2 = config.dadada.fido2;
|
fido2 = config.dadada.fido2;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
dadada.luks = {
|
dadada.luks = {
|
||||||
|
|
|
@ -6,7 +6,8 @@ let
|
||||||
ipv6 = "fd42:dead:beef::/48";
|
ipv6 = "fd42:dead:beef::/48";
|
||||||
ipv4 = "192.168.42.0/24";
|
ipv4 = "192.168.42.0/24";
|
||||||
allow = "192.168.42.0 fd42:dead:beef::";
|
allow = "192.168.42.0 fd42:dead:beef::";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.fileShare = {
|
options.dadada.fileShare = {
|
||||||
enable = mkEnableOption "Enable file share server";
|
enable = mkEnableOption "Enable file share server";
|
||||||
};
|
};
|
||||||
|
@ -47,4 +48,3 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.dadada.gitea;
|
cfg = config.dadada.gitea;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.gitea = {
|
options.dadada.gitea = {
|
||||||
enable = lib.mkEnableOption "Enable gitea";
|
enable = lib.mkEnableOption "Enable gitea";
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.fish;
|
cfg = config.dadada.home.fish;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.fish = {
|
options.dadada.home.fish = {
|
||||||
enable = mkEnableOption "Enable fish config";
|
enable = mkEnableOption "Enable fish config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.gpg;
|
cfg = config.dadada.home.gpg;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.gpg = {
|
options.dadada.home.gpg = {
|
||||||
enable = mkEnableOption "Enable GnuPG config";
|
enable = mkEnableOption "Enable GnuPG config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.keyring;
|
cfg = config.dadada.home.keyring;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.keyring = {
|
options.dadada.home.keyring = {
|
||||||
enable = mkEnableOption "Enable keyring config";
|
enable = mkEnableOption "Enable keyring config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.kitty;
|
cfg = config.dadada.home.kitty;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.kitty = {
|
options.dadada.home.kitty = {
|
||||||
enable = mkEnableOption "Enable kitty config";
|
enable = mkEnableOption "Enable kitty config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{ config, lib, pkgs, colors, ...}:
|
{ config, lib, pkgs, colors, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.mako;
|
cfg = config.dadada.home.mako;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.mako = {
|
options.dadada.home.mako = {
|
||||||
enable = mkEnableOption "Enable mako config";
|
enable = mkEnableOption "Enable mako config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,13 +2,14 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.session;
|
cfg = config.dadada.home.session;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.session = {
|
options.dadada.home.session = {
|
||||||
enable = mkEnableOption "Enable session variable management";
|
enable = mkEnableOption "Enable session variable management";
|
||||||
sessionVars = mkOption {
|
sessionVars = mkOption {
|
||||||
description = "Session variables";
|
description = "Session variables";
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
default = {};
|
default = { };
|
||||||
example = ''
|
example = ''
|
||||||
EDITOR = "vim";
|
EDITOR = "vim";
|
||||||
PAGER = "less";
|
PAGER = "less";
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.ssh;
|
cfg = config.dadada.home.ssh;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.ssh = {
|
options.dadada.home.ssh = {
|
||||||
enable = mkEnableOption "Enable SSH config";
|
enable = mkEnableOption "Enable SSH config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{ config, pkgs, lib, colors, ...}:
|
{ config, pkgs, lib, colors, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.sway;
|
cfg = config.dadada.home.sway;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.sway = {
|
options.dadada.home.sway = {
|
||||||
enable = mkEnableOption "Enable Sway config";
|
enable = mkEnableOption "Enable Sway config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.syncthing;
|
cfg = config.dadada.home.syncthing;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.syncthing = {
|
options.dadada.home.syncthing = {
|
||||||
enable = mkEnableOption "Enable Syncthing config";
|
enable = mkEnableOption "Enable Syncthing config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
{
|
{ config
|
||||||
config,
|
, lib
|
||||||
lib,
|
, pkgs
|
||||||
pkgs,
|
, colors ? ../../lib/colors.nix
|
||||||
colors ? ../../lib/colors.nix,
|
, ...
|
||||||
...
|
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.termite;
|
cfg = config.dadada.home.termite;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.termite = {
|
options.dadada.home.termite = {
|
||||||
enable = mkEnableOption "Enable termite config";
|
enable = mkEnableOption "Enable termite config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.tmux;
|
cfg = config.dadada.home.tmux;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.tmux = {
|
options.dadada.home.tmux = {
|
||||||
enable = mkEnableOption "Enable tmux config";
|
enable = mkEnableOption "Enable tmux config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.vim;
|
cfg = config.dadada.home.vim;
|
||||||
vimPlugins = pkgs.callPackage ../../../pkgs/vimPlugins {};
|
vimPlugins = pkgs.callPackage ../../../pkgs/vimPlugins { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.dadada.home.vim = {
|
options.dadada.home.vim = {
|
||||||
|
@ -32,6 +32,9 @@ in
|
||||||
#pkgs.vimPlugins.clang_complete
|
#pkgs.vimPlugins.clang_complete
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
home.packages = [ pkgs.languagetool ];
|
home.packages = with pkgs; [
|
||||||
|
languagetool
|
||||||
|
nixpkgs-fmt
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,8 @@ let
|
||||||
"application/pdf" = "org.pwmt.zathura.desktop";
|
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||||
};
|
};
|
||||||
cfg = config.dadada.home.xdg;
|
cfg = config.dadada.home.xdg;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.xdg = {
|
options.dadada.home.xdg = {
|
||||||
enable = mkEnableOption "Enable XDG config";
|
enable = mkEnableOption "Enable XDG config";
|
||||||
};
|
};
|
||||||
|
@ -32,9 +33,9 @@ in {
|
||||||
defaultApplications = apps;
|
defaultApplications = apps;
|
||||||
};
|
};
|
||||||
userDirs = {
|
userDirs = {
|
||||||
download ="\$HOME/tmp";
|
download = "\$HOME/tmp";
|
||||||
music = "\$HOME/lib/music";
|
music = "\$HOME/lib/music";
|
||||||
videos ="\$HOME/lib/videos";
|
videos = "\$HOME/lib/videos";
|
||||||
pictures = "\$HOME/lib/pictures";
|
pictures = "\$HOME/lib/pictures";
|
||||||
documents = "\$HOME/lib";
|
documents = "\$HOME/lib";
|
||||||
desktop = "$HOME/tmp";
|
desktop = "$HOME/tmp";
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.home.zsh;
|
cfg = config.dadada.home.zsh;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.home.zsh = {
|
options.dadada.home.zsh = {
|
||||||
enable = mkEnableOption "Enable ZSH config";
|
enable = mkEnableOption "Enable ZSH config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.dadada.homePage;
|
cfg = config.dadada.homePage;
|
||||||
in with lib; {
|
in
|
||||||
|
with lib; {
|
||||||
options.dadada.homePage = {
|
options.dadada.homePage = {
|
||||||
enable = mkEnableOption "Enable home page";
|
enable = mkEnableOption "Enable home page";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
{ config, pkgs, lib, ...}:
|
{ config, pkgs, lib, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.networking;
|
cfg = config.dadada.networking;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.networking = {
|
options.dadada.networking = {
|
||||||
useLocalResolver = mkEnableOption "Enable local caching name server";
|
useLocalResolver = mkEnableOption "Enable local caching name server";
|
||||||
wanInterfaces = mkOption {
|
wanInterfaces = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
description = "WAN network interfaces";
|
description = "WAN network interfaces";
|
||||||
default = [];
|
default = [ ];
|
||||||
};
|
};
|
||||||
vpnExtension = mkOption {
|
vpnExtension = mkOption {
|
||||||
type = with types; nullOr str;
|
type = with types; nullOr str;
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.share;
|
cfg = config.dadada.share;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.share = {
|
options.dadada.share = {
|
||||||
enable = mkEnableOption "Enable file share";
|
enable = mkEnableOption "Enable file share";
|
||||||
};
|
};
|
||||||
|
@ -27,4 +28,3 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.steam;
|
cfg = config.dadada.steam;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.steam = {
|
options.dadada.steam = {
|
||||||
enable = mkEnableOption "Enable Steam config";
|
enable = mkEnableOption "Enable Steam config";
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.autoUpgrade;
|
cfg = config.dadada.autoUpgrade;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
|
|
||||||
options.dadada.autoUpgrade = {
|
options.dadada.autoUpgrade = {
|
||||||
enable = mkEnableOption "Enable automatic upgrades";
|
enable = mkEnableOption "Enable automatic upgrades";
|
||||||
|
|
|
@ -21,13 +21,14 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.vpnServer = {
|
options.dadada.vpnServer = {
|
||||||
enable = mkEnableOption "Enable wireguard gateway";
|
enable = mkEnableOption "Enable wireguard gateway";
|
||||||
peers = mkOption {
|
peers = mkOption {
|
||||||
description = "Set of extensions and public keys of peers";
|
description = "Set of extensions and public keys of peers";
|
||||||
type = with types; attrsOf (submodule wgPeer);
|
type = with types; attrsOf (submodule wgPeer);
|
||||||
default = {};
|
default = { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -37,11 +38,13 @@ in {
|
||||||
privateKeyFile = "/var/lib/wireguard/wg0-key";
|
privateKeyFile = "/var/lib/wireguard/wg0-key";
|
||||||
ips = [ "fd42:dead:beef:1337::0/64" ];
|
ips = [ "fd42:dead:beef:1337::0/64" ];
|
||||||
listenPort = 51234;
|
listenPort = 51234;
|
||||||
peers = map (peer: (
|
peers = map
|
||||||
|
(peer: (
|
||||||
{
|
{
|
||||||
allowedIPs = [ "fd42:dead:beef:1337::${peer.id}/128" ];
|
allowedIPs = [ "fd42:dead:beef:1337::${peer.id}/128" ];
|
||||||
publicKey = peer.key;
|
publicKey = peer.key;
|
||||||
})) (attrValues cfg.peers);
|
}))
|
||||||
|
(attrValues cfg.peers);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.dadada.weechat;
|
cfg = config.dadada.weechat;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.dadada.weechat = {
|
options.dadada.weechat = {
|
||||||
enable = mkEnableOption "Enable weechat relay";
|
enable = mkEnableOption "Enable weechat relay";
|
||||||
};
|
};
|
||||||
|
@ -55,4 +56,3 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
self: super:
|
self: super:
|
||||||
|
|
||||||
let
|
let
|
||||||
isReserved = n: n == "lib" || n == "overlays" || n == "modules";
|
isReserved = n: n == "lib" || n == "overlays" || n == "modules";
|
||||||
nameValuePair = n: v: { name = n; value = v; };
|
nameValuePair = n: v: { name = n; value = v; };
|
||||||
attrs = import ./default.nix { pkgs = super; };
|
attrs = import ./default.nix { pkgs = super; };
|
||||||
in
|
in
|
||||||
builtins.listToAttrs
|
builtins.listToAttrs
|
||||||
(map (n: nameValuePair n attrs.${n})
|
(map (n: nameValuePair n attrs.${n})
|
||||||
(builtins.filter (n: !isReserved n)
|
(builtins.filter (n: !isReserved n)
|
||||||
(builtins.attrNames attrs)))
|
(builtins.attrNames attrs)))
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
self: super:
|
self: super:
|
||||||
{
|
{
|
||||||
# Based on https://gist.github.com/clefru/9ed1186bf0b76d27e0ad20cbd9966b87
|
# Based on https://gist.github.com/clefru/9ed1186bf0b76d27e0ad20cbd9966b87
|
||||||
tubslatex = super.lib.overrideDerivation (super.texlive.combine {
|
tubslatex = super.lib.overrideDerivation
|
||||||
|
(super.texlive.combine {
|
||||||
inherit (super.texlive) scheme-full;
|
inherit (super.texlive) scheme-full;
|
||||||
tubslatex.pkgs = [ (super.callPackage ../pkgs/tubslatex {}) ];
|
tubslatex.pkgs = [ (super.callPackage ../pkgs/tubslatex { }) ];
|
||||||
}) (oldAttrs: {
|
})
|
||||||
|
(oldAttrs: {
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
# Save the udpmap.cfg because texlive.combine removes it.
|
# Save the udpmap.cfg because texlive.combine removes it.
|
||||||
cat $out/share/texmf/web2c/updmap.cfg > $out/share/texmf/web2c/updmap.cfg.1
|
cat $out/share/texmf/web2c/updmap.cfg > $out/share/texmf/web2c/updmap.cfg.1
|
||||||
|
@ -22,4 +24,3 @@ self: super:
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
setlocal expandtab
|
setlocal expandtab
|
||||||
setlocal shiftwidth=2
|
setlocal shiftwidth=2
|
||||||
setlocal softtabstop=2
|
setlocal softtabstop=2
|
||||||
|
|
||||||
|
let b:ale_fixers = [ 'nixpkgs-fmt', 'remove_trailing_lines', 'trim_whitespace']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue