rekey and other stuff
This commit is contained in:
@@ -5,11 +5,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
imports = [ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
custom = {
|
||||
#tmpfs.enable = true;
|
||||
@@ -51,15 +49,34 @@
|
||||
nightlight.enable = true;
|
||||
i3.enable = true;
|
||||
shared.enable = true;
|
||||
games = {
|
||||
enable = true;
|
||||
};
|
||||
games = { enable = true; };
|
||||
};
|
||||
};
|
||||
mainUser.layout = "de";
|
||||
mainUser.variant = "us";
|
||||
|
||||
virtualisation.vmware.host.enable = true;
|
||||
virtualisation.vmware.host.enable = true;
|
||||
|
||||
systemd.services.start-vm = {
|
||||
description = "Start VM";
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network.target" "network-online.target" "vmware-networks.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "forking"; #?????? doesnt work without it, thanks vmware
|
||||
ExecStart = let
|
||||
script = pkgs.writeShellScript "start-vm" ''
|
||||
${pkgs.vmware-workstation}/bin/vmrun start /root/vmware/server/server.vmx nogui
|
||||
'';
|
||||
in "${script}";
|
||||
User = "root";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
ProtectHome = false;
|
||||
ProtectSystem = false;
|
||||
};
|
||||
};
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
@@ -70,7 +87,7 @@
|
||||
|
||||
#zenpower for ryzen
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
|
||||
boot.kernelModules = ["zenpower"];
|
||||
boot.kernelModules = [ "zenpower" ];
|
||||
boot.blacklistedKernelModules = [ "k10temp" ];
|
||||
|
||||
services.xserver.desktopManager = {
|
||||
@@ -96,4 +113,3 @@
|
||||
system.stateVersion = "24.05"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -23,17 +23,6 @@
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
fileSystems."/data" = {
|
||||
device = "/dev/disk/by-uuid/d117419d-fce9-4d52-85c7-e3481feaa22a";
|
||||
fsType = "btrfs";
|
||||
options = [ "compress=zstd" "noatime" "nofail" ];
|
||||
};
|
||||
fileSystems."/1tbssd" = {
|
||||
device = "/dev/disk/by-uuid/801d9217-9c38-4ca8-914e-e31361603892";
|
||||
fsType = "ext4";
|
||||
options = [ "defaults" "nofail" "noatime" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
|
||||
Reference in New Issue
Block a user