fix all the shits
This commit is contained in:
parent
c15f7a253f
commit
5c2458a905
12 changed files with 70 additions and 29 deletions
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";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
22
modules/desktop/core/desktop.nix
Normal file
22
modules/desktop/core/desktop.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
cfg = config.core.desktop;
|
||||
in {
|
||||
options.core.desktop = {
|
||||
enable = mkEnableOption "Config and Utils for Desktop";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
vscodium
|
||||
brave
|
||||
];
|
||||
};
|
||||
}
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
6
modules/desktop/default.nix
Normal file
6
modules/desktop/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./system
|
||||
./core
|
||||
];
|
||||
}
|
||||
49
modules/desktop/system/default.nix
Normal file
49
modules/desktop/system/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.attrsets) mapAttrs mapAttrsToList;
|
||||
in {
|
||||
config = {
|
||||
# Common Nix Settings, registry thing is specifically for flakes
|
||||
nix = {
|
||||
registry = lib.mkForce (mapAttrs (_: value: {flake = value;}) inputs);
|
||||
nixPath = lib.mkForce (mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry);
|
||||
optimise.automatic = true;
|
||||
|
||||
gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
|
||||
settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
warn-dirty = false;
|
||||
keep-derivations = true;
|
||||
keep-env-derivations = true;
|
||||
keep-outputs = true;
|
||||
auto-optimise-store = false;
|
||||
|
||||
substituters = [
|
||||
"https://nix-community.cachix.org"
|
||||
"https://cache.nixos.org/"
|
||||
];
|
||||
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
|
||||
overlays = [
|
||||
# overlays if you want them
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue