Update FredOS-Gaming.nix
This commit is contained in:
parent
77e32070bd
commit
aeffd92032
1 changed files with 12 additions and 21 deletions
|
|
@ -1,36 +1,29 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
# The outer curly braces define the attribute set returned by the module.
|
|
||||||
# Since we are using lib.mkIf, we'll use lib.mkMerge to allow the attribute set
|
|
||||||
# to be merged with any other configuration (if you had other files).
|
|
||||||
# The simplest approach is often to wrap the *entire* definition in lib.mkIf.
|
|
||||||
|
|
||||||
(lib.mkIf (config.networking.hostName == "FredOS-Gaming") {
|
(lib.mkIf (config.networking.hostName == "FredOS-Gaming") {
|
||||||
|
|
||||||
# 1. Define the 32-bit package set (lib32)
|
|
||||||
nixpkgs.config.packageOverrides = pkgs: {
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
pkgs = pkgs // {
|
pkgs = pkgs // {
|
||||||
lib32 = pkgs.pkgsi686Linux.pkgs;
|
lib32 = pkgs.pkgsi686Linux.pkgs;
|
||||||
};
|
};
|
||||||
};
|
}; # <--- ADD SEMICOLON HERE
|
||||||
|
|
||||||
# 2. Use the packages
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
lutris
|
lutris
|
||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
nix-index
|
nix-index
|
||||||
libdecor
|
libdecor
|
||||||
pkgs.lib32.libdecor # <--- CORRECT: Access via pkgs.lib32
|
pkgs.lib32.libdecor
|
||||||
];
|
]; # <--- ADD SEMICOLON HERE
|
||||||
|
|
||||||
# 3. Graphics configuration
|
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
};
|
}; # <--- ADD SEMICOLON HERE
|
||||||
|
|
||||||
# 4. Steam configuration
|
# ... continue adding semicolons to the end of every top-level option ...
|
||||||
programs.steam = {
|
|
||||||
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
package = pkgs.steam.override {
|
package = pkgs.steam.override {
|
||||||
|
|
@ -38,15 +31,13 @@
|
||||||
kdePackages.breeze
|
kdePackages.breeze
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
}; # <--- ADD SEMICOLON HERE
|
||||||
|
|
||||||
# 5. Environment Variables
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
LIBDECOR_PLUGIN_DIR = "${pkgs.libdecor}/lib/libdecor/plugins-1";
|
LIBDECOR_PLUGIN_DIR = "${pkgs.libdecor}/lib/libdecor/plugins-1";
|
||||||
GTK_PATH = "${pkgs.gtk3}/lib/gtk-3.0:${pkgs.gtk4}/lib/gtk-4.0";
|
GTK_PATH = "${pkgs.gtk3}/lib/gtk-3.0:${pkgs.gtk4}/lib/gtk-4.0";
|
||||||
};
|
}; # <--- ADD SEMICOLON HERE
|
||||||
|
|
||||||
# 6. Auto-Upgrade configuration
|
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dates = "daily";
|
dates = "daily";
|
||||||
|
|
@ -56,6 +47,6 @@
|
||||||
"--upgrade"
|
"--upgrade"
|
||||||
"--option" "tarball-ttl" "0"
|
"--option" "tarball-ttl" "0"
|
||||||
];
|
];
|
||||||
};
|
}; # <--- ADD SEMICOLON HERE
|
||||||
# This closing brace and parenthesis ends the attribute set and the lib.mkIf function call
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue