From 26f9d6675b12b7e82c8c0568d1f5954fa0087ae1 Mon Sep 17 00:00:00 2001 From: Miranda Marquez Date: Tue, 26 Mar 2024 20:46:24 -0800 Subject: [PATCH] move some nix settings into new file --- configuration.nix | 9 ++++----- modules/nix-settings.nix | 8 ++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 modules/nix-settings.nix diff --git a/configuration.nix b/configuration.nix index a516da0..c702f1a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -8,10 +8,11 @@ # Bootloader. boot.loader.systemd-boot.enable = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - nix.settings.extra-experimental-features = [ "nix-command" "flakes" ]; - imports = [ ./modules/networking.nix ]; + imports = [ + ./modules/networking.nix + ./modules/nix-settings.nix + ]; # Set your time zone. time.timeZone = "America/Anchorage"; @@ -143,8 +144,6 @@ systemd.services."getty@tty1".enable = false; systemd.services."autovt@tty1".enable = false; - # Allow unfree packages - nixpkgs.config.allowUnfree = true; # List packages installed in system profile. To search, run: # $ nix search wget diff --git a/modules/nix-settings.nix b/modules/nix-settings.nix new file mode 100644 index 0000000..d99e9ff --- /dev/null +++ b/modules/nix-settings.nix @@ -0,0 +1,8 @@ +{ config, lib, pkgs, ... }: +{ + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.extra-experimental-features = [ "nix-command" "flakes" ]; + # Allow unfree packages + nixpkgs.config.allowUnfree = true; + +}