Disable allow unfree and modularize home some more

This commit is contained in:
Jimbo 2025-01-22 13:59:04 -05:00
parent 41055434ce
commit c365d25eeb
11 changed files with 20 additions and 13 deletions

View file

@ -3,6 +3,8 @@
home-manager.users."${config.sysusers.main}" = {
home = {
desktop.enable = true;
remote-desktop.enable = true;
school.enable = true;
stateVersion = lib.mkForce "24.11";
};
};

View file

@ -3,6 +3,9 @@
home-manager.users."${config.sysusers.main}" = {
home = {
desktop.enable = true;
gaming.enable = true;
production.enable = true;
school.enable = true;
stateVersion = lib.mkForce "24.05";
};
};

View file

@ -13,12 +13,13 @@
nur.modules.homeManager.default
];
options.home = {
desktop.enable = lib.mkEnableOption "Enable desktop programs and services.";
options.home = with lib; {
desktop.enable = mkEnableOption "Enable desktop programs and services.";
gaming.enable = mkEnableOption "Enable gaming apps and programs";
production.enable = mkEnableOption "Enable apps for visual productivity";
remote-desktop.enable = mkEnableOption "Enable apps for visual productivity";
school.enable = mkEnableOption "Enable apps for visual productivity";
};
config = {
nixpkgs.config.allowUnfree = true;
home.stateVersion = "24.11";
};
config.home.stateVersion = "24.11";
}

View file

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }:
{
config = lib.mkIf config.home.desktop.enable {
config = lib.mkIf config.home.gaming.enable {
programs.mangohud.enable = true;
# These options exist in Nixlang, but the order is not respected.
xdg.configFile."MangoHud/MangoHud.conf".text = ''

View file

@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
programs.obs-studio = {
enable = config.home.desktop.enable;
enable = config.home.production.enable;
plugins = with pkgs.obs-studio-plugins; [
obs-pipewire-audio-capture
obs-webkitgtk

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
home.packages = with pkgs; lib.mkIf config.home.gaming.enable [
dolphin-emu
cemu
ryujinx

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
home.packages = with pkgs; lib.mkIf config.home.gaming.enable [
heroic
prismlauncher
steam

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, blender, ... }:
{
config = lib.mkIf config.home.desktop.enable {
config = lib.mkIf config.home.production.enable {
nixpkgs.overlays = [ blender.overlays.default ];
home.packages = with pkgs; [
audacity

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
home.packages = with pkgs; lib.mkIf config.home.remote-desktop.enable [
moonlight-qt
rustdesk-flutter
];

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
home.packages = with pkgs; lib.mkIf config.home.school.enable [
freerdp
gpauth
remmina

View file

@ -1,6 +1,7 @@
{ home-manager, ... }:
{
imports = [
./jules
./main
home-manager.nixosModules.home-manager
];