mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-15 20:07:55 +08:00
Docker, protonvpn
This commit is contained in:
parent
a938b312f9
commit
a83555b578
3 changed files with 26 additions and 3 deletions
19
features/protonvpn.nix
Normal file
19
features/protonvpn.nix
Normal 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" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue