feat: integrate nix-citizen and star-citizen support in NixOS configuration

This commit is contained in:
2026-06-28 12:10:01 +02:00
parent 1b44016dab
commit c2e5500051
10 changed files with 393 additions and 82 deletions
+9 -1
View File
@@ -1,6 +1,8 @@
{config, ...}: {
imports = [
# Mostly system related configuration
# ─────────────────────────────────────────────────────────────
# System configuration
# ─────────────────────────────────────────────────────────────
../../nixos/audio.nix
../../nixos/bluetooth.nix
../../nixos/fonts.nix
@@ -13,8 +15,14 @@
../../nixos/utils.nix
../../nixos/hyprland.nix
# ─────────────────────────────────────────────────────────────
# Graphics Card
# ─────────────────────────────────────────────────────────────
../../nixos/amd-graphics.nix
# ─────────────────────────────────────────────────────────────
# System integration for Steam
# ─────────────────────────────────────────────────────────────
../../nixos/steam.nix
# You should let those lines as is
+21 -2
View File
@@ -3,16 +3,35 @@
nixpkgs,
...
}:
nixpkgs.lib.nixosSystem {
modules = [
{
nixpkgs.overlays = [];
_module.args = {inherit inputs;};
_module.args = {
inherit inputs;
};
}
({ config, pkgs, lib, ... }: {
# ─────────────────────────────────────────────────────────────
# AMD Microcode
# ─────────────────────────────────────────────────────────────
hardware.cpu.amd.updateMicrocode = true;
# ─────────────────────────────────────────────────────────────
# Hardware accelaration
# ─────────────────────────────────────────────────────────────
hardware.graphics = {
enable = true;
enable32Bit = true;
};
})
inputs.home-manager.nixosModules.home-manager
inputs.stylix.nixosModules.stylix
inputs.nix-index-database.nixosModules.default
inputs.helium-browser.nixosModules.default
./configuration.nix
];
}
+14 -3
View File
@@ -1,6 +1,8 @@
{config, ...}: {
imports = [
# ─────────────────────────────────────────────────────────────
# Programs
# ─────────────────────────────────────────────────────────────
../../home/programs/ghostty
../../home/programs/nvf
../../home/programs/shell
@@ -12,14 +14,24 @@
../../home/programs/nix-utils
../../home/programs/spotatui
../../home/programs/yazi
../../home/programs/steam
# ─────────────────────────────────────────────────────────────
# Gaming
# ─────────────────────────────────────────────────────────────
../../home/programs/steam
../../home/programs/star-citizen
# ─────────────────────────────────────────────────────────────
# Groups
# ─────────────────────────────────────────────────────────────
../../home/programs/group/basic-apps.nix
../../home/programs/group/dev.nix
../../home/programs/group/misc.nix
../../home/programs/group/gaming-apps.nix
# System (Desktop environment like stuff)
# ─────────────────────────────────────────────────────────────
# System
# ─────────────────────────────────────────────────────────────
../../home/system/hyprland
../../home/system/caelestia-shell
../../home/system/hyprpaper
@@ -27,7 +39,6 @@
../../home/system/udiskie
./variables.nix # Mostly user-specific configuration
#./secrets # CHANGEME: You should probably remove this line, this is where I store my secrets
];
home = {
+27 -24
View File
@@ -1,29 +1,32 @@
{ config, ... }:
{ config, ... }: {
imports = [
# ─────────────────────────────────────────────────────────────
# System configuration
# ─────────────────────────────────────────────────────────────
../../nixos/audio.nix
../../nixos/bluetooth.nix
../../nixos/fonts.nix
../../nixos/home-manager.nix
../../nixos/nix.nix
../../nixos/systemd-boot.nix
../../nixos/tuigreet.nix
../../nixos/users.nix
../../nixos/utils.nix
../../nixos/hyprland.nix
{
imports = [
# System configuration
../../nixos/audio.nix
../../nixos/bluetooth.nix
../../nixos/fonts.nix
../../nixos/home-manager.nix
../../nixos/nix.nix
../../nixos/systemd-boot.nix
../../nixos/tuigreet.nix
../../nixos/users.nix
../../nixos/utils.nix
../../nixos/hyprland.nix
# ─────────────────────────────────────────────────────────────
# System integration for Steam
# ─────────────────────────────────────────────────────────────
../../nixos/steam.nix
../../nixos/steam.nix
# You should let those lines as is
./hardware-configuration.nix
./variables.nix
# Machine-specific files
./hardware-configuration.nix
./variables.nix
];
];
home-manager.users."${config.var.username}" = import ./home.nix;
services.flatpak.enable = true;
system.stateVersion = "24.05";
home-manager.users."${config.var.username}" = import ./home.nix;
services.flatpak.enable = true;
# Don't touch this
system.stateVersion = "24.05";
}
+12 -5
View File
@@ -14,21 +14,29 @@ nixpkgs.lib.nixosSystem {
}
({ config, pkgs, lib, ... }: {
# Intel microcode
# ─────────────────────────────────────────────────────────────
# Intel Microcode
# ─────────────────────────────────────────────────────────────
hardware.cpu.intel.updateMicrocode = true;
# Graphics support
# ─────────────────────────────────────────────────────────────
# Hardware accelaration
# ─────────────────────────────────────────────────────────────
hardware.graphics = {
enable = true;
enable32Bit = true;
};
# Power management
# ─────────────────────────────────────────────────────────────
# Power management
# ─────────────────────────────────────────────────────────────
powerManagement.cpuFreqGovernor = "powersave";
services.tlp.enable = true;
services.power-profiles-daemon.enable = false;
# Kernel modules commonly needed on ThinkPads
# ─────────────────────────────────────────────────────────────
# Kernel modules commonly needed on ThinkPads
# ─────────────────────────────────────────────────────────────
boot.kernelModules = [
"i915"
"snd_hda_intel"
@@ -39,7 +47,6 @@ nixpkgs.lib.nixosSystem {
inputs.home-manager.nixosModules.home-manager
inputs.stylix.nixosModules.stylix
inputs.nix-index-database.nixosModules.default
inputs.helium-browser.nixosModules.default
./configuration.nix
];
+12 -1
View File
@@ -1,6 +1,8 @@
{config, ...}: {
imports = [
# ─────────────────────────────────────────────────────────────
# Programs
# ─────────────────────────────────────────────────────────────
../../home/programs/ghostty
../../home/programs/nvf
../../home/programs/shell
@@ -12,13 +14,22 @@
../../home/programs/nix-utils
../../home/programs/spotatui
../../home/programs/yazi
# ─────────────────────────────────────────────────────────────
# Gaming
# ─────────────────────────────────────────────────────────────
../../home/programs/steam
# ─────────────────────────────────────────────────────────────
# Groups
# ─────────────────────────────────────────────────────────────
../../home/programs/group/basic-apps.nix
../../home/programs/group/dev.nix
../../home/programs/group/misc.nix
# System (Desktop environment like stuff)
# ─────────────────────────────────────────────────────────────
# System
# ─────────────────────────────────────────────────────────────
../../home/system/hyprland
../../home/system/caelestia-shell
../../home/system/hyprpaper