Enable first podman container

This commit is contained in:
xeovalyte 2025-04-25 08:31:10 +02:00
parent e07c854ae0
commit 68ec429e96
Signed by: xeovalyte
SSH Key Fingerprint: SHA256:kSQDrQDmKzljJzfGYcd3m9RqHi4h8rSwkZ3sQ9kBURo
6 changed files with 69 additions and 6 deletions

View File

@ -130,6 +130,16 @@
./hosts/ti-clt-dsk01/home.nix
];
};
"deploy@v-th-ctr-01" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs nix-colors; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/v-th-ctr-01/home.nix
];
};
};
};
}

View File

@ -59,13 +59,13 @@
allowedUDPPorts = [ 80 443 53 ];
};
users.users.timo = {
users.users.deploy = {
isNormalUser = true;
description = "Timo Boomers";
description = "Deploy";
extraGroups = [ "networkmanager" "wheel" "dialout" ];
};
nix.settings.trusted-users = [ "root" "timo" ];
nix.settings.trusted-users = [ "root" "deploy" ];
system.stateVersion = "24.05";
}

View File

@ -8,12 +8,12 @@
config = {
home = {
username = "timo";
homeDirectory = "/home/timo";
username = "deploy";
homeDirectory = "/home/deploy";
};
settings = {
applications.common.enable = false;
applications.common.enable = true;
applications.alacritty.enable = false;
applications.devenv.enable = false;
applications.firefox.enable = false;
@ -26,6 +26,7 @@
applications.zellij.enable = false;
services.nextcloud-sync.enable = false;
services.podman.enable = true;
theming.fonts.enable = false;
theming.stylix.enable = false;
@ -33,6 +34,8 @@
theming.stylix.theme = "da-one-ocean";
desktop-environments.hyprland.enable = false;
containers.nginx.enable = true;
};
home.packages = with pkgs; [

View File

@ -0,0 +1,26 @@
{ config, lib, ... }:
with lib;
let
cfg = config.settings.containers.nginx;
in {
options = {
settings.containers.nginx.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Enable nginx container
'';
};
};
config = mkIf cfg.enable {
services.podman.containers.nginx = {
image = "nginx";
ports = [
"8080:80"
];
};
};
}

View File

@ -15,6 +15,7 @@
./applications/zellij.nix
./services/nextcloud.nix
./services/podman.nix
./theming/fonts.nix
./theming/stylix.nix

View File

@ -0,0 +1,23 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.settings.services.podman;
in {
options = {
settings.services.podman.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Enable podman configuration
'';
};
};
config = mkIf cfg.enable {
services.podman = {
enable = true;
};
};
}