diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2020-06-24 06:06:51 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-07-06 14:49:08 +0100 |
commit | 618819cc490019c093117ee051ba4ea66bd0bc6d (patch) | |
tree | 71e23d5d3ed528d9dbf58b0611112e14cd490bb0 /README.md | |
parent | 62f453938f12b47eab79c3113ebfc1b57b5d760b (diff) | |
download | nixlib-618819cc490019c093117ee051ba4ea66bd0bc6d.tar nixlib-618819cc490019c093117ee051ba4ea66bd0bc6d.tar.gz nixlib-618819cc490019c093117ee051ba4ea66bd0bc6d.tar.bz2 nixlib-618819cc490019c093117ee051ba4ea66bd0bc6d.tar.lz nixlib-618819cc490019c093117ee051ba4ea66bd0bc6d.tar.xz nixlib-618819cc490019c093117ee051ba4ea66bd0bc6d.tar.zst nixlib-618819cc490019c093117ee051ba4ea66bd0bc6d.zip |
add flake support
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/README.md b/README.md index 9587349911f9..2fd51933e535 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,29 @@ imports = [ ]; ``` +## Adding via nix flakes support + +There is also experimental flake support. In your `/etc/nixos/flake.nix` add the following: + +```nix +{ + description = "NixOS configuration with flakes"; + inputs.nixos-hardware.url = github:NixOS/nixos-hardware/master; + + outputs = { self, nixpkgs, nixos-hardware }: { + # replace <your-hostname> with your actual hostname + nixosConfigurations.<your-hostname> = nixpkgs.lib.nixosSystem { + # ... + modules = [ + # ... + # add your model from this list: https://github.com/NixOS/nixos-hardware/blob/flakes/flake.nix + nixos-hardware.nixosModules.dell-xps-13-9380 + ]; + }; + }; +} +``` + ## List of Profiles See code for all available configurations. |