Files
nix-flake/hosts/takamaki/home.nix
T
greyweather 9a3530aa6a finish configuration for ssh
- iptables geoip whitelist for ssh
- NOPASSWD for efibootmgr, allowing easy reboot into windows from laptop/phone
- no fastfetch for remote shells
2026-07-16 23:01:20 +01:00

116 lines
2.3 KiB
Nix

{
config,
pkgs,
inputs,
lib,
...
}: let
global-configs = ../../global-configs;
in {
imports = [
# inputs.nixos-millennium.homeManagerModules.default
../../global-home.nix
"${global-configs}/plasma.nix"
"${global-configs}/zen-browser.nix"
"${global-configs}/vscode.nix"
"${global-configs}/zsh.nix"
"${global-configs}/equibop.nix"
"${global-configs}/spicetify.nix"
./configs/easyeffects.nix
./configs/kitty.nix
./configs/fastfetch.nix
];
home.packages = with pkgs; [
prismlauncher
obsidian
github-desktop
thunderbird
unityhub
godot
jetbrains.clion
jetbrains.idea
obs-studio
proton-vpn
ente-auth
winetricks
protontricks
kdePackages.filelight
dconf-editor
mangohud
mangojuice
python3
android-tools
protonplus
];
home.pointerCursor = {
enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
size = 22;
gtk.enable = true;
x11.enable = true;
};
gtk = {
enable = true;
colorScheme = "dark";
gtk2.configLocation = "${config.home.homeDirectory}/.config/.gtkrc-2.0"; # prevents file conflicts between this and other parts of the nix config
gtk2.force = true;
};
programs.ssh = {
settings = {
"sakamoto" = {
HostName = "192.168.0.40";
Port = "22";
User = "grey";
IdentityFile = "~/.ssh/id_sakamoto";
};
};
};
home.activation = {
linkAutostartDir = lib.hm.dag.entryAfter ["writeBoundary"] ''
#!/bin/bash
if [ -d /home/grey/.config/autostart ]; then
rm -rf /home/grey/.config/autostart
fi
ln -s /home/grey/nixos/assets/dotfiles/takamaki/autostart-config /home/grey/.config/autostart
'';
};
home.file.".local/bin/switch-os" = {
enable = true;
force = true;
executable = true;
text = ''
#!/usr/bin/env bash
sudo efibootmgr --bootnext 0000
sudo reboot
'';
};
home.file.".local/bin/universal-shutdown" = {
enable = true;
force = true;
executable = true;
text = ''
#!/usr/bin/env bash
sudo systemctl poweroff
'';
};
home.file.".local/bin/universal-reboot" = {
enable = true;
force = true;
executable = true;
text = ''
#!/usr/bin/env bash
sudo reboot
'';
};
}