nixos-config/modules/sean.nix

39 lines
1.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
{
2021-12-02 19:57:54 +00:00
users.users.root.openssh.authorizedKeys.keys =
lib.optionals (config.sconfig.profile == "server") keys;
2021-11-09 17:20:34 +00:00
users.users.sean = {
2022-03-28 05:15:58 +00:00
uid = 2000;
2021-11-09 17:20:34 +00:00
isNormalUser = true;
2022-02-13 03:41:57 +00:00
extraGroups = [
"audio"
"dialout"
"input"
"networkmanager"
"video"
"wheel"
"wireshark"
];
2021-11-09 17:20:34 +00:00
openssh.authorizedKeys = { inherit keys; };
};
systemd.tmpfiles.rules = [ "e /home/sean/Downloads - - - 9d" ];
2021-11-09 17:24:21 +00:00
environment.systemPackages = map
2022-04-12 16:49:53 +00:00
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake bck"))
2021-12-02 20:04:33 +00:00
[ "boot" "build" "switch" "test" ];
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
}