add flake.nix

This commit is contained in:
Riley Apeldoorn 2022-05-15 16:56:03 +02:00
parent d2cc84899a
commit 1f66bc0a71
2 changed files with 22 additions and 0 deletions

15
flake.nix Normal file
View file

@ -0,0 +1,15 @@
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs;
home-manager.url = github:nix-community/home-manager;
};
outputs = { self, nixpkgs, home-manager }: with nixpkgs; {
nixosConfigurations."thor" = lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./configuration.nix ];
};
};
}

View file

@ -206,5 +206,12 @@ let named = submodule {
extraGroups = [ "wheel" ]; # Enable sudo for the user.
};
nix = {
optimise.automatic = true;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
};
}