diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d17ec9c --- /dev/null +++ b/flake.nix @@ -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 ]; + }; + }; + +} diff --git a/modules/default.nix b/modules/default.nix index 8b82029..d80a65a 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -206,5 +206,12 @@ let named = submodule { extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. }; + nix = { + optimise.automatic = true; + extraOptions = '' + experimental-features = nix-command flakes + ''; + }; + }; }