From 1f66bc0a71c8ad94cd7aab79949dbacb3c9bafd0 Mon Sep 17 00:00:00 2001 From: Riley Apeldoorn Date: Sun, 15 May 2022 16:56:03 +0200 Subject: [PATCH] add flake.nix --- flake.nix | 15 +++++++++++++++ modules/default.nix | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 flake.nix 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 + ''; + }; + }; }