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,
|
2024-12-23 19:22:28 +01:00
|
|
|
outputs,
|
2023-10-26 16:48:06 +02:00
|
|
|
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
|
2024-12-23 19:22:28 +01:00
|
|
|
outputs.nixosModules.vpn-ip
|
2025-01-13 15:13:45 +01:00
|
|
|
inputs.jovian.nixosModules.jovian
|
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
|
|
|
|
|
2025-01-01 21:21:33 +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
|
|
|
|
2024-02-15 22:26:20 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
];
|
|
|
|
|
2024-12-23 19:22:28 +01:00
|
|
|
services.vpn-ip = {
|
|
|
|
ip = "2";
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "GLaDOS";
|
|
|
|
|
2024-02-16 12:59:11 +01:00
|
|
|
services.xserver.videoDrivers = ["amdgpu"];
|
2024-12-22 22:48:13 +01:00
|
|
|
hardware = {
|
|
|
|
# Add vulkan support to GPU
|
|
|
|
graphics.extraPackages = with pkgs; [
|
|
|
|
amdvlk
|
|
|
|
];
|
|
|
|
# For 32 bit applications
|
|
|
|
graphics.extraPackages32 = with pkgs; [
|
|
|
|
driversi686Linux.amdvlk
|
|
|
|
];
|
|
|
|
};
|
|
|
|
programs = {
|
2025-02-13 01:20:32 +01:00
|
|
|
# gamemode.enable = false;
|
|
|
|
# gamemode.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-03-03 16:36:41 +01:00
|
|
|
};
|
2025-01-13 15:13:45 +01:00
|
|
|
|
|
|
|
jovian = {
|
|
|
|
steam = {
|
|
|
|
enable = true;
|
|
|
|
autoStart = false;
|
|
|
|
user = "lillian";
|
|
|
|
desktopSession = "plasma";
|
|
|
|
};
|
|
|
|
decky-loader = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.decky-loader-prerelease;
|
|
|
|
extraPackages = [pkgs.python3];
|
|
|
|
};
|
|
|
|
hardware.has.amd.gpu = true;
|
|
|
|
};
|
|
|
|
|
2024-12-22 22:48:13 +01:00
|
|
|
boot = {
|
2025-02-13 01:20:32 +01:00
|
|
|
loader.systemd-boot.enable = false;
|
2024-12-22 22:48:13 +01:00
|
|
|
};
|
2024-02-15 22:17:04 +01:00
|
|
|
|
2025-02-13 01:20:32 +01:00
|
|
|
boot.lanzaboote = {
|
|
|
|
enable = true;
|
|
|
|
pkiBundle = "/var/lib/sbctl";
|
|
|
|
};
|
2024-02-15 22:17:04 +01:00
|
|
|
|
2024-03-03 16:45:39 +01:00
|
|
|
users.users.lillian.extraGroups = ["gamemode"];
|
|
|
|
|
2023-10-26 16:48:06 +02:00
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
2025-01-22 22:48:12 +01:00
|
|
|
system.stateVersion = "25.05";
|
2023-10-26 16:48:06 +02:00
|
|
|
}
|