summaryrefslogtreecommitdiffstats
path: root/usecases
diff options
context:
space:
mode:
Diffstat (limited to 'usecases')
-rw-r--r--usecases/desktop/graphical/mpv.nix3
-rw-r--r--usecases/desktop/graphical/sway.nix6
-rw-r--r--usecases/desktop/pipewire.nix7
-rw-r--r--usecases/server/hydra-server.nix5
-rw-r--r--usecases/server/jellyfin.nix1
-rw-r--r--usecases/server/monitoring-server.nix4
-rw-r--r--usecases/server/radicale.nix9
-rw-r--r--usecases/server/taskserver.nix3
8 files changed, 10 insertions, 28 deletions
diff --git a/usecases/desktop/graphical/mpv.nix b/usecases/desktop/graphical/mpv.nix
index 381b893..219c86c 100644
--- a/usecases/desktop/graphical/mpv.nix
+++ b/usecases/desktop/graphical/mpv.nix
@@ -9,8 +9,7 @@ inputs:
9 hwdec = "auto"; 9 hwdec = "auto";
10 profile = "gpu-hq"; 10 profile = "gpu-hq";
11 }; 11 };
12 # TODO: for 21.05 12 defaultProfiles = [ "gpu-hq" ];
13 #defaultProfiles = [ "gpu-hq" ];
14 scripts = with pkgs.mpvScripts; [ mpris sponsorblock ]; 13 scripts = with pkgs.mpvScripts; [ mpris sponsorblock ];
15 }; 14 };
16} 15}
diff --git a/usecases/desktop/graphical/sway.nix b/usecases/desktop/graphical/sway.nix
index ab04de3..ab5d997 100644
--- a/usecases/desktop/graphical/sway.nix
+++ b/usecases/desktop/graphical/sway.nix
@@ -171,8 +171,6 @@ in
171 }; 171 };
172 }; 172 };
173 173
174 # TODO: 21.05
175 /*
176 services.wlsunset = { 174 services.wlsunset = {
177 enable = true; 175 enable = true;
178 latitude = "48.864716"; 176 latitude = "48.864716";
@@ -184,7 +182,6 @@ in
184 }; 182 };
185 systemdTarget = "sway-session.target"; 183 systemdTarget = "sway-session.target";
186 }; 184 };
187 */
188 185
189 # TODO: upstream a PR to beautify this 186 # TODO: upstream a PR to beautify this
190 xdg.configFile."swaylock/config".text = with globalConfig.theme.colors; '' 187 xdg.configFile."swaylock/config".text = with globalConfig.theme.colors; ''
@@ -254,8 +251,7 @@ in
254 251
255 environment.systemPackages = with pkgs; [ qt5.qtwayland ]; 252 environment.systemPackages = with pkgs; [ qt5.qtwayland ];
256 253
257 # TODO: in 21.05 254 programs.xwayland.enable = true;
258 #programs.xwayland.enable = true;
259 security.pam.services.swaylock = { }; 255 security.pam.services.swaylock = { };
260 256
261 xdg.portal.extraPortals = with pkgs; [ 257 xdg.portal.extraPortals = with pkgs; [
diff --git a/usecases/desktop/pipewire.nix b/usecases/desktop/pipewire.nix
index e742ba9..cd327ee 100644
--- a/usecases/desktop/pipewire.nix
+++ b/usecases/desktop/pipewire.nix
@@ -3,13 +3,6 @@ inputs:
3{ pkgs, ... }: 3{ pkgs, ... }:
4 4
5{ 5{
6 imports = [
7 (inputs.nixpkgs-unstable.outPath + "/nixos/modules/services/desktops/pipewire/pipewire.nix")
8 (inputs.nixpkgs-unstable.outPath + "/nixos/modules/services/desktops/pipewire/pipewire-media-session.nix")
9 ];
10
11 disabledModules = [ "services/desktops/pipewire.nix" ];
12
13 services.pipewire = { 6 services.pipewire = {
14 enable = true; 7 enable = true;
15 package = pkgs.unstable.pipewire; 8 package = pkgs.unstable.pipewire;
diff --git a/usecases/server/hydra-server.nix b/usecases/server/hydra-server.nix
index 3a1d62e..db09a6e 100644
--- a/usecases/server/hydra-server.nix
+++ b/usecases/server/hydra-server.nix
@@ -15,9 +15,8 @@ inputs:
15 config = { 15 config = {
16 services.hydra = { 16 services.hydra = {
17 enable = true; 17 enable = true;
18 # TODO: for NixOS 21.05 18 hydraURL = "https://hydra.${config.networking.fqdn}";
19 #hydraURL = "https://hydra.${config.networking.fqdn}"; 19 notificationSender = "hydra@${config.networking.fqdn}";
20 #notificationSender = "hydra@${config.networking.fqdn}";
21 buildMachinesFiles = [ ]; 20 buildMachinesFiles = [ ];
22 # Don't build *everything* from source 21 # Don't build *everything* from source
23 useSubstitutes = true; 22 useSubstitutes = true;
diff --git a/usecases/server/jellyfin.nix b/usecases/server/jellyfin.nix
index 0e0a0e4..6f62c34 100644
--- a/usecases/server/jellyfin.nix
+++ b/usecases/server/jellyfin.nix
@@ -3,7 +3,6 @@ inputs:
3{ config, lib, pkgs, ... }: 3{ config, lib, pkgs, ... }:
4 4
5{ 5{
6 # TODO: for NixOS 21.05
7 imports = [ 6 imports = [
8 (inputs.nixpkgs-unstable.outPath + "/nixos/modules/services/misc/jellyfin.nix") 7 (inputs.nixpkgs-unstable.outPath + "/nixos/modules/services/misc/jellyfin.nix")
9 ]; 8 ];
diff --git a/usecases/server/monitoring-server.nix b/usecases/server/monitoring-server.nix
index 823f4f9..c39b145 100644
--- a/usecases/server/monitoring-server.nix
+++ b/usecases/server/monitoring-server.nix
@@ -12,9 +12,7 @@ inputs:
12 12
13 listenAddress = "127.0.0.1"; 13 listenAddress = "127.0.0.1";
14 14
15 # TODO: for NixOS 21.05 15 retentionTime = "15w";
16 extraFlags = [ "--storage.tsdb.retention=15w" ];
17 #retentionTime = "15w";
18 16
19 scrapeConfigs = [ 17 scrapeConfigs = [
20 { 18 {
diff --git a/usecases/server/radicale.nix b/usecases/server/radicale.nix
index a998643..b20bff8 100644
--- a/usecases/server/radicale.nix
+++ b/usecases/server/radicale.nix
@@ -3,13 +3,12 @@ inputs:
3{ config, ... }: 3{ config, ... }:
4 4
5{ 5{
6 # TODO: use RFC42 settings for NixOS 21.05
7 services.radicale = { 6 services.radicale = {
8 enable = true; 7 enable = true;
9 config = '' 8 settings = {
10 [server] 9 # Bind address on VPN interface only
11 hosts = ${config.topology.mainVpn.currentNodeIP}:5232 10 server.hosts = "[${config.topology.mainVpn.currentNodeIP}]:5232";
12 ''; 11 };
13 }; 12 };
14 13
15 networking.firewall.interfaces.${config.topology.mainVpn.interfaceName}.allowedTCPPorts = [ 14 networking.firewall.interfaces.${config.topology.mainVpn.interfaceName}.allowedTCPPorts = [
diff --git a/usecases/server/taskserver.nix b/usecases/server/taskserver.nix
index e459e5c..614828c 100644
--- a/usecases/server/taskserver.nix
+++ b/usecases/server/taskserver.nix
@@ -5,8 +5,7 @@ inputs:
5{ 5{
6 services.taskserver = { 6 services.taskserver = {
7 enable = true; 7 enable = true;
8 # TODO: for NixOS 21.05 8 fqdn = "tasks.${config.networking.fqdn}";
9 #fqdn = "tasks.${config.networking.fqdn}";
10 listenHost = config.topology.mainVpn.currentNodeIP; 9 listenHost = config.topology.mainVpn.currentNodeIP;
11 10
12 organisations.default.users = [ "minijackson" ]; 11 organisations.default.users = [ "minijackson" ];