Compare commits

..

3 commits

Author SHA1 Message Date
554e706717
feat: add gaming role
All checks were successful
/ test (push) Successful in 31s
2025-01-30 18:39:04 +01:00
957073153b
feat: add ci 2025-01-30 18:38:34 +01:00
4f63ac429f
chore: update nysh 2025-01-26 22:57:55 +01:00
9 changed files with 74 additions and 35 deletions

View file

@ -0,0 +1,6 @@
on: [push]
jobs:
test:
runs-on: debian-latest
steps:
- run: echo All Good

48
flake.lock generated
View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,25 +1,36 @@
{
pkgs,
lib,
pkgs,
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 = {
enable = true;
capSysNice = true;
};
environment = {
systemPackages = [ pkgs.mangohud ];
};
programs.steam = {
enable = true;
gamescopeSession.enable = true; # Adds a steam entry to the login manager
extest.enable = true;
localNetworkGameTransfers.openFirewall = true;
extraCompatPackages = with pkgs; [ proton-ge-bin ];
};
environment.systemPackages = with pkgs; [
lutris
mangohud
];
};
}