feat: Split programs into files

This commit is contained in:
uttarayan21
2025-07-15 18:33:20 +05:30
parent d9d7b7878c
commit 90750cdef3
8 changed files with 50 additions and 33 deletions

View File

@@ -4,12 +4,9 @@
... ...
}: { }: {
imports = [ imports = [
# Include the results of the hardware scan.
./ryu.nix ./ryu.nix
./services ./services
./programs ./programs
./apps
# ./vms
]; ];
sops = { sops = {
@@ -19,40 +16,11 @@
}; };
programs = { programs = {
appimage = {
enable = true;
binfmt = true;
};
localsend = {
enable = true;
openFirewall = true;
};
obs-studio = {
enable = true;
enableVirtualCamera = true;
plugins = [
pkgs.obs-studio-plugins.wlrobs
pkgs.obs-studio-plugins.droidcam-obs
];
};
_1password.enable = true;
_1password-gui = {
enable = true;
polkitPolicyOwners = ["servius"];
};
adb.enable = true;
hyprland = { hyprland = {
enable = true; enable = true;
# withUWSM = true; # withUWSM = true;
xwayland.enable = true; xwayland.enable = true;
}; };
yubikey-touch-detector.enable = true;
steam = {
enable = true;
gamescopeSession.enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
nix-ld = { nix-ld = {
enable = true; enable = true;
libraries = with pkgs; [ libraries = with pkgs; [

View File

@@ -0,0 +1,9 @@
{...}: {
programs = {
_1password.enable = true;
_1password-gui = {
enable = true;
polkitPolicyOwners = ["servius"];
};
};
}

View File

@@ -0,0 +1,3 @@
{...}: {
programs.adb.enable = true;
}

View File

@@ -0,0 +1,6 @@
{...}: {
programs.appimage = {
enable = true;
binfmt = true;
};
}

View File

@@ -4,6 +4,11 @@
... ...
}: { }: {
imports = [ imports = [
# ./nh.nix ./adb.nix
./steam.nix
./1password.nix
./localsend.nix
./appimage.nix
./obs-studio.nix
]; ];
} }

View File

@@ -0,0 +1,6 @@
{...}: {
programs.localsend = {
enable = true;
openFirewall = true;
};
}

View File

@@ -0,0 +1,12 @@
{pkgs, ...}: {
programs = {
obs-studio = {
enable = true;
enableVirtualCamera = true;
plugins = [
pkgs.obs-studio-plugins.wlrobs
pkgs.obs-studio-plugins.droidcam-obs
];
};
};
}

View File

@@ -0,0 +1,8 @@
{...}: {
programs.steam = {
enable = true;
gamescopeSession.enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
}