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"; networking.hostName = "desktop";
services.hardware.openrgb.enable = true; services.hardware.openrgb.enable = true;
services.ollama.enable = true;
games.enable = true;
imports = [ imports = [
../../modules ../../modules
./hardware.nix ./hardware.nix
../../modules/apps/gui/games
]; ];
} }

View file

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

View file

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

View file

@ -1,7 +1,9 @@
{ {
imports = [ imports = [
./suyu ./suyu
./steam ./steam
./norisk ./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 = customPkgs =
pkgs pkgs
// { // {
@ -19,7 +23,7 @@ in {
home-manager.users.joy.xdg = { home-manager.users.joy.xdg = {
desktopEntries = { desktopEntries = {
NoRiskClient= { NoRiskClient = {
name = "NoRisk Client"; name = "NoRisk Client";
exec = "noriskclient"; exec = "noriskclient";
icon = lib.mkForce "/home/joy/nix/modules/apps/gui/games/norisk/norisk.png"; icon = lib.mkForce "/home/joy/nix/modules/apps/gui/games/norisk/norisk.png";

View file

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