mirror of
https://github.com/sstent/vmimages.git
synced 2026-02-04 11:32:07 +00:00
addin ssh key
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
|
||||
{ inputs, outputs, lib, config, pkgs, hostName, ... }:
|
||||
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
hostName,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
../../global.nix
|
||||
];
|
||||
@@ -10,7 +15,7 @@
|
||||
home.stateVersion = "23.05";
|
||||
|
||||
sops = {
|
||||
age.sshKeyPaths = [ "/home/sstent/.ssh/id_ed25519" ];
|
||||
age.sshKeyPaths = ["/home/sstent/.ssh/id_ed25519"];
|
||||
defaultSopsFile = "${config._secretstore}/user-secrets.yaml";
|
||||
secrets = {
|
||||
mrconfig = {
|
||||
@@ -18,11 +23,9 @@
|
||||
format = "binary";
|
||||
path = "${config.home.homeDirectory}/.mrconfig";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
# home.file."/home/sstent/.config/beets/test".source = config.lib.file.mkOutOfStoreSymlink /run/user/1000/secrets/test;
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
@@ -33,7 +36,7 @@
|
||||
bitwarden-cli
|
||||
ansible
|
||||
# sshpass
|
||||
(import ./python-packages.nix { pkgs = pkgs; })
|
||||
(import ./python-packages.nix {pkgs = pkgs;})
|
||||
pyinfra
|
||||
sshpass
|
||||
nmap
|
||||
@@ -73,8 +76,8 @@
|
||||
yt-dlp.enable = true;
|
||||
bash = {
|
||||
enable = true;
|
||||
historyControl = [ "ignorespace" ];
|
||||
shellOptions = [ "histappend" ];
|
||||
historyControl = ["ignorespace"];
|
||||
shellOptions = ["histappend"];
|
||||
sessionVariables = {
|
||||
DOCKER_HOST = "tcp://192.168.1.223:2375";
|
||||
NOMAD_ADDR = "http://192.168.1.250:4646";
|
||||
@@ -84,7 +87,7 @@
|
||||
PROMPT_COMMAND = "history -a;"; # ensure synchronization between bash memory and history file
|
||||
SSH_AUTH_SOCK = "/home/sstent/.ssh/wsl-ssh-agent.sock";
|
||||
};
|
||||
bashrcExtra = ''
|
||||
bashrcExtra = ''
|
||||
if [ -e /home/sstent/.nix-profile/etc/profile.d/nix.sh ]; then . /home/sstent/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
||||
# ssh-add -l
|
||||
export PATH=$PATH:/bin #Fix for wslpath
|
||||
@@ -95,8 +98,7 @@
|
||||
enable = true;
|
||||
userName = "sstent";
|
||||
userEmail = "stuart.stent@gmail.com";
|
||||
extraConfig = { pull.rebase = true; };
|
||||
|
||||
extraConfig = {pull.rebase = true;};
|
||||
};
|
||||
ssh = {
|
||||
enable = true;
|
||||
@@ -114,9 +116,7 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#######If Gnome
|
||||
# config = lib.mkIf config.mymods.gnome.enable {
|
||||
# programs.bash.enable = true;
|
||||
@@ -166,7 +166,6 @@
|
||||
# ];
|
||||
# };
|
||||
# "org/gnome/desktop/interface" = { color-scheme = "prefer-dark"; };
|
||||
|
||||
# };
|
||||
# };
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ pkgs }:
|
||||
|
||||
pkgs.python3.withPackages (p: with p; [
|
||||
requests # HTTP library
|
||||
setuptools # setup.py
|
||||
paramiko # ssh library
|
||||
])
|
||||
{pkgs}:
|
||||
pkgs.python3.withPackages (p:
|
||||
with p; [
|
||||
requests # HTTP library
|
||||
setuptools # setup.py
|
||||
paramiko # ssh library
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user