nixos-config/modules/sean.nix

31 lines
1 KiB
Nix
Raw Normal View History

2021-11-09 17:20:34 +00:00
{ 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 =
if config.sconfig.profile == "server"
then { inherit keys; } else { };
users.users.sean = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" "video" "networkmanager" "dialout" "input" "wireshark" ];
openssh.authorizedKeys = { inherit keys; };
};
systemd.tmpfiles.rules = [ "e /home/sean/Downloads - - - 9d" ];
2021-11-09 17:24:21 +00:00
environment.systemPackages = map
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake github:buckley310/nixos-config"))
[ "switch" "build" "boot" ];
2021-11-10 01:51:17 +00:00
sconfig.user-settings = ''
git config --global user.email "sean.bck@gmail.com"
git config --global user.name "Sean Buckley"
'';
2021-11-09 17:20:34 +00:00
}