mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
fix vpn1 config
This commit is contained in:
parent
c1e4cdb929
commit
ec2166ec2d
|
@ -1,11 +1,6 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
config = {
|
config = {
|
||||||
nixpkgs.config = {
|
nixpkgs.config.allowUnfree = true;
|
||||||
allowUnfree = true;
|
|
||||||
permittedInsecurePackages = [
|
|
||||||
"electron-12.2.3"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
stateVersion = "22.11";
|
stateVersion = "22.11";
|
||||||
|
|
|
@ -105,5 +105,9 @@ in {
|
||||||
ncdu
|
ncdu
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"electron-12.2.3"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,32 +7,43 @@
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.cleanTmpDir = true;
|
config = {
|
||||||
zramSwap.enable = true;
|
boot = {
|
||||||
networking.domain = "";
|
tmp.cleanOnBoot = true;
|
||||||
|
loader = {
|
||||||
boot.loader.grub = {
|
systemd-boot.enable = lib.mkForce false;
|
||||||
|
efi.canTouchEfiVariables = lib.mkForce false;
|
||||||
|
grub = {
|
||||||
|
enable = true;
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
efiInstallAsRemovable = true;
|
efiInstallAsRemovable = true;
|
||||||
device = "nodev";
|
device = "nodev";
|
||||||
};
|
};
|
||||||
fileSystems."/boot" = {
|
};
|
||||||
|
initrd = {
|
||||||
|
availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"];
|
||||||
|
kernelModules = ["nvme"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
zramSwap.enable = true;
|
||||||
|
networking.domain = "";
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/boot" = {
|
||||||
device = "/dev/disk/by-uuid/77CF-345D";
|
device = "/dev/disk/by-uuid/77CF-345D";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"];
|
"/" = {
|
||||||
boot.initrd.kernelModules = ["nvme"];
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/sda1";
|
device = "/dev/sda1";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# This file was populated at runtime with the networking
|
# This file was populated at runtime with the networking
|
||||||
# details gathered from the active system.
|
# details gathered from the active system.
|
||||||
networking = {
|
networking = {
|
||||||
nameservers = [
|
nameservers = ["8.8.8.8"];
|
||||||
"8.8.8.8"
|
|
||||||
];
|
|
||||||
defaultGateway = "172.31.1.1";
|
defaultGateway = "172.31.1.1";
|
||||||
defaultGateway6 = {
|
defaultGateway6 = {
|
||||||
address = "fe80::1";
|
address = "fe80::1";
|
||||||
|
@ -42,13 +53,22 @@
|
||||||
usePredictableInterfaceNames = lib.mkForce false;
|
usePredictableInterfaceNames = lib.mkForce false;
|
||||||
interfaces = {
|
interfaces = {
|
||||||
eth0 = {
|
eth0 = {
|
||||||
ipv4.addresses = [
|
ipv4 = {
|
||||||
|
addresses = [
|
||||||
{
|
{
|
||||||
address = "157.90.146.125";
|
address = "157.90.146.125";
|
||||||
prefixLength = 32;
|
prefixLength = 32;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
ipv6.addresses = [
|
routes = [
|
||||||
|
{
|
||||||
|
address = "172.31.1.1";
|
||||||
|
prefixLength = 32;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
ipv6 = {
|
||||||
|
addresses = [
|
||||||
{
|
{
|
||||||
address = "2a01:4f8:c012:7137::1";
|
address = "2a01:4f8:c012:7137::1";
|
||||||
prefixLength = 64;
|
prefixLength = 64;
|
||||||
|
@ -58,13 +78,7 @@
|
||||||
prefixLength = 64;
|
prefixLength = 64;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
ipv4.routes = [
|
routes = [
|
||||||
{
|
|
||||||
address = "172.31.1.1";
|
|
||||||
prefixLength = 32;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
ipv6.routes = [
|
|
||||||
{
|
{
|
||||||
address = "fe80::1";
|
address = "fe80::1";
|
||||||
prefixLength = 128;
|
prefixLength = 128;
|
||||||
|
@ -73,8 +87,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
ATTR{address}=="96:00:02:87:7f:c9", NAME="eth0"
|
ATTR{address}=="96:00:02:87:7f:c9", NAME="eth0"
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue