29 lines
608 B
Nix
29 lines
608 B
Nix
|
{ pkgs, inputs, config, lib, ... }:
|
||
|
let
|
||
|
pubKeys = lib.filesystem.listFilesRecursive (../keys);
|
||
|
in
|
||
|
{
|
||
|
users.users.admin = {
|
||
|
isNormalUser = true;
|
||
|
password = "nixos"; # Overridden if sops is working
|
||
|
shell = pkgs.zsh; # default shell
|
||
|
|
||
|
openssh.authorizedKeys.keys = lib.lists.forEach pubKeys (key: builtins.readFile key);
|
||
|
|
||
|
extraGroups =
|
||
|
[ "qemu-libvirtd" "libvirtd"
|
||
|
"wheel" "video" "audio" "disk" "networkmanager"
|
||
|
];
|
||
|
|
||
|
};
|
||
|
|
||
|
programs.zsh.enable = true;
|
||
|
|
||
|
environment.systemPackages = [
|
||
|
pkgs.rsync
|
||
|
pkgs.curl
|
||
|
pkgs.tmux
|
||
|
pkgs.neovim
|
||
|
];
|
||
|
}
|