Skip to content

Commit

Permalink
Gaming desktop now has jovian
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin John committed Aug 10, 2024
1 parent b0a75a4 commit 819350f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 47 deletions.
2 changes: 1 addition & 1 deletion applications/steam.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ in
};
programs.gamescope = {
enable = true;
capSysNice = true;
#capSysNice = true;
args = [
"-f"
];
Expand Down
44 changes: 0 additions & 44 deletions common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,6 @@
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];

nixpkgs.config = {
overlays = [
(final: prev: rec {
/*
python = prev.python.override {
enableOptimizations = true;
reproducibleBuild = false;
};
python3 = prev.python3.override {
enableOptimizations = true;
reproducibleBuild = false;
};
python313 = prev.python313.override {
enableOptimizations = true;
reproducibleBuild = false;
};
python312 = prev.python312.override {
enableOptimizations = true;
reproducibleBuild = false;
};
python311 = prev.python311.override {
enableOptimizations = true;
reproducibleBuild = false;
};
python310 = prev.python310.override {
enableOptimizations = true;
reproducibleBuild = false;
};
python39 = prev.python39.override {
enableOptimizations = true;
reproducibleBuild = false;
};
pythonPackages = python.pkgs;
python3Packages = python3.pkgs;
python313Packages = python313.pkgs;
python312Packages = python312.pkgs;
python311Packages = python311.pkgs;
python310Packages = python310.pkgs;
python39Packages = python39.pkgs;
*/
})
];
};

boot = {
loader = {
systemd-boot = {
Expand Down
11 changes: 10 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,15 @@
];
};
nixpkgs-patched = getFlake "${nixpkgs-patched-source}";
pkgs = (import nixpkgs-patched { inherit system; config.allowUnfree = true; }); # TODO: Is there a way to put allowUnfree in common.nix?
pkgs = (import nixpkgs-patched {
inherit system;
config = {
allowUnfree = true;
};
overlays = [
inputs.jovian.overlays.default
];
}); # TODO: Is there a way to put allowUnfree in common.nix?
modules = map (s: "${modulesDir}/${s}") (
builtins.attrNames (builtins.readDir modulesDir)
);
Expand All @@ -98,6 +106,7 @@
./common.nix
(hostsDir + "/${hostname}.nix")
inputs.home-manager.nixosModules.default
inputs.jovian.nixosModules.default
] ++ modules;
};
}) hosts
Expand Down
9 changes: 8 additions & 1 deletion hosts/gavin-gaming-desktop.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ nixos-hardware, ... }:
{ nixos-hardware, jovian, ... }:

{
imports = [
Expand All @@ -18,6 +18,13 @@
nixos-hardware.nixosModules.common-pc
nixos-hardware.nixosModules.common-pc-ssd
];

jovian = {
steam.enable = true;
steamos.useSteamOSConfig = true;
hardware.has.amd.gpu = true;
decky-loader.enable = true;
};

boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
Expand Down

0 comments on commit 819350f

Please sign in to comment.