Skip to content

Commit

Permalink
div nixos changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKnarf committed Nov 2, 2024
1 parent fd4a976 commit 40d9ef2
Show file tree
Hide file tree
Showing 9 changed files with 163 additions and 47 deletions.
148 changes: 103 additions & 45 deletions os/nixos/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion os/nixos/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
description = "NixOS and Home-manager config";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs = {
#url = "github:nixos/nixpkgs/nixos-unstable";
url = "github:jopejoe1/nixpkgs/alvr-src";
};

home-manager = {
url = "github:nix-community/home-manager";
Expand Down
4 changes: 4 additions & 0 deletions os/nixos/home-manager/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
# Other
pkgs.webtorrent_desktop
pkgs.obsidian

# Games
#pkgs.minecraft
pkgs.atlauncher
];

}
2 changes: 1 addition & 1 deletion os/nixos/host/mods/audio-video.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
};

# Sound
sound.enable = false;
#sound.enable = false;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
Expand Down
16 changes: 16 additions & 0 deletions os/nixos/host/mods/gnome-x11.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,27 @@

displayManager = {
gdm.enable = true;
gdm.autoSuspend = false;
gdm.wayland = false;
};

desktopManager = {
gnome.enable = true;
};
};

services.autosuspend.enable = false;

# ref https://github.com/NixOS/nixpkgs/issues/100390#issuecomment-867830400
security.polkit.extraConfig = ''
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.login1.suspend" ||
action.id == "org.freedesktop.login1.suspend-multiple-sessions" ||
action.id == "org.freedesktop.login1.hibernate" ||
action.id == "org.freedesktop.login1.hibernate-multiple-sessions")
{
return polkit.Result.NO;
}
});
'';
}
12 changes: 12 additions & 0 deletions os/nixos/host/mods/moonlight.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ config, pkgs, ... }:

{
environment.systemPackages = with pkgs; [
];

services.sunshine = {
enable = true;
capSysAdmin = true;
openFirewall = true;
};
}
14 changes: 14 additions & 0 deletions os/nixos/host/mods/steam.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
];

programs.gamemode.enable = true;
programs.gamescope.enable = true;

hardware.steam-hardware.enable = true;

programs.steam = {
enable = true;
Expand All @@ -19,4 +22,15 @@

gamescopeSession.enable = true;
};

# VR
programs.alvr = {
enable = true;
openFirewall = true;
};

#pkgs.alvr.override {

#};

}
Loading

0 comments on commit 40d9ef2

Please sign in to comment.