diff --git a/configuration.nix b/configuration.nix index 9f841a3..6dc718c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -5,6 +5,13 @@ { config, pkgs, ... }: { + nix = { + package = pkgs.nixFlakes; + extraOptions = '' + experimental-features = nix-command flakes + ''; + } + imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2e1a28e --- /dev/null +++ b/flake.nix @@ -0,0 +1,14 @@ +{ + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + inputs.home-manager.url = "github:nix-community/home-manager"; + inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs"; + + outputs = {self, nixpkgs, home-manager }: { + nixosConfigurations = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./configuration.nix + ]; + } + } +}