mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 05:53:56 -05:00
programs -> apps to avoid collisions with nixpkgs
This commit is contained in:
parent
31d11dd424
commit
0e05713778
|
@ -31,9 +31,9 @@
|
|||
windowManagers.hyprland.enable = true;
|
||||
};
|
||||
|
||||
programs = {
|
||||
flatpakSupport.enable = true;
|
||||
steamGames.enable = true;
|
||||
apps = {
|
||||
flatpak.enable = true;
|
||||
steam.enable = true;
|
||||
};
|
||||
|
||||
homeLab.virtualization.enable = true;
|
||||
|
|
|
@ -31,8 +31,12 @@
|
|||
home-manager.users.aly = import ../../home/aly-hyprland.nix;
|
||||
|
||||
homeLab.enable = true;
|
||||
programs.steamGames.enable = true;
|
||||
desktopConfig.enable = true;
|
||||
|
||||
apps = {
|
||||
flatpak.enable = true;
|
||||
steam.enable = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
|
@ -85,9 +85,9 @@ in {
|
|||
gnome.enable = true;
|
||||
};
|
||||
|
||||
programs = {
|
||||
flatpakSupport.enable = true;
|
||||
steamGames.enable = false;
|
||||
apps = {
|
||||
flatpak.enable = true;
|
||||
steam.enable = false;
|
||||
};
|
||||
|
||||
homeLab.virtualization.enable = true;
|
||||
|
|
|
@ -23,8 +23,9 @@
|
|||
windowManagers.hyprland.enable = true;
|
||||
};
|
||||
|
||||
programs = {
|
||||
flatpakSupport.enable = true;
|
||||
apps = {
|
||||
flatpak.enable = true;
|
||||
steam.enable = true;
|
||||
};
|
||||
|
||||
systemConfig.plymouth.enable = true;
|
||||
|
|
6
nixosModules/apps/default.nix
Normal file
6
nixosModules/apps/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
|
||||
imports = [ ./flatpak ./steam ];
|
||||
|
||||
}
|
|
@ -1,10 +1,10 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
options = {
|
||||
programs.flatpakSupport.enable = lib.mkEnableOption "Enables flatpak support with GUI.";
|
||||
apps.flatpak.enable = lib.mkEnableOption "Enables flatpak support with GUI.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.programs.flatpakSupport.enable {
|
||||
config = lib.mkIf config.apps.flatpak.enable {
|
||||
# Needed for Flatpaks
|
||||
xdg.portal.enable = true;
|
||||
services.flatpak.enable = true;
|
|
@ -1,10 +1,10 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
options = {
|
||||
programs.steamGames.enable = lib.mkEnableOption "Enables Steam for video games.";
|
||||
apps.steam.enable = lib.mkEnableOption "Enables Steam for video games.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.programs.steamGames.enable {
|
||||
config = lib.mkIf config.apps.steam.enable {
|
||||
hardware.steam-hardware.enable = true;
|
||||
programs.steam = {
|
||||
enable = true;
|
|
@ -1,6 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./desktopConfig ./homeLab ./programs ./systemConfig ./userConfig ];
|
||||
imports = [ ./desktopConfig ./homeLab ./apps ./systemConfig ./userConfig ];
|
||||
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
|
||||
imports = [ ./flatpakSupport ./steamGames ];
|
||||
|
||||
}
|
Loading…
Reference in a new issue