51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
home.username = "user";
|
|
home.homeDirectory = "/home/user";
|
|
home.stateVersion = "26.05";
|
|
|
|
home.packages = [
|
|
pkgs.opencode
|
|
pkgs.ncdu
|
|
pkgs.nano
|
|
pkgs.tinfoil-proxy
|
|
];
|
|
|
|
home.file = {
|
|
".config/starship.toml".source = ../config/starship.toml;
|
|
".config/nix/nix.conf".source = ../config/nix.conf;
|
|
".config/opencode/opencode.jsonc".source = ../config/opencode.jsonc;
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
NIX_SHELL_PRESERVE_PROMPT = "true";
|
|
};
|
|
|
|
programs.bash = {
|
|
enable = true;
|
|
initExtra = ''
|
|
if [[ $- == *i* ]]; then
|
|
exec fish
|
|
fi
|
|
'';
|
|
};
|
|
programs.fish.enable = true;
|
|
programs.tmux.enable = true;
|
|
programs.starship.enable = true;
|
|
programs.home-manager.enable = true;
|
|
|
|
systemd.user.services.tinfoil-proxy = {
|
|
Unit = {
|
|
Description = "Tinfoil local proxy (verified connection to Tinfoil enclaves)";
|
|
After = [ "network-online.target" ];
|
|
Wants = [ "network-online.target" ];
|
|
};
|
|
Service = {
|
|
ExecStart = "${pkgs.tinfoil-proxy}/bin/tinfoil-proxy";
|
|
Restart = "on-failure";
|
|
RestartSec = 5;
|
|
};
|
|
Install.WantedBy = [ "default.target" ];
|
|
};
|
|
} |