use vpnpass from flake
This commit is contained in:
parent
16c21e9faa
commit
275cc237e8
@ -39,6 +39,7 @@
|
||||
fatrace file
|
||||
gdb git gnumake
|
||||
htop
|
||||
illustris.vpnpass
|
||||
iotop iperf
|
||||
jq
|
||||
killall
|
||||
@ -59,7 +60,6 @@
|
||||
youtube-dl
|
||||
(pass.withExtensions (exts: [ exts.pass-otp ]))
|
||||
((pkgs.callPackage ./packages/passcol) { })
|
||||
(writeScriptBin "vpnpass" (builtins.readFile ./scripts/vpnpass))
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
21
flake.lock
generated
21
flake.lock
generated
@ -21,6 +21,26 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"illustris": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1677273080,
|
||||
"narHash": "sha256-0xvYx6GlbvZhIm/IL7iJD7tKCU77dYbdulq3Af8nHpQ=",
|
||||
"owner": "illustris",
|
||||
"repo": "flake",
|
||||
"rev": "f7035476ecfae1af3a1ea38b2171256ac15cfa76",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "illustris",
|
||||
"repo": "flake",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1676300157,
|
||||
@ -40,6 +60,7 @@
|
||||
"root": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager",
|
||||
"illustris": "illustris",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
|
||||
@ -7,9 +7,13 @@
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
illustris = {
|
||||
url = "github:illustris/flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, ... }: {
|
||||
outputs = { self, nixpkgs, home-manager, illustris, ... }: {
|
||||
nixosConfigurations = {
|
||||
desktop = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
@ -18,6 +22,7 @@
|
||||
home-manager.nixosModule
|
||||
{nix.registry.np.flake = nixpkgs;}
|
||||
{environment.etc.flake.source = self;}
|
||||
{nixpkgs.overlays = [ illustris.overlays.default ];}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@ -1,15 +0,0 @@
|
||||
#!/usr/bin/env expect
|
||||
set conf [lindex $argv 0];
|
||||
set user [lindex $argv 1];
|
||||
set pass_pw [lindex $argv 2];
|
||||
set pass_otp [lindex $argv 3];
|
||||
spawn sudo openvpn --config $conf
|
||||
expect "Enter Auth Username:"
|
||||
send "$user\n"
|
||||
expect "Enter Auth Password:"
|
||||
set pw [exec pass "$pass_pw"]
|
||||
send "$pw\n"
|
||||
expect "Enter Google Authenticator Code"
|
||||
set otp [exec pass otp "$pass_otp"]
|
||||
send "$otp\n"
|
||||
interact
|
||||
Loading…
x
Reference in New Issue
Block a user