nixos-config/modules/sean.nix
2022-03-28 01:15:58 -04:00

39 lines
1.1 KiB
Nix

{ config, lib, pkgs, ... }:
let
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIqWHzIXaF88Y8+64gBlLbZ5ZZcLl08kTHG1clHd7gaq desktop"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJlMPWSVyDNAvXYtpXCI/geCeUEMbL9Nthm9B0zg1sIy sean@hp"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDuuBHq3x28cdQ0JWAZ0R+2rVlRoPnA+MOvpdF5rraGp sean@lenny"
];
in
{
users.users.root.openssh.authorizedKeys.keys =
lib.optionals (config.sconfig.profile == "server") keys;
users.users.sean = {
uid = 2000;
isNormalUser = true;
extraGroups = [
"audio"
"dialout"
"input"
"networkmanager"
"video"
"wheel"
"wireshark"
config.services.ipfs.group
];
openssh.authorizedKeys = { inherit keys; };
};
systemd.tmpfiles.rules = [ "e /home/sean/Downloads - - - 9d" ];
environment.systemPackages = map
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake github:buckley310/nixos-config"))
[ "boot" "build" "switch" "test" ];
sconfig.user-settings = ''
git config --global user.email "sean.bck@gmail.com"
git config --global user.name "Sean Buckley"
'';
}