From 96a618e44b8926fe0a2091ab03c31d0426d52b54 Mon Sep 17 00:00:00 2001 From: Devin Finlinson Date: Mon, 20 Nov 2023 05:49:43 -0700 Subject: renamed folder for faster typing and thinking --- modules/user-profiles/defin.nix | 25 ------------------------- modules/user-profiles/root.nix | 20 -------------------- modules/users/defin.nix | 25 +++++++++++++++++++++++++ modules/users/root.nix | 20 ++++++++++++++++++++ 4 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 modules/user-profiles/defin.nix delete mode 100644 modules/user-profiles/root.nix create mode 100644 modules/users/defin.nix create mode 100644 modules/users/root.nix diff --git a/modules/user-profiles/defin.nix b/modules/user-profiles/defin.nix deleted file mode 100644 index 999332a..0000000 --- a/modules/user-profiles/defin.nix +++ /dev/null @@ -1,25 +0,0 @@ -{config, pkgs, lib, ... }: { - - # Define a user account. Don't forget to set a password with ‘passwd’. - users = { - - mutableUsers = false; - users.defin = { - isNormalUser = true; - description = "Devin Finlinson"; - extraGroups = [ "wheel" "builders" "video" "input"]; # Enable ‘sudo’ for the user. - shell = pkgs.nushell; - hashedPassword = "$6$UljPNAdxZ22lP3Bc$8VaEAacZxtXM3Zji2IA7Jf5fXs9pFnAVQff1d8IbfFOKCvjibceyopOAjRXa8lXtpOSJgPW1OO1dzOspqhWnz0"; - - openssh.authorizedKeys.keyFiles = [ - (builtins.fetchurl { - url = "https://git.wormcar.gay/devinf.keys"; - sha256 = "1jm206w3j896zl2v137zmri4v46kq9wpj4fv17bfa023xm2qy2bh"; - }) - ]; - }; - }; - - # Allow to run nix - nix.settings.allowed-users = [ "defin" ]; -} \ No newline at end of file diff --git a/modules/user-profiles/root.nix b/modules/user-profiles/root.nix deleted file mode 100644 index aba99c1..0000000 --- a/modules/user-profiles/root.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ config, pkgs, lib, ... }: { - - # Define a user account. Don't forget to set a password with 'passwd'. - users = { - users.root = { - isNormaluser = true; - hashedPassword = "$6$UljPNAdxZ22lP3Bc$8VaEAacZxtXM3Zji2IA7Jf5fXs9pFnAVQff1d8IbfFOKCvjibceyopOAjRXa8lXtpOSJgPW1OO1dzOspqhWnz0"; - - # oppenssh.authorizedKeys.keyFiles = [ - # (builtins.fetchurl { - # url = "https://git.wormcar.gay/devinf.keys"; - # sha256 = "14d35z9r6gakfavf5qljjk2iv8cm09n3x2ajgbs91b1hsga3midk"; - # }) - # ]; - }; - }; - - # Allow to run nix - nix.settings.allowed-users = [ "root" ]; -} diff --git a/modules/users/defin.nix b/modules/users/defin.nix new file mode 100644 index 0000000..999332a --- /dev/null +++ b/modules/users/defin.nix @@ -0,0 +1,25 @@ +{config, pkgs, lib, ... }: { + + # Define a user account. Don't forget to set a password with ‘passwd’. + users = { + + mutableUsers = false; + users.defin = { + isNormalUser = true; + description = "Devin Finlinson"; + extraGroups = [ "wheel" "builders" "video" "input"]; # Enable ‘sudo’ for the user. + shell = pkgs.nushell; + hashedPassword = "$6$UljPNAdxZ22lP3Bc$8VaEAacZxtXM3Zji2IA7Jf5fXs9pFnAVQff1d8IbfFOKCvjibceyopOAjRXa8lXtpOSJgPW1OO1dzOspqhWnz0"; + + openssh.authorizedKeys.keyFiles = [ + (builtins.fetchurl { + url = "https://git.wormcar.gay/devinf.keys"; + sha256 = "1jm206w3j896zl2v137zmri4v46kq9wpj4fv17bfa023xm2qy2bh"; + }) + ]; + }; + }; + + # Allow to run nix + nix.settings.allowed-users = [ "defin" ]; +} \ No newline at end of file diff --git a/modules/users/root.nix b/modules/users/root.nix new file mode 100644 index 0000000..aba99c1 --- /dev/null +++ b/modules/users/root.nix @@ -0,0 +1,20 @@ +{ config, pkgs, lib, ... }: { + + # Define a user account. Don't forget to set a password with 'passwd'. + users = { + users.root = { + isNormaluser = true; + hashedPassword = "$6$UljPNAdxZ22lP3Bc$8VaEAacZxtXM3Zji2IA7Jf5fXs9pFnAVQff1d8IbfFOKCvjibceyopOAjRXa8lXtpOSJgPW1OO1dzOspqhWnz0"; + + # oppenssh.authorizedKeys.keyFiles = [ + # (builtins.fetchurl { + # url = "https://git.wormcar.gay/devinf.keys"; + # sha256 = "14d35z9r6gakfavf5qljjk2iv8cm09n3x2ajgbs91b1hsga3midk"; + # }) + # ]; + }; + }; + + # Allow to run nix + nix.settings.allowed-users = [ "root" ]; +} -- cgit v1.2.3