From 676803e53f9c46f8030a4bbe0406c9ccf0f2b471 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Sat, 5 Feb 2022 23:24:11 +0000 Subject: [PATCH] Add dingserver flake --- flake.nix | 1 + hosts/dingserver/configuration.nix | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/flake.nix b/flake.nix index 08e5192..471d97b 100644 --- a/flake.nix +++ b/flake.nix @@ -68,6 +68,7 @@ nixosConfigurations = { dingbox = hostSystem { hostname = "dingbox"; }; miniding = hostSystem { hostname = "miniding"; }; + dingserver = hostSystem { hostname = "dingserver"; }; }; }; } diff --git a/hosts/dingserver/configuration.nix b/hosts/dingserver/configuration.nix index 055bedf..93f1b22 100644 --- a/hosts/dingserver/configuration.nix +++ b/hosts/dingserver/configuration.nix @@ -17,6 +17,13 @@ networking.useDHCP = false; networking.interfaces.ens3.useDHCP = true; + # nix flakes compatibility + nix = { + extraOptions = '' + experimental-features = nix-command flakes + ''; + }; + users.users.daniel = { isNormalUser = true; extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.