blob: 6c8b7e527f28e99c347f5cac669e73dad92bb5f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{
config,
lib,
inputs,
pkgs,
...
}:
with lib; let
cfg = config.nixfiles.modules.podman;
in {
options.nixfiles.modules.podman.enable =
mkEnableOption "Whether to enable Podman.";
config = mkIf cfg.enable {
secrets.containers-auth = {
file = "${inputs.self}/secrets/containers-auth";
path = "${config.dirs.config}/containers/auth.json";
owner = my.username;
};
virtualisation.podman.enable = true;
environment.systemPackages = with pkgs; [podman-compose];
my.extraGroups = ["podman"];
hm.programs.bash = {
shellAliases.p = "${pkgs.podman}/bin/podman";
initExtra = mkAfter ''
_complete_alias p __start_podman podman
'';
};
};
}
|