Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Sep 15, 2024
1 parent 07eb240 commit 0cad787
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,31 @@
nix run github:sn0wm1x/ur#example-package
```

###### nix flake
###### nix flake (standalone)

```nix
# flake.nix
{
inputs.sn0wm1x.url = "github:sn0wm1x/ur";
inputs.sn0wm1x.inputs.nixpkgs.follows = "nixpkgs";
outputs = {
nixosConfigurations.myConfig = nixpkgs.lib.nixosSystem {
# ...
modules = [
# nur.nixosModules.nur
sn0wm1x.nixosModules.hatsu
];
};
};
}
```

###### nix flake (combined)

```nix
home.packages = with pkgs; [
nur-no-pkgs.repos.sn0wm1x.example-package
nur.repos.sn0wm1x.example-package
];
```

Expand Down

0 comments on commit 0cad787

Please sign in to comment.