Compare commits

...

2 Commits

4 changed files with 9 additions and 5 deletions

View File

@ -2,8 +2,10 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, materusArg, ... }: { config, pkgs, materusCfg, materusArg, ... }:
let
unstable = import materusCfg.materusFlake.inputs.nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; nvidia.acceptLicense = true; }; };
in
{ {
imports = imports =
[ [
@ -33,7 +35,7 @@
}; };
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.kernelPackages = pkgs.linuxPackages_zen; boot.kernelPackages = unstable.linuxPackages_zen;
boot.tmp.useTmpfs = true; boot.tmp.useTmpfs = true;
services.flatpak.enable = true; services.flatpak.enable = true;
@ -231,7 +233,7 @@
fonts.fontDir.enable = true; fonts.fontDir.enable = true;
fonts.enableDefaultPackages = true; fonts.enableDefaultPackages = true;
fonts.fonts = with pkgs; [ fonts.packages = with pkgs; [
dejavu_fonts dejavu_fonts
hack-font hack-font
noto-fonts noto-fonts

View File

@ -39,6 +39,7 @@
"wireguard-peer.${materusArg.wireguard.pubKeys.valkyrie}" = { "wireguard-peer.${materusArg.wireguard.pubKeys.valkyrie}" = {
endpoint = "${materusArg.ips.valkyrie}:${materusArg.wireguard.port}"; endpoint = "${materusArg.ips.valkyrie}:${materusArg.wireguard.port}";
allowed-ips = "${materusArg.ip-masks.wireguard.general};"; allowed-ips = "${materusArg.ip-masks.wireguard.general};";
persistent-keepalive = "20";
}; };
ipv4 = { ipv4 = {
address1 = "${materusArg.ips.wireguard.Old-materusPC}/23"; address1 = "${materusArg.ips.wireguard.Old-materusPC}/23";

View File

@ -2,7 +2,7 @@
{ {
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = { hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.latest;
modesetting.enable = true; modesetting.enable = true;
nvidiaSettings = true; nvidiaSettings = true;

View File

@ -54,6 +54,7 @@
"wireguard-peer.${materusArg.wireguard.pubKeys.valkyrie}" = { "wireguard-peer.${materusArg.wireguard.pubKeys.valkyrie}" = {
endpoint = "${materusArg.ips.valkyrie}:${materusArg.wireguard.port}"; endpoint = "${materusArg.ips.valkyrie}:${materusArg.wireguard.port}";
allowed-ips = "${materusArg.ip-masks.wireguard.general};"; allowed-ips = "${materusArg.ip-masks.wireguard.general};";
persistent-keepalive = "20";
}; };
ipv4 = { ipv4 = {
address1 = "${materusArg.ips.wireguard.materusPC}/23"; address1 = "${materusArg.ips.wireguard.materusPC}/23";