add flake support

This commit is contained in:
Jörg Thalheim
2020-06-24 06:06:51 +01:00
parent 62f453938f
commit 618819cc49
2 changed files with 86 additions and 0 deletions

View File

@@ -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.