Docker, protonvpn

This commit is contained in:
Sridhar Ratnakumar 2021-04-14 19:02:36 -04:00
parent a938b312f9
commit a83555b578
3 changed files with 26 additions and 3 deletions

19
features/protonvpn.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
protonvpn-cli
];
security.sudo.extraRules = [
{
users = [ "srid" ];
commands = [
{
command = "${pkgs.protonvpn-cli}/bin/protonvpn";
options = [ "NOPASSWD" ];
}
];
}
];
}

View file

@ -1,6 +1,9 @@
{ pkgs, ... }: {
virtualisation.lxd.enable = true;
# virtualisation.lxd.enable = true;
virtualisation.docker.enable = true;
users.users.srid = {
extraGroups = [ "lxd" ];
extraGroups = [ "lxd" "docker" ];
};
}

View file

@ -29,6 +29,7 @@
# Features common to all of my machines
./features/passwordstore.nix
./features/syncthing.nix
./features/protonvpn.nix
./features/email
./features/emacs.nix
./features/monitor-brightness.nix
@ -52,7 +53,7 @@
[
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-p53
./features/desktopish
# ./features/virtualization.nix
./features/virtualization.nix
./features/postgrest.nix
];
nixosConfigurations.x1c7 = mkHomeMachine