From 5a367139ad660808366a941de1e42a72c1606ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 5 Apr 2024 09:40:38 +0200 Subject: Multiple improvements --- nixos/configurations/binky.nix | 12 +++++++++++- nixos/configurations/default.nix | 6 +++++- nixos/configurations/errol.nix | 4 ++++ nixos/configurations/lipwig.nix | 23 +++++++++++++++++++---- nixos/configurations/ridcully.nix | 10 +++++++++- nixos/configurations/spt-mox.nix | 2 +- nixos/configurations/spt-mox2.nix | 2 +- 7 files changed, 50 insertions(+), 9 deletions(-) (limited to 'nixos/configurations') diff --git a/nixos/configurations/binky.nix b/nixos/configurations/binky.nix index bdfa47e..6dfb6a5 100644 --- a/nixos/configurations/binky.nix +++ b/nixos/configurations/binky.nix @@ -5,6 +5,7 @@ in { deploy = { enable = true; default = false; + ssh.host = "binky.spt"; }; cynerd = { @@ -61,13 +62,22 @@ in { systemd.network = { networks = { "dhcp" = { - matchConfig.Name = "enp2s0f0 enp5s0f3u1u1 wlp3s0"; + matchConfig.Name = "enp2s0f0 enp5s0f3u1u1"; networkConfig = { DHCP = "yes"; IPv6AcceptRA = "yes"; }; linkConfig.RequiredForOnline = "routable"; }; + "dhcp-wlan" = { + matchConfig.Name = "wlp3s0"; + networkConfig = { + DHCP = "yes"; + IPv6AcceptRA = "yes"; + }; + routes = [{routeConfig.Metric = 1088;}]; + linkConfig.RequiredForOnline = "routable"; + }; }; wait-online.enable = false; }; diff --git a/nixos/configurations/default.nix b/nixos/configurations/default.nix index 6bc7ad9..c653c2d 100644 --- a/nixos/configurations/default.nix +++ b/nixos/configurations/default.nix @@ -20,7 +20,11 @@ in nameValuePair name (nixosSystem { modules = [ (./. + ("/" + fname)) - {networking.hostName = name;} + { + networking.hostName = name; + nixpkgs.overlays = [self.overlays.default]; + system.configurationRevision = self.shortRev or self.dirtyShortRev or "unknown"; + } self.nixosModules.default ]; specialArgs = { diff --git a/nixos/configurations/errol.nix b/nixos/configurations/errol.nix index 3f7ad8c..0b9eae1 100644 --- a/nixos/configurations/errol.nix +++ b/nixos/configurations/errol.nix @@ -71,6 +71,10 @@ in { # }; #}; + environment.systemPackages = [ + pkgs.nvtopPackages.amd + ]; + services.syncthing = { enable = true; user = mkDefault "cynerd"; diff --git a/nixos/configurations/lipwig.nix b/nixos/configurations/lipwig.nix index 2e5253d..090e8f5 100644 --- a/nixos/configurations/lipwig.nix +++ b/nixos/configurations/lipwig.nix @@ -25,9 +25,16 @@ boot.loader.systemd-boot.enable = false; - fileSystems."/nas" = { - device = "172.16.128.63:/nas/2682"; - fsType = "nfs"; + fileSystems = { + "/nas" = { + device = "172.16.128.63:/nas/2682"; + fsType = "nfs"; + }; + "/nas/nextcloud-sync" = { + device = "/nas/sync"; + fsType = "fuse.bindfs"; + options = ["map=syncthing/nextcloud:@syncthing/@nextcloud"]; + }; }; networking = { @@ -45,6 +52,15 @@ systemd.network.wait-online.enable = false; systemd.services.networking-setup.wantedBy = ["network-online.target"]; + environment.systemPackages = with pkgs; [ + # fileSystems + bindfs + # Nextcloud + exiftool + ffmpeg-headless + nodejs + ]; + # Web ###################################################################### services.nginx = { enable = true; @@ -219,7 +235,6 @@ }; }; }; - environment.systemPackages = with pkgs; [exiftool ffmpeg-headless nodejs]; # Postgresql ############################################################### services.postgresql = { diff --git a/nixos/configurations/ridcully.nix b/nixos/configurations/ridcully.nix index 3e2b474..66daf1b 100644 --- a/nixos/configurations/ridcully.nix +++ b/nixos/configurations/ridcully.nix @@ -1,4 +1,8 @@ -{lib, ...}: let +{ + lib, + pkgs, + ... +}: let inherit (lib) mkDefault; in { nixpkgs.hostPlatform.system = "x86_64-linux"; @@ -55,6 +59,10 @@ in { #interface = "enp6s0"; #}; + environment.systemPackages = [ + pkgs.nvtopPackages.amd + ]; + services.syncthing = { enable = true; user = mkDefault "cynerd"; diff --git a/nixos/configurations/spt-mox.nix b/nixos/configurations/spt-mox.nix index 7b1ffb8..c5ad7fb 100644 --- a/nixos/configurations/spt-mox.nix +++ b/nixos/configurations/spt-mox.nix @@ -15,7 +15,7 @@ wifiAP.spt = { enable = true; qca988x = { - interface = "wls1"; + interface = "wlp1s0"; bssids = ["04:f0:21:24:24:d2" "08:f0:21:24:24:d2"]; channel = 7; }; diff --git a/nixos/configurations/spt-mox2.nix b/nixos/configurations/spt-mox2.nix index 612e85e..c713477 100644 --- a/nixos/configurations/spt-mox2.nix +++ b/nixos/configurations/spt-mox2.nix @@ -14,7 +14,7 @@ wifiAP.spt = { enable = true; qca988x = { - interface = "wls1"; + interface = "wlp1s0"; bssids = ["04:f0:21:45:d3:47" "08:f0:21:45:d3:47"]; channel = 1; }; -- cgit v1.2.3