{"id":21842369,"url":"https://github.com/frontear/nix-wrap","last_synced_at":"2026-05-16T00:34:10.412Z","repository":{"id":257025106,"uuid":"856628724","full_name":"Frontear/nix-wrap","owner":"Frontear","description":"A powerful wrapping alternative for Nix/OS that isolates programs and contains configuration within isolated environments, powered by Bubblewrap.","archived":false,"fork":false,"pushed_at":"2024-09-16T19:37:56.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T11:26:36.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Frontear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-12T23:07:55.000Z","updated_at":"2024-09-16T19:37:59.000Z","dependencies_parsed_at":"2024-09-16T23:34:53.637Z","dependency_job_id":null,"html_url":"https://github.com/Frontear/nix-wrap","commit_stats":null,"previous_names":["frontear/nix-wrap"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontear%2Fnix-wrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontear%2Fnix-wrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontear%2Fnix-wrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontear%2Fnix-wrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frontear","download_url":"https://codeload.github.com/Frontear/nix-wrap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244825653,"owners_count":20516592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-27T22:11:45.409Z","updated_at":"2026-05-16T00:34:10.355Z","avatar_url":"https://github.com/Frontear.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nix Wrap\nA powerful wrapping alternative for Nix/OS.\n\nThe main goal of this is to provide isolated filesystems powered by Bubblewrap that keep program configurations. This provides a cleaner home alongside a more pure and isolated approach to configuration.\n\n## Table Of Contents\n- [Installing](#installing)\n- [Usage](#usage)\n- [License](#license)\n\n## Installing\n1. Add `nix-wrap` to your flake inputs and `nix-wrap.nixosModules.default` to your configuration(s):\n```nix\n{\n  inputs.nixpkgs.url = \"github:NixOS/nixpkgs/nixos-unstable\";\n  inputs.nix-wrap.url = \"github:Frontear/nix-wrap\";\n\n  outputs = { nixpkgs, nix-wrap, ... } @ inputs: {\n    nixosConfigurations.\"my-host123\" = nixpkgs.lib.nixosSystem {\n      modules = [\n        nix-wrap.nixosModules.default\n\n        ./configuration.nix\n      ];\n    };\n  };\n}\n```\n\n## Usage\n1. Declare a new `wrapper.\u003cname\u003e` block in your configuration, following the provided format:\n```nix\n{\n  config,\n  pkgs,\n  ...\n}:\n{\n  wrappers.my-app = {\n    # This app will be immediately run when accessing the drv.\n    program = pkgs.my-app;\n\n    # Paths are of format { src = ...; dest = ...; }, where\n    #   - src is a relative path to your config file\n    #   - dest is a string path that is bind mounted to the bwrap.\n    paths = [\n      {\n        src = ./config.json;\n        dest = \".config/my-app/config.json\";\n      }\n    ];\n  };\n\n  environment.systemPackages = [\n    # Adds the final wrapped package to your environment\n    config.wrappers.my-app.package\n  ];\n}\n```\n2. Run your program via `\u003cname\u003e-wrapper`. The above example would be run via `my-app-wrapper`, which will drop you into a bwrap that exists immediately when the program closes.\n\n\u003e [!NOTE]\n\u003e For testing purposes this flake exposes a few wrapped applications. Check them out and run them using `nix run .#wrapped-\u003cname\u003e`!\n## License\nAll code in this project is licensed under the MIT License. This was an intentional choice to hopefully ease integration into [nixpkgs](https://github.com/NixOS/nixpkgs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontear%2Fnix-wrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrontear%2Fnix-wrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontear%2Fnix-wrap/lists"}