os/users/hensoko/home.nix

96 lines
2 KiB
Nix
Raw Normal View History

2022-01-22 21:14:30 +00:00
{ config, pkgs, lib, self, ... }:
with lib;
let
psCfg = config.pub-solar;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
in
{
2022-08-13 09:13:15 +00:00
imports = [ ];
2022-01-22 21:14:30 +00:00
2022-05-03 17:20:47 +00:00
services.fwupd.enable = true;
pub-solar.graphical.autologin.enable = false;
2022-05-16 09:11:53 +00:00
security.sudo.extraRules = [
{
users = [ "${psCfg.user.name}" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
}
];
2022-01-22 21:14:30 +00:00
home-manager = pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] {
xdg.configFile = mkIf psCfg.sway.enable {
"sway/config.d/10-input-language.conf".source = ./.config/sway/config.d/input-language.conf;
};
home.packages = with pkgs; [
dig
fping
htop
keepassxc
ncdu
sysstat
tig
thunderbird
2022-08-13 09:13:15 +00:00
wakeonlan
2022-05-10 21:07:20 +00:00
wlr-randr
2022-01-22 21:14:30 +00:00
];
programs.ssh = {
enable = true;
matchBlocks = {
"hsha" = {
hostname = "192.168.42.5";
user = "root";
port = 2222;
};
"media" = {
hostname = "192.168.42.11";
user = "root";
port = 2222;
};
"ringo" = {
hostname = "192.168.42.231";
user = "hensoko";
port = 22;
};
"giggles" = {
hostname = "192.168.42.232";
user = "hensoko";
port = 22;
};
"norman" = {
hostname = "192.168.42.233";
user = "hensoko";
port = 22;
};
"cox" = {
hostname = "192.168.42.234";
user = "hensoko";
port = 22;
};
2022-08-13 09:13:15 +00:00
"cube" = {
hostname = "80.244.242.2";
user = "hensoko";
2022-01-22 21:14:30 +00:00
port = 2222;
};
2022-08-13 09:13:15 +00:00
"mail" = {
hostname = "mail.gssws.de";
2022-01-22 21:14:30 +00:00
user = "root";
port = 2222;
};
2022-08-13 09:13:15 +00:00
"git" = {
2022-01-22 21:14:30 +00:00
hostname = "git.gssws.de";
user = "git";
port = 2222;
};
};
extraConfig = "PubKeyAcceptedKeyTypes +ssh-rsa";
};
};
}