feat: add gaming role
All checks were successful
/ test (push) Successful in 31s

This commit is contained in:
Nydragon 2025-01-30 18:39:04 +01:00
parent 957073153b
commit 554e706717
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
8 changed files with 64 additions and 31 deletions

40
flake.lock generated
View file

@ -10,11 +10,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1723293904, "lastModified": 1736955230,
"narHash": "sha256-b+uqzj+Wa6xgMS9aNbX4I+sXeb5biPDi39VgvSFqFvU=", "narHash": "sha256-uenf8fv2eG5bKM8C/UvFaiJMZ4IpUFaQxk9OH5t/1gA=",
"owner": "ryantm", "owner": "ryantm",
"repo": "agenix", "repo": "agenix",
"rev": "f6291c5935fdc4e0bef208cfc0dcab7e3f7a1c41", "rev": "e600439ec4c273cf11e06fe4d9d906fb98fa097c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -52,11 +52,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1733168902, "lastModified": 1737038063,
"narHash": "sha256-8dupm9GfK+BowGdQd7EHK5V61nneLfr9xR6sc5vtDi0=", "narHash": "sha256-rMEuiK69MDhjz1JgbaeQ9mBDXMJ2/P8vmOYRbFndXsk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "785c1e02c7e465375df971949b8dcbde9ec362e5", "rev": "bf0abfde48f469c256f2b0f481c6281ff04a5db2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -72,11 +72,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1733312601, "lastModified": 1736143030,
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=", "narHash": "sha256-+hu54pAoLDEZT9pjHlqL9DNzWz0NbUn8NEAHP7PQPzU=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9", "rev": "b905f6fc23a9051a6e1b741e1438dbfc0634c6de",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -110,11 +110,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1733873195, "lastModified": 1737762889,
"narHash": "sha256-dTosiZ3sZ/NKoLKQ++v8nZdEHya0eTNEsaizNp+MUPM=", "narHash": "sha256-5HGG09bh/Yx0JA8wtBMAzt0HMCL1bYZ93x4IqzVExio=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "f26aa4b76fb7606127032d33ac73d7d507d82758", "rev": "daf04c5950b676f47a794300657f1d3d14c1a120",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -125,11 +125,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1733861262, "lastModified": 1737751639,
"narHash": "sha256-+jjPup/ByS0LEVIrBbt7FnGugJgLeG9oc+ivFASYn2U=", "narHash": "sha256-ZEbOJ9iT72iwqXsiEMbEa8wWjyFvRA9Ugx8utmYbpz4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "cf737e2eba82b603f54f71b10cb8fd09d22ce3f5", "rev": "dfad538f751a5aa5d4436d9781ab27a6128ec9d4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -169,11 +169,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1733759999, "lastModified": 1737885589,
"narHash": "sha256-463SNPWmz46iLzJKRzO3Q2b0Aurff3U1n0nYItxq7jU=", "narHash": "sha256-Zf0hSrtzaM1DEz8//+Xs51k/wdSajticVrATqDrfQjg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a73246e2eef4c6ed172979932bc80e1404ba2d56", "rev": "852ff1d9e153d8875a83602e03fdef8a63f0ecf8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -218,11 +218,11 @@
"rev": "9208515d0f98f26291a023c4b5ca6e546784da74", "rev": "9208515d0f98f26291a023c4b5ca6e546784da74",
"revCount": 3, "revCount": 3,
"type": "git", "type": "git",
"url": "https://git.ccnlc.eu/Nydragon/packages.git" "url": "https://git.ccnlc.eu/nydragon/packages.git"
}, },
"original": { "original": {
"type": "git", "type": "git",
"url": "https://git.ccnlc.eu/Nydragon/packages.git" "url": "https://git.ccnlc.eu/nydragon/packages.git"
} }
}, },
"quickshell": { "quickshell": {

View file

@ -32,7 +32,7 @@
}; };
packages = { packages = {
url = "git+https://git.ccnlc.eu/Nydragon/packages.git"; url = "git+https://git.ccnlc.eu/nydragon/packages.git";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };

View file

@ -18,7 +18,10 @@
fs.nfsEnable = true; fs.nfsEnable = true;
system = { system = {
roles.desktop.enable = true; roles = {
desktop.enable = true;
gaming.enable = true;
};
outputs = { outputs = {
eDP-1 = { eDP-1 = {
@ -94,6 +97,11 @@
}; };
}; };
hardware.sane = {
enable = true;
extraBackends = [ pkgs.hplipWithPlugin ];
};
services = { services = {
displayManager.sddm.enable = true; displayManager.sddm.enable = true;
dbus.enable = true; dbus.enable = true;
@ -153,8 +161,14 @@
virtualisation = { virtualisation = {
libvirtd.enable = true; libvirtd.enable = true;
docker = {
enable = true;
rootless.enable = true;
};
}; };
programs.virt-manager.enable = true;
programs.nix-ld.enable = true; programs.nix-ld.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View file

@ -58,6 +58,9 @@
signal-desktop signal-desktop
onlyoffice-desktopeditors onlyoffice-desktopeditors
picard picard
simple-scan
insomnia
beekeeper-studio
# Proprietary # Proprietary
postman postman

View file

@ -2,8 +2,13 @@
{ {
imports = [ ./overlays.nix ]; imports = [ ./overlays.nix ];
nixpkgs.config = { nixpkgs = {
allowUnfree = true; config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-31.7.7"
];
};
}; };
nix = { nix = {

View file

@ -4,7 +4,6 @@
./thunderbird.nix ./thunderbird.nix
./sway.nix ./sway.nix
./lazygit.nix ./lazygit.nix
./steam.nix
./hyprland.nix ./hyprland.nix
./ssh.nix ./ssh.nix
./fish.nix ./fish.nix

View file

@ -2,5 +2,6 @@
imports = [ imports = [
./terminal.nix ./terminal.nix
./desktop.nix ./desktop.nix
./gaming.nix
]; ];
} }

View file

@ -1,25 +1,36 @@
{ {
pkgs,
lib, lib,
pkgs,
config, config,
... ...
}: }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.system.roles.gaming;
in
{ {
config = lib.mkIf config.programs.steam.enable { options.modules.system.roles.gaming = {
enable = mkEnableOption "gaming features";
};
config = mkIf cfg.enable {
programs.gamescope = { programs.gamescope = {
enable = true; enable = true;
capSysNice = true; capSysNice = true;
}; };
environment = {
systemPackages = [ pkgs.mangohud ];
};
programs.steam = { programs.steam = {
enable = true;
gamescopeSession.enable = true; # Adds a steam entry to the login manager gamescopeSession.enable = true; # Adds a steam entry to the login manager
extest.enable = true; extest.enable = true;
localNetworkGameTransfers.openFirewall = true; localNetworkGameTransfers.openFirewall = true;
extraCompatPackages = with pkgs; [ proton-ge-bin ]; extraCompatPackages = with pkgs; [ proton-ge-bin ];
}; };
environment.systemPackages = with pkgs; [
lutris
mangohud
];
}; };
} }