mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-01 17:50:51 +02:00
updated tower config
This commit is contained in:
parent
fb38df2ea3
commit
9f79ad05e0
1 changed files with 14 additions and 10 deletions
|
@ -6,7 +6,8 @@
|
|||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
[
|
||||
# Include the results of the hardware scan.
|
||||
./hardware.nix
|
||||
./home-julien.nix
|
||||
../../users/julien.nix
|
||||
|
@ -18,7 +19,7 @@
|
|||
boot.loader.grub.device = "/dev/sda";
|
||||
boot.loader.grub.useOSProber = true;
|
||||
|
||||
networking.nameservers = [ "100.127.245.71" "9.9.9.9" ];
|
||||
networking.nameservers = [ "100.127.245.71" "9.9.9.9" ];
|
||||
environment.etc."resolv.conf" = with lib; with pkgs; {
|
||||
source = writeText "resolv.conf" ''
|
||||
${concatStringsSep "\n" (map (ns: "nameserver ${ns}") config.networking.nameservers)}
|
||||
|
@ -39,16 +40,19 @@ networking.nameservers = [ "100.127.245.71" "9.9.9.9" ];
|
|||
# Set your time zone.
|
||||
time.timeZone = "Europe/Paris";
|
||||
|
||||
luj.buildbot.enable = true;
|
||||
luj.nginx.enable = true;
|
||||
|
||||
environment.systemPackages = [ pkgs.tailscale ];
|
||||
|
||||
# enable the tailscale service
|
||||
services.tailscale.enable = true;
|
||||
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
|
||||
services.openssh.extraConfig = ''
|
||||
services.openssh.extraConfig = ''
|
||||
HostCertificate /etc/ssh/ssh_host_ed25519_key-cert.pub
|
||||
HostKey /etc/ssh/ssh_host_ed25519_key
|
||||
TrustedUserCAKeys /etc/ssh/ssh_user_key.pub
|
||||
|
@ -84,7 +88,7 @@ services.openssh.extraConfig = ''
|
|||
isNormalUser = true;
|
||||
description = "Julien";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [];
|
||||
packages = with pkgs; [ ];
|
||||
};
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
|
@ -104,8 +108,8 @@ services.openssh.extraConfig = ''
|
|||
services.openssh.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 1810 ];
|
||||
networking.firewall.allowedUDPPorts = [ 80 443 1810 ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue