diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-02-03 00:38:33 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-02-03 00:38:33 +0300 |
commit | ed775a06b6fee8788330fa07f1b9d26d5d2c4fcd (patch) | |
tree | efaba6e97da77a2668c366544f76dbd6ae0a9ac6 /modules/nixos | |
parent | 2023-02-02 (diff) |
2023-02-03
Diffstat (limited to 'modules/nixos')
-rw-r--r-- | modules/nixos/podman.nix | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/modules/nixos/podman.nix b/modules/nixos/podman.nix index 1c5378b..cda8a4b 100644 --- a/modules/nixos/podman.nix +++ b/modules/nixos/podman.nix @@ -31,11 +31,35 @@ in { my.extraGroups = ["podman"]; - hm.programs.bash = { - shellAliases.p = "${pkgs.podman}/bin/podman"; - initExtra = mkAfter '' - _complete_alias p __start_podman podman - ''; + hm = { + xdg.configFile = { + # This removes a really annoying registry search. 100% of the time I + # would need to look up stuff from the Docker and not Quay! + "containers/registries.conf".text = '' + [registries.search] + registries = ["docker.io"] + ''; + + # As for plain OverlayFS in Podman over ZFS[1]... I guess we are waiting + # for Podman to catch up now. + # + # [1]: https://github.com/openzfs/zfs/pull/14070#issuecomment-1309116666 + "containers/storage.conf".text = optionalString config.boot.zfs.enabled '' + [storage] + driver = "overlay" + + [storage.options] + mount_program = "${pkgs.fuse-overlayfs}/bin/fuse-overlayfs" + mountopt = "noatime,nodev,nosuid" + ''; + }; + + programs.bash = { + shellAliases.p = "${pkgs.podman}/bin/podman"; + initExtra = mkAfter '' + _complete_alias p __start_podman podman + ''; + }; }; }; } |