https://github.com/mkg20001/lxd-nixpkgs-test
Tiny script to help you test nixpkgs changes [maintainer=@mkg20001]
https://github.com/mkg20001/lxd-nixpkgs-test
lxd nix nixos
Last synced: 26 days ago
JSON representation
Tiny script to help you test nixpkgs changes [maintainer=@mkg20001]
- Host: GitHub
- URL: https://github.com/mkg20001/lxd-nixpkgs-test
- Owner: mkg20001
- Created: 2021-11-03T16:02:58.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T15:32:33.000Z (about 1 year ago)
- Last Synced: 2025-03-26T05:48:47.628Z (28 days ago)
- Topics: lxd, nix, nixos
- Language: Shell
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lxd-nixpkgs-test
Tiny script to help you test nixpkgs changes (requires lxd installed)
# Installation
Clone the repo
Enable LXD
```nix
virtualisation.lxd.enable = true;
users.users.YOU.extraGroups = [ "lxd" ];
```Init LXD
```
sudo lxd init --auto
```# Usage
```
nix-env -f https://github.com/mkg20001/lxd-nixpkgs-test/archive/master.tar.gz -i
```Set everything up by running `lnt init `
Afterwards use `lnt enter ` to spawn and enter a container with your worktree checked out
Modify `/config/default.nix` and re-run `lnt rebuild ` in the container to have your changes applied
NOTE: this tool assumes the git worktree workflow
If you don't know git worktree then you should really look it up
`git worktree add your-big-feature`