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,9 +17,13 @@
}; };
}; };
}; };
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 {
options = {
norisk.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.norisk.enable {
environment.systemPackages = [ environment.systemPackages = [
customPkgs.noriskclient customPkgs.noriskclient
]; ];
@ -29,8 +34,8 @@ in {
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; terminal = false;
type = "Application"; type = "Application";
@ -39,4 +44,5 @@ in {
}; };
}; };
}; };
};
} }

View file

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

View file

@ -1,4 +1,9 @@
{pkgs, ...}: let {
pkgs,
lib,
config,
...
}: let
customPkgs = customPkgs =
pkgs pkgs
// { // {
@ -13,6 +18,10 @@
}; };
}; };
in { in {
options = {
suyu.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.suyu.enable {
environment.systemPackages = [ environment.systemPackages = [
customPkgs.suyu customPkgs.suyu
]; ];
@ -30,4 +39,5 @@ in {
}; };
}; };
}; };
};
} }

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;