From 18065c691c15294b9eb35e699fdc2df22cc360cb Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Thu, 26 Jan 2023 11:27:09 +0100 Subject: [PATCH] feat: tweak nix settings for newer features --- nix/home-manager/profiles/common.nix | 4 ++++ nix/os/devices/steveej-t14/system.nix | 2 ++ nix/os/devices/steveej-t14/user.nix | 2 ++ 3 files changed, 8 insertions(+) diff --git a/nix/home-manager/profiles/common.nix b/nix/home-manager/profiles/common.nix index 602de04..1c4372e 100644 --- a/nix/home-manager/profiles/common.nix +++ b/nix/home-manager/profiles/common.nix @@ -15,6 +15,10 @@ in { permittedInsecurePackages = [ "electron-17.4.1" ]; + + nix.settings = { + experimental-features = + [ "nix-command" "flakes" "impure-derivations" "ca-derivations" ]; }; home.keyboard = { diff --git a/nix/os/devices/steveej-t14/system.nix b/nix/os/devices/steveej-t14/system.nix index 9035bbf..20d60ca 100644 --- a/nix/os/devices/steveej-t14/system.nix +++ b/nix/os/devices/steveej-t14/system.nix @@ -13,6 +13,8 @@ in { "cache.holo.host-1:lNXIXtJgS9Iuw4Cu6X0HINLu9sTfcjEntnrgwMQIMcE=" "cache.holo.host-2:ZJCkX3AUYZ8soxTLfTb60g+F3MkWD7hkH9y8CgqwhDQ=" ]; + + settings = { extra-experimental-features = [ "impure-derivations" ]; }; }; # TASK: new device diff --git a/nix/os/devices/steveej-t14/user.nix b/nix/os/devices/steveej-t14/user.nix index fd906b1..afb1aa8 100644 --- a/nix/os/devices/steveej-t14/user.nix +++ b/nix/os/devices/steveej-t14/user.nix @@ -10,4 +10,6 @@ in { uid = 1001; openssh.authorizedKeys.keys = keys.users.steveej.openssh; }; + + nix.settings.trusted-users = [ "steveej" ]; }