From e936403bbb071a50f7425a94fc4c463e2d4aac83 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 16 Sep 2018 16:59:48 +0200 Subject: [PATCH 1/6] [ASUS] /tmp sur tmpfs --- systems/ASUS-G46VW/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/systems/ASUS-G46VW/configuration.nix b/systems/ASUS-G46VW/configuration.nix index 0868f22..867ac17 100644 --- a/systems/ASUS-G46VW/configuration.nix +++ b/systems/ASUS-G46VW/configuration.nix @@ -21,6 +21,7 @@ # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.tmpOnTmpfs = true; boot.plymouth.enable = true; hardware.bumblebee.enable = true; From 5a7d3b2b1ceca947773290d4155bb3546ab3881f Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 16 Sep 2018 17:00:12 +0200 Subject: [PATCH 2/6] [ASUS] Plus de programes --- systems/ASUS-G46VW/configuration.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/systems/ASUS-G46VW/configuration.nix b/systems/ASUS-G46VW/configuration.nix index 867ac17..66afddf 100644 --- a/systems/ASUS-G46VW/configuration.nix +++ b/systems/ASUS-G46VW/configuration.nix @@ -75,10 +75,16 @@ gcc nix-index appimage-run + bat + wireguard + nfsUtils gopass xclip + electrum + electron-cash + firefox chromium torbrowser @@ -101,6 +107,9 @@ gwenview kcalc spectacle + kile + texlive.combined.scheme-full + imagemagick gnome-breeze arc-theme From c7bda3bc1f36c416a28a7ae072797ffc6ce91718 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 16 Sep 2018 17:00:34 +0200 Subject: [PATCH 3/6] [ASUS] Configuration client Wireguard --- systems/ASUS-G46VW/configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/systems/ASUS-G46VW/configuration.nix b/systems/ASUS-G46VW/configuration.nix index 66afddf..f354841 100644 --- a/systems/ASUS-G46VW/configuration.nix +++ b/systems/ASUS-G46VW/configuration.nix @@ -168,6 +168,21 @@ # Or disable the firewall altogether. networking.firewall.enable = false; + networking.wireguard.interfaces = { + wg0 = { + ips = [ "192.168.20.2/24" ]; + allowedIPsAsRoutes = false; + peers = [ + { + allowedIPs = [ "0.0.0.0/0" ]; + endpoint = "nyanlout.re:51820"; + publicKey = "NVLJ30kNP+fK+K3oM1LAcQpvZvz1dvBD8mWNjDf5Z2k="; + } + ]; + privateKeyFile = "/var/lib/wireguard/wg0.privatekey"; + }; + }; + # Enable CUPS to print documents. services.printing.enable = true; From 737d37ed6e4072de7882c32bcdf54dd4da855df5 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 16 Sep 2018 17:00:49 +0200 Subject: [PATCH 4/6] [ASUS] Drivers imprimante HP --- systems/ASUS-G46VW/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/systems/ASUS-G46VW/configuration.nix b/systems/ASUS-G46VW/configuration.nix index f354841..3ad1e91 100644 --- a/systems/ASUS-G46VW/configuration.nix +++ b/systems/ASUS-G46VW/configuration.nix @@ -185,6 +185,7 @@ # Enable CUPS to print documents. services.printing.enable = true; + services.printing.drivers = [ pkgs.hplip ]; # Enable sound. sound.enable = true; From cc99b79dcd6a44d69c89bab678707df77f259332 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 16 Sep 2018 17:01:18 +0200 Subject: [PATCH 5/6] [ASUS] RIP serveur telnet nyancat --- systems/ASUS-G46VW/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/ASUS-G46VW/configuration.nix b/systems/ASUS-G46VW/configuration.nix index 3ad1e91..bec120c 100644 --- a/systems/ASUS-G46VW/configuration.nix +++ b/systems/ASUS-G46VW/configuration.nix @@ -217,7 +217,7 @@ programs.zsh.enableCompletion = true; programs.zsh.syntaxHighlighting.enable = true; programs.zsh.ohMyZsh.enable = true; - programs.zsh.ohMyZsh.plugins = [ "git" "colored-man-pages" "command-not-found" "extract" "nyan" ]; + programs.zsh.ohMyZsh.plugins = [ "git" "colored-man-pages" "command-not-found" "extract" ]; programs.zsh.ohMyZsh.theme = "bureau"; nix.gc.automatic = true; From c3972d0a12c512314e7b6438267faadc940797ce Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 16 Sep 2018 17:01:40 +0200 Subject: [PATCH 6/6] [ASUS] Montage NFS via Wireguard --- systems/ASUS-G46VW/hardware-configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/systems/ASUS-G46VW/hardware-configuration.nix b/systems/ASUS-G46VW/hardware-configuration.nix index dd58e6a..2847d6a 100644 --- a/systems/ASUS-G46VW/hardware-configuration.nix +++ b/systems/ASUS-G46VW/hardware-configuration.nix @@ -22,6 +22,12 @@ fsType = "vfat"; }; + fileSystems."/mnt/medias_loutreos" = { + device = "192.168.20.1:/mnt/medias"; + fsType = "nfs"; + options = ["x-systemd.automount" "noauto"]; + }; + swapDevices = [ { device = "/dev/disk/by-uuid/156cd5e8-715c-48a5-9df4-14565227a6c9"; } ];