fix all the shits
This commit is contained in:
parent
c15f7a253f
commit
5c2458a905
12 changed files with 70 additions and 29 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
specialArgs = {inherit self inputs;};
|
specialArgs = {inherit self inputs;};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/laptop #individual config
|
./hosts/laptop #individual config
|
||||||
./modules/nixos #share configs
|
./modules/desktop #share configs
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -131,4 +131,7 @@
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
#enable configs
|
||||||
|
core.gaming.enable = true;
|
||||||
|
core.desktop.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
This config is for all core utilities needed for any system, wget, git, etc.
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib.modules) mkIf;
|
|
||||||
inherit (lib.options) mkEnableOption;
|
|
||||||
|
|
||||||
cfg = config.coreAll;
|
|
||||||
in {
|
|
||||||
options.coreAll = {
|
|
||||||
enable = mkEnableOption "Base system utils";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
btop
|
|
||||||
git
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
This config is used for systems running a desktop (plasma), contains tools such a Brave browser, vscodium, etc.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
This config is used for gaming systems, contains steam, discord, etc.
|
|
||||||
24
modules/desktop/core/default.nix
Normal file
24
modules/desktop/core/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
|
||||||
|
cfg = config.core;
|
||||||
|
in {
|
||||||
|
imports = [./gaming.nix ./desktop.nix];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
btop
|
||||||
|
git
|
||||||
|
wget
|
||||||
|
];
|
||||||
|
programs.nh = {
|
||||||
|
enable = true;
|
||||||
|
flake = "/home/brandon/.nixos-conf";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -7,9 +7,9 @@
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
cfg = config.coreDesktop;
|
cfg = config.core.desktop;
|
||||||
in {
|
in {
|
||||||
options.coreDesktop = {
|
options.core.desktop = {
|
||||||
enable = mkEnableOption "Config and Utils for Desktop";
|
enable = mkEnableOption "Config and Utils for Desktop";
|
||||||
};
|
};
|
||||||
|
|
||||||
39
modules/desktop/core/gaming.nix
Normal file
39
modules/desktop/core/gaming.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
|
cfg = config.core.gaming;
|
||||||
|
in {
|
||||||
|
|
||||||
|
options.core.gaming = {
|
||||||
|
enable = mkEnableOption "Config and Utils for gaming";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
environment = {
|
||||||
|
systemPackages = with pkgs; [
|
||||||
|
scanmem
|
||||||
|
protonup-qt
|
||||||
|
wine
|
||||||
|
winetricks
|
||||||
|
discord
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
steam = {
|
||||||
|
enable=true;
|
||||||
|
remotePlay.openFirewall = lib.mkDefault true;
|
||||||
|
localNetworkGameTransfers.openFirewall = lib.mkDefault true;
|
||||||
|
extest.enable = lib.mkDefault true;
|
||||||
|
protontricks.enable = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
|
||||||
|
gamemode.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./system
|
./system
|
||||||
|
./core
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue