From 565b94126fb119d190da5bf5c149b2e65a9ec6c2 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 13 Aug 2022 23:28:57 -0400 Subject: [PATCH] Extracting users --- modules/system/users.nix | 13 +++++++++++++ profiles/minimal.nix | 14 -------------- 2 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 modules/system/users.nix diff --git a/modules/system/users.nix b/modules/system/users.nix new file mode 100644 index 0000000..b13a11c --- /dev/null +++ b/modules/system/users.nix @@ -0,0 +1,13 @@ +# Define a user account. Don't forget to set a password with ‘passwd’. +{ config, lib, pkgs, ... }: { + users.users = { + root.initialPassword = "noreallychangemenow"; + james = { + description = "James Patrick"; + extraGroups = [ "wheel" "systemd-journal" ]; + initialPassword = "nixos"; + isNormalUser = true; + shell = pkgs.zsh; + }; + }; +} diff --git a/profiles/minimal.nix b/profiles/minimal.nix index 410d22d..7c4febf 100644 --- a/profiles/minimal.nix +++ b/profiles/minimal.nix @@ -7,20 +7,6 @@ in { #../modules/. # This imports /modules/default.nix #../modules/system/xdg.nix ]; - # Allow Cleanup, nix, & flakes - - # Define a user account. Don't forget to set a password with ‘passwd’. - users.users = { - root.initialPassword = "nixos"; - james = { - description = "James Patrick"; - extraGroups = [ "wheel" "systemd-journal" ]; - initialPassword = "nixos"; - isNormalUser = true; - shell = pkgs.zsh; - }; - }; - # These are the most basic tools I need. environment.systemPackages = with pkgs; [ nixfmt git gnumake vim zsh ];