This commit is contained in:
joy 2024-09-21 09:44:32 +02:00
parent cdb462febd
commit 87f1cd43f5
8 changed files with 29 additions and 23 deletions

View file

@ -1,12 +1,10 @@
{...}: {
networking.hostName = "desktop";
services.hardware.openrgb.enable = true;
services.ollama.enable = true;
games.enable = true;
imports = [
../../modules
./hardware.nix
../../modules/apps/gui/games
];
}

View file

@ -8,10 +8,15 @@
defaultEditor = true;
settings = {
theme = lib.mkForce "gruvbox";
editor = {
line-number = "relative";
shell = ["zsh" "-c"];
};
keys.normal = {
space.space = "file_picker";
Z.Z = ":wq";
Z.Q = ":q!";
space.space = "file_picker";
esc = [ "collapse_selection" "keep_primary_selection" ];
};
};
};

View file

@ -2,7 +2,6 @@
imports = [
./mpv
./code
./games
./nemo
./rofi
./firefox

View file

@ -1,7 +1,9 @@
{
imports = [
imports = [
./suyu
./steam
./norisk
];
./mangohud
./mics
];
}

View file

@ -0,0 +1,3 @@
{...}: {
home-manager.users.joy.programs.mangohud.enable = true;
}

View file

@ -0,0 +1,8 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
prismlauncher
zulu17
dolphin-emu
lutris-free
];
}

View file

@ -1,4 +1,8 @@
{lib, pkgs, ...}: let
{
lib,
pkgs,
...
}: let
customPkgs =
pkgs
// {
@ -19,7 +23,7 @@ in {
home-manager.users.joy.xdg = {
desktopEntries = {
NoRiskClient= {
NoRiskClient = {
name = "NoRisk Client";
exec = "noriskclient";
icon = lib.mkForce "/home/joy/nix/modules/apps/gui/games/norisk/norisk.png";

View file

@ -1,13 +1,7 @@
{
pkgs,
lib,
config,
...
}: {
options = {
games.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.games.enable {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam-original"
@ -15,12 +9,5 @@
"steam-run"
];
programs.steam.enable = true;
environment.systemPackages = with pkgs; [
prismlauncher
dolphin-emu
zulu17
mangohud
lutris
];
};
services.joycond.enable = true;
}