2023-10-26 16:48:06 +02:00
|
|
|
# This is your system's configuration file.
|
|
|
|
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
outputs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
# You can import other NixOS modules here
|
|
|
|
imports = [
|
2023-11-03 21:57:49 +01:00
|
|
|
# Import home-manager's NixOS module
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
2023-10-26 16:48:06 +02:00
|
|
|
# If you want to use modules your own flake exports (from modules/nixos):
|
|
|
|
# outputs.nixosModules.example
|
|
|
|
|
|
|
|
# Or modules from other flakes (such as nixos-hardware):
|
|
|
|
# inputs.hardware.nixosModules.common-cpu-amd
|
|
|
|
# inputs.hardware.nixosModules.common-ssd
|
|
|
|
|
|
|
|
# You can also split up your configuration and import pieces of it here:
|
|
|
|
# ./users.nix
|
|
|
|
|
2024-02-07 13:50:03 +01:00
|
|
|
../../desktop
|
2023-11-13 21:26:22 +01:00
|
|
|
|
2024-02-15 19:37:06 +01:00
|
|
|
../../../disko/GLaDOS
|
|
|
|
|
2023-10-26 16:48:06 +02:00
|
|
|
# Import your generated (nixos-generate-config) hardware configuration
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2024-02-21 12:19:42 +01:00
|
|
|
sops.defaultSopsFile = ./secrets/sops.yaml;
|
|
|
|
|
2024-02-15 22:26:20 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
];
|
|
|
|
|
2024-02-16 12:59:11 +01:00
|
|
|
services.xserver.videoDrivers = ["amdgpu"];
|
|
|
|
|
|
|
|
# Add vulkan support to GPU
|
2024-06-21 23:59:28 +02:00
|
|
|
hardware.graphics.extraPackages = with pkgs; [
|
2024-02-16 12:59:11 +01:00
|
|
|
amdvlk
|
|
|
|
];
|
|
|
|
# For 32 bit applications
|
2024-06-21 23:59:28 +02:00
|
|
|
hardware.graphics.extraPackages32 = with pkgs; [
|
2024-02-16 12:59:11 +01:00
|
|
|
driversi686Linux.amdvlk
|
|
|
|
];
|
|
|
|
|
2024-03-03 16:36:41 +01:00
|
|
|
programs.gamemode = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
general = {
|
|
|
|
renice = 10;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Warning: GPU optimisations have the potential to damage hardware
|
|
|
|
gpu = {
|
|
|
|
apply_gpu_optimisations = "accept-responsibility";
|
|
|
|
gpu_device = 0;
|
|
|
|
amd_performance_level = "high";
|
|
|
|
};
|
|
|
|
|
|
|
|
custom = {
|
|
|
|
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
|
|
|
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-05-20 13:18:35 +02:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
2024-02-15 22:17:04 +01:00
|
|
|
|
2024-05-20 13:18:35 +02:00
|
|
|
# boot.lanzaboote = {
|
|
|
|
# enable = true;
|
|
|
|
# pkiBundle = "/etc/secureboot";
|
|
|
|
# };
|
2024-02-15 22:17:04 +01:00
|
|
|
|
2024-03-03 16:45:39 +01:00
|
|
|
users.users.lillian.extraGroups = ["gamemode"];
|
|
|
|
|
2023-11-03 21:57:49 +01:00
|
|
|
home-manager = {
|
|
|
|
extraSpecialArgs = {inherit inputs outputs;};
|
|
|
|
users = {
|
|
|
|
# Import your home-manager configuration
|
2024-02-07 13:52:23 +01:00
|
|
|
lillian = import ../../../home-manager/hosts/GLaDOS;
|
2023-11-03 21:57:49 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-10-20 19:30:10 +02:00
|
|
|
virtualisation.waydroid.enable = true;
|
2023-11-03 21:57:49 +01:00
|
|
|
networking.hostName = "GLaDOS";
|
2023-10-26 16:48:06 +02:00
|
|
|
|
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
2024-05-25 16:30:53 +02:00
|
|
|
system.stateVersion = "24.11";
|
2023-10-26 16:48:06 +02:00
|
|
|
}
|