rm wg-client. add virt to pc
This commit is contained in:
parent
d07d299ade
commit
934d10580b
7 changed files with 31 additions and 24 deletions
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -1496,11 +1496,11 @@
|
|||
"stylix": "stylix_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1774901524,
|
||||
"narHash": "sha256-bFjoY/aiDxy558zuih65K86YRzzwVBeUcdWlW80TfGA=",
|
||||
"lastModified": 1775227577,
|
||||
"narHash": "sha256-TFSpEicXp49HhF+4HteqTT5cHhddDbP2M/L/e6vHiSI=",
|
||||
"ref": "release-25.11",
|
||||
"rev": "7e5a951877711847300548c2f5aaf42d2b3a1d65",
|
||||
"revCount": 19,
|
||||
"rev": "7a3ecf1545878271b03200515469b0a73121c856",
|
||||
"revCount": 24,
|
||||
"type": "git",
|
||||
"url": "https://git.sid.ovh/sid/synix.git"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@
|
|||
system: modules:
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
modules = [ ./users/sid/home ] + modules;
|
||||
modules = [ ./users/sid/home ] ++ modules;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
./secrets
|
||||
./virtualisation.nix
|
||||
# ./winapps.nix # trying windows-oci for now
|
||||
# ./wireguard.nix # TODO: use NM for client config
|
||||
|
||||
../../users/sid
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [ inputs.synix.nixosModules.wg-client ];
|
||||
|
||||
networking.wg-client = {
|
||||
enable = true;
|
||||
interfaces = {
|
||||
wg0 = {
|
||||
clientAddress = "10.0.0.2";
|
||||
peer = {
|
||||
publicIP = "91.99.172.127";
|
||||
publicKey = "hRrnXl1heROHfpXkHOmjITUpG/ht3omVsWurLcChIS4=";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -12,6 +12,7 @@
|
|||
./packages.nix
|
||||
./secrets
|
||||
./services.nix
|
||||
./virtualisation.nix
|
||||
|
||||
../../users/sid
|
||||
|
||||
|
|
|
|||
24
hosts/pc/virtualisation.nix
Normal file
24
hosts/pc/virtualisation.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ inputs.synix.nixosModules.virtualisation ];
|
||||
|
||||
virtualisation = {
|
||||
libvirtd.deviceACL = [
|
||||
"/dev/kvm"
|
||||
"/dev/net/tun"
|
||||
"/dev/vfio/vfio"
|
||||
"/dev/null"
|
||||
"/dev/ptmx"
|
||||
];
|
||||
hugepages.enable = true;
|
||||
quickemu.enable = true;
|
||||
};
|
||||
|
||||
users.extraGroups.libvirtd.members = [ "sid" ];
|
||||
users.extraGroups.qemu-libvirtd.members = [ "sid" ];
|
||||
users.extraGroups.kvm.members = [ "sid" ];
|
||||
}
|
||||
|
|
@ -20,6 +20,7 @@ in
|
|||
spotify
|
||||
teams-for-linux
|
||||
texliveFull
|
||||
tor-browser
|
||||
xournalpp
|
||||
zotero
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue