From ed98099bf9d322df74004fc17cc3543120d43f82 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Sun, 20 Oct 2024 07:33:45 +0700 Subject: [PATCH] feat(nix): Configure `nix/nix.conf` --- .config/nix/systems/nix/potato/default.nix | 17 +++++++++++++---- .config/nix/users/ziro/default.nix | 8 +++++++- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.config/nix/systems/nix/potato/default.nix b/.config/nix/systems/nix/potato/default.nix index 3b34c58..bf11457 100644 --- a/.config/nix/systems/nix/potato/default.nix +++ b/.config/nix/systems/nix/potato/default.nix @@ -6,10 +6,19 @@ # NOTE: List packages installed in system profile. To search by name, run: # `nix-env -qaP | grep wget` - environment.systemPackages = - common.packages ++ [ - pkgs.zoxide - ]; + environment = { + etc = { + "nix/nix.conf".text = + '' + experimental-features = nix-command flakes + build-users-group = nixbld + ''; + }; + systemPackages = + common.packages ++ [ + pkgs.zoxide + ]; + }; nixpkgs.hostPlatform = pkgs.system; }; diff --git a/.config/nix/users/ziro/default.nix b/.config/nix/users/ziro/default.nix index 30b55ed..46a9d73 100644 --- a/.config/nix/users/ziro/default.nix +++ b/.config/nix/users/ziro/default.nix @@ -5,5 +5,11 @@ username = "ziro"; }; - home.stateVersion = "24.05"; + xdg.configFile = { + "nix/nix.conf".text = '' + experimental-features = nix-command flakes + ''; + }; + + home.stateVersion = "24.11"; }