This commit is contained in:
joy 2024-10-08 14:47:39 +02:00
parent 1aeb88ac11
commit 0b9973653d
11 changed files with 80 additions and 62 deletions

View file

@ -53,6 +53,5 @@
url = "github:Mic92/sops-nix"; url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
} }

View file

@ -2,10 +2,12 @@
networking.hostName = "desktop"; networking.hostName = "desktop";
openrgb.enable = true; openrgb.enable = true;
steam.enable = true;
suyu.enable = true;
norisk.enbale = true;
imports = [ imports = [
./hardware.nix ./hardware.nix
../../modules ../../modules
../../modules/games
]; ];
} }

View file

@ -1,10 +1,8 @@
{pkgs, ...}: { {pkgs, ...}: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
uget
keepassxc keepassxc
vesktop vesktop
signal-desktop signal-desktop
upscayl
bottles bottles
boxbuddy boxbuddy
waydroid waydroid

View file

@ -1,7 +1,8 @@
{ {
imports = [ imports = [
./apps
./wm ./wm
./apps
./games
./hardware ./hardware
./services ./services
./system ./system

View file

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

View file

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

View file

@ -1,5 +1,6 @@
{ {
lib, lib,
config,
pkgs, pkgs,
... ...
}: let }: let
@ -16,26 +17,31 @@
}; };
}; };
}; };
backgroundUrl = "https://raw.githubusercontent.com/NoRiskClient/noriskclient-launcher/refs/heads/main/src/images/norisk_logo.png"; logourl = "https://raw.githubusercontent.com/NoRiskClient/noriskclient-launcher/refs/heads/main/src/images/norisk_logo.png";
backgroundSha256 = "sha256-VwWwShUrT055mcabS8QTqqb8INgRB/08U2qEEIVYHlg="; logsha256 = "sha256-VwWwShUrT055mcabS8QTqqb8INgRB/08U2qEEIVYHlg=";
in { in {
environment.systemPackages = [ options = {
customPkgs.noriskclient norisk.enable = lib.mkEnableOption "";
]; };
config = lib.mkIf config.norisk.enable {
environment.systemPackages = [
customPkgs.noriskclient
];
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 = pkgs.fetchurl { icon = pkgs.fetchurl {
url = backgroundUrl; url = logourl;
sha256 = backgroundSha256; sha256 = logsha256;
};
terminal = false;
type = "Application";
categories = ["Game"];
mimeType = ["text/plain"];
}; };
terminal = false;
type = "Application";
categories = ["Game"];
mimeType = ["text/plain"];
}; };
}; };
}; };

View file

@ -1,10 +1,23 @@
{lib, ...}: { {
nixpkgs.config.allowUnfreePredicate = pkg: lib,
builtins.elem (lib.getName pkg) [ pkgs,
"steam-original" config,
"steam" ...
"steam-run" }: {
options = {
steam.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.norisk.enable {
programs.steam.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam-original"
"steam"
"steam-run"
];
environment.systemPackages = with pkgs; [
mangohud
lutris-free
]; ];
programs.steam.enable = true; };
services.joycond.enable = true;
} }

View file

@ -1,4 +1,9 @@
{pkgs, ...}: let {
pkgs,
lib,
config,
...
}: let
customPkgs = customPkgs =
pkgs pkgs
// { // {
@ -13,20 +18,25 @@
}; };
}; };
in { in {
environment.systemPackages = [ options = {
customPkgs.suyu suyu.enable = lib.mkEnableOption "";
]; };
config = lib.mkIf config.suyu.enable {
environment.systemPackages = [
customPkgs.suyu
];
home-manager.users.joy.xdg = { home-manager.users.joy.xdg = {
desktopEntries = { desktopEntries = {
suyu = { suyu = {
name = "Suyu"; name = "Suyu";
exec = "suyu"; exec = "suyu";
icon = "suyu"; icon = "suyu";
terminal = false; terminal = false;
type = "Application"; type = "Application";
categories = ["Game" "Emulator"]; categories = ["Game" "Emulator"];
mimeType = ["text/plain"]; mimeType = ["text/plain"];
};
}; };
}; };
}; };

View file

@ -19,10 +19,5 @@
"video/*" = ["mpv.desktop"]; "video/*" = ["mpv.desktop"];
}; };
}; };
userDirs = {
enable = true;
desktop = "~/media/pic/screen";
download = "~/dl";
};
}; };
} }

View file

@ -1,8 +1,12 @@
{pkgs,inputs, ...}: let {
pkgs,
inputs,
...
}: let
backgroundUrl = "https://wallpapers.joygnu.org/wallpapers/anime/ghibli-japanese-walled-garden.png"; backgroundUrl = "https://wallpapers.joygnu.org/wallpapers/anime/ghibli-japanese-walled-garden.png";
backgroundSha256 = "sha256-10Lv25V0RG0mnw/O90DeVchCNWJbdktUADtuI+enEwM="; backgroundSha256 = "sha256-10Lv25V0RG0mnw/O90DeVchCNWJbdktUADtuI+enEwM=";
in { in {
imports = [inputs.stylix.nixosModules.stylix ]; imports = [inputs.stylix.nixosModules.stylix];
stylix = { stylix = {
enable = true; enable = true;