setup stuff for wireguard server/clients
This commit is contained in:
1
junk.nix
1
junk.nix
@@ -20,6 +20,7 @@
|
|||||||
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"net.ipv6.conf.all.forwarding" = 1;
|
"net.ipv6.conf.all.forwarding" = 1;
|
||||||
|
"net.ipv4.ip_forward" = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "junk"; # Define your hostname.
|
networking.hostName = "junk"; # Define your hostname.
|
||||||
|
|||||||
2
private
2
private
Submodule private updated: b4a7502405...de57dc9538
@@ -3,6 +3,6 @@
|
|||||||
scp ./configuration.nix junk:/etc/nixos
|
scp ./configuration.nix junk:/etc/nixos
|
||||||
scp ./server.nix junk:/etc/nixos
|
scp ./server.nix junk:/etc/nixos
|
||||||
scp ./junk.nix junk:/etc/nixos
|
scp ./junk.nix junk:/etc/nixos
|
||||||
scp ./dnsmasq.hosts junk:/
|
scp ./private/junk.nix junk:/etc/nixos/private
|
||||||
|
|
||||||
ssh junk nixos-rebuild switch
|
ssh junk nixos-rebuild switch
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
};
|
};
|
||||||
users.users.root.hashedPassword = "!";
|
users.users.root.hashedPassword = "!";
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = true;
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
|
|
||||||
# services.flatpak.enable = true;
|
# services.flatpak.enable = true;
|
||||||
|
|||||||
1
x230.nix
1
x230.nix
@@ -5,6 +5,7 @@
|
|||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
<nixos-hardware/lenovo/thinkpad/x230>
|
<nixos-hardware/lenovo/thinkpad/x230>
|
||||||
./workstation.nix
|
./workstation.nix
|
||||||
|
private/x230.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
# Use the GRUB 2 boot loader.
|
||||||
|
|||||||
Reference in New Issue
Block a user