podman autostart

This commit is contained in:
Sense T 2023-06-28 09:30:10 +08:00
parent 792ddff76f
commit 1087486966
4 changed files with 34 additions and 6 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@
result
result-*
.DS_Store
passwords/*

View File

@ -12,10 +12,10 @@ nixos-rebuild switch --flake 'git+https://git.sense-t.eu.org/NixOS/gpd-configura
- [x] 无状态 `/` 分区
- [ ] wsproxy on podman
- [ ] waybar 微调
- [x] waybar 微调
- [x] 使用 pipewire
- [x] 电源选项
- [x] hyprland 微调
- [x] nwg-launchers 微调+配置
- [x] [HMCL](https://gitlab.com/accessable-net/hmcl-flatpak)
- [ ] tailscale
- [x] tailscale

View File

@ -63,4 +63,32 @@
zsh.enable = true;
light.enable = true;
};
virtualisation = {
podman.enable = true;
oci-containers.backend = "podman";
oci-containers.containers = {
wsproxy = {
login.username = "senseab";
login.registry = "ghcr.io";
login.passwordFile = "/var/lib/secrets/podman/wsproxy"; # should create it manually.
image = "ghcr.io/senseab/wsproxy:master";
autoStart = true;
environment = {
CONFIG_NO_TLS_VERIFY = "true";
CONFIG_ADDR = "wss://dev.wetofu.me/path";
WSPROXY_MODE = "client";
};
ports = [
"1089:1089";
];
extraOptions = [
"--restart=always"
];
};
};
};
}

View File

@ -10,8 +10,6 @@
thefuck
ranger
icdiff
podman
jdk17
#rofi
#rofi-rbw
nwg-launchers
@ -25,8 +23,8 @@
sessionVariables = {
#GTK_IM_MODULE = "fcitx";
#QT_IM_MODULE = "fcitx";
SDL_VIDEODRIVER = "wayland";
SDL_IM_MODULE = "fcitx";
#SDL_VIDEODRIVER = "wayland";
#SDL_IM_MODULE = "fcitx";
};
shellAliases = {