This commit is contained in:
2023-02-25 05:36:06 +00:00
parent b37e1ad042
commit d66e0951d4
4 changed files with 91 additions and 45 deletions

View File

@@ -1,4 +1,25 @@
{ lib, config, pkgs, ... }: {
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{ inputs, outputs, lib, config, pkgs, ... }: {
imports = [
];
nixpkgs = {
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
# Workaround for https://github.com/nix-community/home-manager/issues/2942
allowUnfreePredicate = (_: true);
};
};
home.username = "sstent";
home.homeDirectory = "/home/sstent";
@@ -8,9 +29,9 @@
programs.home-manager.enable = true;
home.packages = with pkgs; [
autossh
azure-cli
# azure-cli
ansible
sshpass
# sshpass
(import ./packages/python-packages.nix { pkgs = pkgs; })
pyinfra
sshpass
@@ -26,12 +47,13 @@
mr
perl
# beets
qemu_kvm
nixos-generators
# qemu_kvm
# nixos-generators
nixfmt
deploy-rs
# deploy-rs
];
services.ssh-proxy.enable = true;
services.keybase.enable = true;
services.kbfs.enable = true;
@@ -100,22 +122,22 @@ programs = {
};
};
systemd.user = {
# systemd.user = {
startServices = true;
# startServices = true;
services.ssh-proxy = {
Unit = { Description = "WSL Proxy"; };
Service = {
ExecStart = "${pkgs.writeShellScript "start-proxy" ''
set -x
${pkgs.coreutils}/bin/rm -f /home/sstent/.ssh/wsl-ssh-agent.sock
${pkgs.util-linux}/bin/setsid ${pkgs.socat}/bin/socat UNIX-LISTEN:/home/sstent/.ssh/wsl-ssh-agent.sock,fork EXEC:"${pkgs.npiperelay}/bin/npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork
''}";
};
#Install = { WantedBy = [ "default.target" ]; };
};
};
# services.ssh-proxy = {
# Unit = { Description = "WSL Proxy"; };
# Service = {
# ExecStart = "${pkgs.writeShellScript "start-proxy" ''
# set -x
# ${pkgs.coreutils}/bin/rm -f /home/sstent/.ssh/wsl-ssh-agent.sock
# ${pkgs.util-linux}/bin/setsid ${pkgs.socat}/bin/socat UNIX-LISTEN:/home/sstent/.ssh/wsl-ssh-agent.sock,fork EXEC:"${pkgs.npiperelay}/bin/npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork
# ''}";
# };
# #Install = { WantedBy = [ "default.target" ]; };
# };
# };
}
# homeage = {