made obx-studio autostart and started libs
This commit is contained in:
parent
b0c1be575b
commit
ae4462d98f
@ -72,6 +72,7 @@
|
|||||||
_module.args = {
|
_module.args = {
|
||||||
inherit spicetify;
|
inherit spicetify;
|
||||||
wallpaper = wallpaper.packages.${system}.default;
|
wallpaper = wallpaper.packages.${system}.default;
|
||||||
|
libs = import ./libs;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
16
libs/default.nix
Normal file
16
libs/default.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
mkAutostart = {
|
||||||
|
pkgs,
|
||||||
|
name,
|
||||||
|
command,
|
||||||
|
}: {
|
||||||
|
source = "${
|
||||||
|
pkgs.makeDesktopItem {
|
||||||
|
name = "${name}-autostart";
|
||||||
|
desktopName = "${name}-autostart";
|
||||||
|
exec = command;
|
||||||
|
noDisplay = true;
|
||||||
|
}
|
||||||
|
}/share/applications/${name}-autostart.desktop";
|
||||||
|
};
|
||||||
|
}
|
@ -26,17 +26,17 @@
|
|||||||
./gnome.nix
|
./gnome.nix
|
||||||
./gpg.nix
|
./gpg.nix
|
||||||
./nvim
|
./nvim
|
||||||
|
./obs.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
./spiceify.nix
|
||||||
./thunderbird.nix
|
./thunderbird.nix
|
||||||
./vscode.nix
|
./vscode.nix
|
||||||
./mpv.nix
|
./mpv.nix
|
||||||
./spiceify.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Programs
|
# Programs
|
||||||
programs = {
|
programs = {
|
||||||
home-manager.enable = true; # Allow home-manager to manage itself
|
home-manager.enable = true; # Allow home-manager to manage itself
|
||||||
obs-studio.enable = true;
|
|
||||||
yt-dlp.enable = true;
|
yt-dlp.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
15
systems/common/obs.nix
Normal file
15
systems/common/obs.nix
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
libs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
programs.obs-studio.enable = true;
|
||||||
|
|
||||||
|
xdg.configFile = {
|
||||||
|
"autostart/obs-autostart.desktop" = libs.mkAutostart {
|
||||||
|
inherit pkgs;
|
||||||
|
name = "obs";
|
||||||
|
command = "obs --startreplaybuffer";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user