aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-06-10 15:25:11 +0200
committerKarel Kočí <cynerd@email.cz>2022-06-10 15:25:11 +0200
commit6ce39ae86918f1870603cf9685fd40742efcfc9b (patch)
treee75261f3868c54a57f7d08564ac7da09d2f7277b /nixos
parent93b0545d11bf8c7f065203f7f3eaf1d0e3730dce (diff)
downloadnixos-personal-6ce39ae86918f1870603cf9685fd40742efcfc9b.tar.gz
nixos-personal-6ce39ae86918f1870603cf9685fd40742efcfc9b.tar.bz2
nixos-personal-6ce39ae86918f1870603cf9685fd40742efcfc9b.zip
Some samba-wsdd and oldvpn for binky
Diffstat (limited to 'nixos')
-rw-r--r--nixos/machine/binky.nix3
-rw-r--r--nixos/modules/desktop.nix7
-rw-r--r--nixos/modules/generic.nix5
3 files changed, 13 insertions, 2 deletions
diff --git a/nixos/machine/binky.nix b/nixos/machine/binky.nix
index 849c719..26ffe1d 100644
--- a/nixos/machine/binky.nix
+++ b/nixos/machine/binky.nix
@@ -54,6 +54,9 @@ with lib;
dataDir = "/home/cynerd";
configDir = "/home/cynerd/.config/syncthing";
};
+ services.openvpn.servers.oldpersonal = {
+ config = "config /run/secrets/old.ovpn";
+ };
};
diff --git a/nixos/modules/desktop.nix b/nixos/modules/desktop.nix
index 41efa0b..c67ae01 100644
--- a/nixos/modules/desktop.nix
+++ b/nixos/modules/desktop.nix
@@ -131,6 +131,13 @@ in {
];
};
+ services.samba-wsdd = {
+ enable = true;
+ discovery = true;
+ };
+ networking.firewall.allowedTCPPorts = [ 5357 ];
+ networking.firewall.allowedUDPPorts = [ 3702 ];
+
fonts.fonts = with pkgs; [
arkpandora_ttf
corefonts
diff --git a/nixos/modules/generic.nix b/nixos/modules/generic.nix
index 31f0829..546e04a 100644
--- a/nixos/modules/generic.nix
+++ b/nixos/modules/generic.nix
@@ -31,6 +31,7 @@ with lib;
# Administration tools
coreutils moreutils psmisc progress lshw
dig
+ gnumake
# NCurses tools
htop iotop glances
@@ -67,14 +68,14 @@ with lib;
passwordFile = "/run/secrets/root.pass";
};
cynerd = {
+ group = "cynerd";
+ extraGroups = ["users" "wheel"];
uid = 1000;
subUidRanges = [{ count = 65534; startUid = 10000; }];
subGidRanges = [{ count = 65534; startGid = 10000; }];
- group = "cynerd";
isNormalUser = true;
createHome = true;
shell = pkgs.zsh.out;
- extraGroups = ["users" "wheel"];
passwordFile = "/run/secrets/cynerd.pass";
openssh.authorizedKeys.keyFiles = [
(config.personal-secrets + "/unencrypted/git-private.pub")