- Commented out portainer.nix in configuration.nix for future use.

- Created portainer.nix for container management configuration.
- Added 120hz.sh and 60hz.sh scripts for display refresh rate switching.
- Enhanced plasma/home.nix with power management settings.
This commit is contained in:
2025-11-27 09:43:27 +01:00
parent a547950e45
commit 616d40d98c
6 changed files with 105 additions and 18 deletions

32
modules/portainer.nix Normal file
View File

@ -0,0 +1,32 @@
{
containers.portainer = {
autoStart = true;
privateNetwork = true;
config = { pkgs, ... }: {
services.docker.enable = true;
systemd.services.portainer = {
description = "Portainer Container Manager";
after = [ "docker.service" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = ''
${pkgs.docker}/bin/docker run \
-d \
--name portainer \
-p 9000:9000 \
-p 9443:9443 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:latest
'';
ExecStop = "${pkgs.docker}/bin/docker stop portainer";
Restart = "unless-stopped";
};
};
networking.firewall.allowedTCPPorts = [ 9000 9443 ];
};
};
}