refactor *started*
This commit is contained in:
parent
d0413cb830
commit
db2103a37d
103 changed files with 1008 additions and 786 deletions
|
|
@ -8,9 +8,13 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
hostname = "marty-pc";
|
||||
in
|
||||
|
||||
{
|
||||
networking = {
|
||||
hostName = "marty-pc";
|
||||
hostName = hostname;
|
||||
interfaces = {
|
||||
enp42s0 = {
|
||||
wakeOnLan = {
|
||||
|
|
@ -20,7 +24,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
useGlobalPkgs = true;
|
||||
|
|
@ -29,60 +32,9 @@
|
|||
marty = import ./home.nix;
|
||||
};
|
||||
};
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
gamescopeSession.enable = true;
|
||||
protontricks.enable = true;
|
||||
extraCompatPackages = with pkgs; [
|
||||
proton-ge-bin
|
||||
];
|
||||
extraPackages = with pkgs; [
|
||||
gamescope
|
||||
];
|
||||
};
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
};
|
||||
services.flatpak.enable = true;
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
imports = [ ./hardware.nix ];
|
||||
security.polkit = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (
|
||||
subject.isInGroup("users")
|
||||
&& (
|
||||
action.id == "org.freedesktop.login1.suspend"
|
||||
)
|
||||
)
|
||||
{
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
'';
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
qmk
|
||||
qmk-udev-rules
|
||||
qmk_hid
|
||||
via
|
||||
vial
|
||||
imports = [
|
||||
./hardware.nix
|
||||
./custom.nix
|
||||
];
|
||||
|
||||
services.udev = {
|
||||
packages = with pkgs; [
|
||||
qmk
|
||||
qmk-udev-rules
|
||||
qmk_hid
|
||||
via
|
||||
vial
|
||||
];
|
||||
};
|
||||
system.stateVersion = "25.05"; # Did you read the comment?
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue