flake update
This commit is contained in:
parent
4c30e8a688
commit
9e620c6fb0
3 changed files with 39 additions and 28 deletions
|
@ -3,8 +3,8 @@
|
|||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ lib, config, pkgs, inputs, ... }:
|
||||
let vs = config.vault-secrets.secrets; in
|
||||
{
|
||||
let vs = config.vault-secrets.secrets;
|
||||
in {
|
||||
imports = [ ];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
|
@ -20,14 +20,11 @@ let vs = config.vault-secrets.secrets; in
|
|||
|
||||
environment.noXlibs = lib.mkForce false;
|
||||
|
||||
networking.firewall.allowedUDPPorts = [
|
||||
config.networking.wireguard.interfaces.wg0.listenPort
|
||||
];
|
||||
networking.firewall.allowedUDPPorts =
|
||||
[ config.networking.wireguard.interfaces.wg0.listenPort ];
|
||||
networking.firewall.checkReversePath = false;
|
||||
|
||||
vault-secrets.secrets.wireguard = {
|
||||
services = [ "wireguard-wg0" ];
|
||||
};
|
||||
vault-secrets.secrets.wireguard = { services = [ "wireguard-wg0" ]; };
|
||||
|
||||
networking.nat = {
|
||||
enable = true;
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
efi.canTouchEfiVariables = true;
|
||||
efi.efiSysMountPoint = "/boot/efi";
|
||||
};
|
||||
kernel = { sysctl = { "fs.inotify.max_user_watches" = 524288; }; };
|
||||
kernel.sysctl = { "fs.inotify.max_user_watches" = 524288; };
|
||||
initrd.kernelModules = [ "amdgpu" ];
|
||||
};
|
||||
|
||||
fileSystems."/".options = [ "compress=zstd" ];
|
||||
|
@ -44,8 +45,18 @@
|
|||
LC_TIME = "nl_NL.UTF-8";
|
||||
};
|
||||
|
||||
hardware.opengl.driSupport = true;
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
amdvlk
|
||||
rocm-opencl-icd
|
||||
rocm-opencl-runtime
|
||||
];
|
||||
systemd.tmpfiles.rules =
|
||||
[ "L+ /opt/rocm/hip - - - - ${pkgs.hip}" ];
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
services.xserver.excludePackages = [ pkgs.xterm ];
|
||||
|
||||
# Enable the GNOME Desktop Environment.
|
||||
|
@ -107,10 +118,13 @@
|
|||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnome3.gnome-tweaks
|
||||
gnome.gnome-tweaks
|
||||
gnome.gnome-boxes
|
||||
wireguard-tools
|
||||
];
|
||||
|
||||
networking.firewall.checkReversePath = false;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.victor = {
|
||||
isNormalUser = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue