From c51f8882847f2c7e59780519f7a6099b22c1e167 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 17 Oct 2024 03:50:08 +0200 Subject: [PATCH] Install UniFi controller per user --- profiles/machines/manuel/DerGeret/config.nix | 1 + profiles/machines/manuel/Generic/config.nix | 2 -- scripts/Windows/Software/ubiquiti-unifi-controller/Main.ps1 | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/profiles/machines/manuel/DerGeret/config.nix b/profiles/machines/manuel/DerGeret/config.nix index ab80c4b3..335eb710 100644 --- a/profiles/machines/manuel/DerGeret/config.nix +++ b/profiles/machines/manuel/DerGeret/config.nix @@ -17,6 +17,7 @@ users.manuel = { microsoftAccount = true; groups = [ "Administrators" ]; + programs.ubiquiti-unifi-controller.enable = true; }; programs = { diff --git a/profiles/machines/manuel/Generic/config.nix b/profiles/machines/manuel/Generic/config.nix index 581f1e8d..f48ed88a 100644 --- a/profiles/machines/manuel/Generic/config.nix +++ b/profiles/machines/manuel/Generic/config.nix @@ -99,8 +99,6 @@ in { }; }; }; - - windows.programs.ubiquiti-unifi-controller.enable = true; }; }; } diff --git a/scripts/Windows/Software/ubiquiti-unifi-controller/Main.ps1 b/scripts/Windows/Software/ubiquiti-unifi-controller/Main.ps1 index 3e6790f9..1a280ae0 100644 --- a/scripts/Windows/Software/ubiquiti-unifi-controller/Main.ps1 +++ b/scripts/Windows/Software/ubiquiti-unifi-controller/Main.ps1 @@ -3,7 +3,7 @@ . "$PSScriptRoot/../../../Common/Scripts/System.ps1"; Start-SoftwareInstaller @args ` - -Installer { + -UserConfigurator { Write-Information "Downgrading AutoHotkey…"; $id = "AutoHotkey.AutoHotkey"; $uninstall = { winget uninstall --accept-source-agreements -e --id "$id" };