# Adding Flakery to an Existing NixOS Configuration
In order to add Flakery to an exiting flake you need to:
- Add the Flakery nix flake to your flake inputs
- Add the Flakery nixos module to your nixos module's imports
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flakery.url = "github:getflakery/flakery";
};
outputs = { self, nixpkgs, flakery }: {
nixosConfigurations.hello-flakery = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
flakery.nixosModules.flakery
./configuration.nix
];
};
};
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20