From 0cad787d4e85c70cd138775c8f8ff0680f239dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=97=8D+85CD?= <50108258+kwaa@users.noreply.github.com> Date: Sun, 15 Sep 2024 13:19:37 +0800 Subject: [PATCH] docs: update readme --- README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4134b24..9e09ee6 100644 --- a/README.md +++ b/README.md @@ -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 ]; ```