From 8acdb45ac1d3cf8587456dbbed7fdb39af55aae9 Mon Sep 17 00:00:00 2001 From: Nettika Date: Mon, 10 Jun 2024 20:49:50 -0700 Subject: [PATCH] Separate out user configurations --- configuration.nix | 12 +++--------- users.nix | 9 +++++++++ 2 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 users.nix diff --git a/configuration.nix b/configuration.nix index f291172..2636cfa 100644 --- a/configuration.nix +++ b/configuration.nix @@ -4,6 +4,7 @@ imports = [ ./hardware-configuration.nix + ./users.nix ]; boot.loader.systemd-boot.enable = true; @@ -15,16 +16,9 @@ }; time.timeZone = "America/Los_Angeles"; - + i18n.defaultLocale = "en_US.UTF-8"; - - users.users = { - nettika = { - isNormalUser = true; - extraGroups = [ "wheel" "networkmanager" ]; - }; - }; - + nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ diff --git a/users.nix b/users.nix new file mode 100644 index 0000000..4c951f1 --- /dev/null +++ b/users.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, modulesPath, ... }: +{ + users.users = { + nettika = { + isNormalUser = true; + extraGroups = [ "wheel" "networkmanager" ]; + }; + }; +}