aboutsummaryrefslogtreecommitdiff
path: root/modules/system/users
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-12-09 09:15:23 -0800
committerFranck Cuny <franck@fcuny.net>2023-12-09 09:15:23 -0800
commit543fcc38c9c48349d6988b1ace119f0cef2d6efa (patch)
treeae8174b09797fd19e365f60bf25a9d20b222c855 /modules/system/users
parentinstall kind / configure the dock (diff)
downloadinfra-543fcc38c9c48349d6988b1ace119f0cef2d6efa.tar.gz
delete even more unused configurations
Diffstat (limited to 'modules/system/users')
-rw-r--r--modules/system/users/default.nix39
1 files changed, 0 insertions, 39 deletions
diff --git a/modules/system/users/default.nix b/modules/system/users/default.nix
deleted file mode 100644
index 2e7635d..0000000
--- a/modules/system/users/default.nix
+++ /dev/null
@@ -1,39 +0,0 @@
-{ config, lib, pkgs, ... }:
-let
- groupExists = grp: builtins.hasAttr grp config.users.groups;
- groupsIfExist = builtins.filter groupExists;
- sshPub = builtins.fromTOML (builtins.readFile ../../../configs/ssh-pubkeys.toml);
-in
-{
-
- users.groups.fcuny = { gid = 1000; };
- users.users.fcuny = {
- isNormalUser = true;
- uid = 1000;
- group = "fcuny";
- home = "/home/fcuny";
- shell = pkgs.zsh;
- extraGroups = groupsIfExist [
- "docker"
- "users"
- "nas" # in order to access to files downloaded by transmission
- "wheel" # `sudo` for the user.
- "cdrom" # in order to read from the bluray
- ];
- hashedPassword =
- "$6$i.z1brxtb44JAEco$fDD2Izl.zRR9vBCB2VBKPScChGw38EEl7QEiBTJ/EwgP3oSL0X3ZHq0PJ.RtqzBsWTPUjl4F3MKOBMhnaAPr6.";
- openssh.authorizedKeys.keys = with sshPub; [
- aptos
- work
- ykey-backup
- ykey-keyring
- ykey-laptop
- ];
- };
-
- users.users.root = {
- hashedPassword = null;
- openssh.authorizedKeys.keys =
- config.users.users.fcuny.openssh.authorizedKeys.keys;
- };
-}