Break out users
This commit is contained in:
parent
c9b979374f
commit
a756257511
3 changed files with 33 additions and 29 deletions
|
@ -1,8 +1,3 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running `nixos-help`).
|
||||
|
||||
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
|
@ -72,32 +67,9 @@
|
|||
|
||||
boot.kernel.sysctl."kernel.sched_rt_runtime_us" = -1;
|
||||
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem ( lib.getName pkg) [
|
||||
"osu-lazer"
|
||||
];
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users = {
|
||||
stitchynyan = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
home = "/home/stitchynyan";
|
||||
description = "Personal user";
|
||||
extraGroups = [ "wheel" "networkmanager" "kvm" "libvirt" "audio" ];
|
||||
initialHashedPassword = "$y$j9T$rvySCWHYE4AO4A9J0Vf20.$x5hpBNsOWovQFtNfFUIt17OAH5MJFwFBGjxbaEIagJ3";
|
||||
};
|
||||
nyadmin = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
home = "/home/nyadmin";
|
||||
description = "Administrator~";
|
||||
extraGroups = [ "wheel" "kvm" "libvirt" "docker" ];
|
||||
initialHashedPassword = "$y$j9T$XguIcj/AVXsWW/MxSYAGh0$TivGAa0z8KNCli2mKTd24vtqimpadNzqMFwfbeh0p30";
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOVgHcJ9C8TD515x+KqFKNYUa6IZML6LU3FWovmDIvyZ" ];
|
||||
};
|
||||
root.initialHashedPassword = "!";
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
|
|
14
users/nyadmin/default.nix
Normal file
14
users/nyadmin/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
users.users.nyadmin = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
home = "/home/nyadmin";
|
||||
description = "Administrator~";
|
||||
extraGroups = [ "wheel" "kvm" "libvirt" "docker" ];
|
||||
initialHashedPassword = "$y$j9T$XguIcj/AVXsWW/MxSYAGh0$TivGAa0z8KNCli2mKTd24vtqimpadNzqMFwfbeh0p30";
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOVgHcJ9C8TD515x+KqFKNYUa6IZML6LU3FWovmDIvyZ" ];
|
||||
};
|
||||
}
|
18
users/stitchynyan/default.nix
Normal file
18
users/stitchynyan/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem ( lib.getName pkg) [
|
||||
"osu-lazer"
|
||||
];
|
||||
|
||||
users.users.stitchynyan = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
home = "/home/stitchynyan";
|
||||
description = "Personal user";
|
||||
extraGroups = [ "wheel" "networkmanager" "kvm" "libvirt" "audio" ];
|
||||
initialHashedPassword = "$y$j9T$rvySCWHYE4AO4A9J0Vf20.$x5hpBNsOWovQFtNfFUIt17OAH5MJFwFBGjxbaEIagJ3";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue