From: Dominik Kaiser Date: Fri, 21 Feb 2025 11:18:34 +0000 (+0100) Subject: Move nix settings to global config X-Git-Url: https://git.dkaiser.de/?a=commitdiff_plain;h=b5043ef5261d195cab2148b5b0bfbfe1717e9835;p=config%2Fnixos.git Move nix settings to global config --- diff --git a/hosts/common/global/default.nix b/hosts/common/global/default.nix index a60c412..26161fd 100644 --- a/hosts/common/global/default.nix +++ b/hosts/common/global/default.nix @@ -4,4 +4,8 @@ ./locale.nix ./keyboard.nix ]; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nixpkgs.config.allowUnfree = true; + } \ No newline at end of file diff --git a/hosts/sol/configuration.nix b/hosts/sol/configuration.nix index b77debe..6ea7174 100644 --- a/hosts/sol/configuration.nix +++ b/hosts/sol/configuration.nix @@ -11,8 +11,6 @@ ../common/global ]; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -93,9 +91,6 @@ programs.direnv.enable = true; services.emacs.enable = true; - # Allow unfree packages - nixpkgs.config.allowUnfree = true; - # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = [