Personal Nix flake
nixos home-manager nix
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: Change OCI backend to podman, enable on desktop and laptop

+29 -10
+1
nix/nixos/configs/desktop/default.nix
··· 11 11 gaming.enable = true; 12 12 networking.tailscale.trusted = true; 13 13 users.emily.enable = true; 14 + virtualization.oci.enable = true; 14 15 profiles = { 15 16 formfactor.desktop = true; 16 17 hardware.gpu.nvidia = true;
+1
nix/nixos/configs/laptop/default.nix
··· 10 10 ci.build = true; 11 11 gaming.steam.enable = true; 12 12 networking.tailscale.trusted = true; 13 + virtualization.oci.enable = true; 13 14 profiles = { 14 15 formfactor.laptop = true; 15 16 hardware.cpu.intel = true;
+26 -10
nix/nixos/modules/virtualization/default.nix
··· 4 4 pkgs, 5 5 ... 6 6 }: let 7 - cfg = config.my.virtualisation; 7 + cfg = config.my.virtualization; 8 8 in { 9 - options.my.virtualisation.enable = lib.mkEnableOption "virtualisation tweaks"; 10 - config = lib.mkIf cfg.enable { 11 - environment.systemPackages = with pkgs; [ 12 - distrobox 13 - ]; 14 - virtualisation = { 15 - docker = { 16 - enable = true; 17 - enableOnBoot = true; 9 + options.my.virtualization = { 10 + oci.enable = lib.mkEnableOption "OCI container virtualization"; 11 + }; 12 + 13 + config = lib.mkIf cfg.oci.enable { 14 + environment = { 15 + shellAliases._docker = "${lib.getExe pkgs.docker-client}"; 16 + systemPackages = [pkgs.podman-compose]; 17 + variables.PODMAN_COMPOSE_WARNING_LOGS = "false"; 18 + }; 19 + 20 + users = { 21 + groups.podman.gid = 2000; 22 + users.podman = { 23 + uid = 2000; 24 + group = "podman"; 25 + linger = true; 18 26 }; 27 + }; 28 + 29 + virtualisation.podman = { 30 + enable = true; 31 + autoPrune.enable = true; 32 + defaultNetwork.settings.dns_enabled = true; 33 + dockerCompat = true; 34 + dockerSocket.enable = true; 19 35 }; 20 36 }; 21 37 }
+1
nix/shells/maintenance.nix
··· 25 25 colmena 26 26 just 27 27 rage 28 + yaml-language-server 28 29 ]) 29 30 ++ config.pre-commit.settings.enabledPackages 30 31 ++ lib.optionals (config.agenix-rekey.package != null) [