2024-05-16 20:19:01 +01:00
|
|
|
{ pkgs, inputs, config, lib, ... }:
|
|
|
|
let
|
|
|
|
pubKeys = lib.filesystem.listFilesRecursive (../keys);
|
2024-05-17 01:07:42 +01:00
|
|
|
hostname = config.networking.hostName;
|
2024-05-16 20:19:01 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
users.users.media = {
|
|
|
|
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;
|
2024-05-17 01:07:42 +01:00
|
|
|
programs.fuse.userAllowOther = true;
|
|
|
|
#home-manager.users.sam =
|
|
|
|
home-manager = {
|
|
|
|
extraSpecialArgs = { inherit inputs; };
|
|
|
|
users = {
|
|
|
|
media = import ../../../../home/${hostname}.nix;
|
|
|
|
};
|
|
|
|
};
|
2024-05-16 20:19:01 +01:00
|
|
|
|
|
|
|
environment.systemPackages = [
|
|
|
|
];
|
|
|
|
}
|