Compare commits
3 Commits
1221c4f64c
...
5c9a8860c2
Author | SHA1 | Date | |
---|---|---|---|
5c9a8860c2 | |||
f546ee06de | |||
6a329abe98 |
@ -7,6 +7,12 @@ in
|
||||
{
|
||||
options.nixfiles.common.wm = {
|
||||
enable = lib.mkEnableOption "common window manager config";
|
||||
autostart = lib.mkOption {
|
||||
description = "List of window manager agnostic commnads to run at window manager startup";
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ ];
|
||||
example = [ "steam -silent" ];
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Common options for standalone window managers; many of these (or
|
||||
|
@ -5,6 +5,8 @@ let
|
||||
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.rustdesk-flutter
|
||||
else
|
||||
pkgs.rustdesk-flutter;
|
||||
|
||||
vesktop-ozone-cmd = "env NIXOS_OZONE_WL=1 vesktop --disable-gpu";
|
||||
in
|
||||
{
|
||||
options.nixfiles.packageSets.communication = {
|
||||
@ -14,7 +16,7 @@ in
|
||||
|
||||
xdg.desktopEntries.vesktop = lib.mkIf config.nixfiles.meta.graphical {
|
||||
categories= ["Network" "InstantMessaging" "Chat"];
|
||||
exec="env NIXOS_OZONE_WL=1 vesktop --disable-gpu %U";
|
||||
exec=vesktop-ozone-cmd + " %U";
|
||||
genericName="Internet Messenger";
|
||||
icon="vesktop";
|
||||
name="Vesktop";
|
||||
@ -25,6 +27,10 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
nixfiles.common.wm.autostart = lib.optionals config.nixfiles.meta.graphical [
|
||||
(vesktop-ozone-cmd + " --start-minimized")
|
||||
];
|
||||
|
||||
home.packages = with pkgs; lib.optionals config.nixfiles.meta.graphical [
|
||||
element-desktop
|
||||
telegram-desktop
|
||||
|
@ -5,6 +5,10 @@ let
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
nixfiles.common.wm.autostart = [
|
||||
"steam -silent"
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
ludusavi
|
||||
rclone # needed to sync ludusavi
|
||||
|
@ -76,10 +76,10 @@ in
|
||||
|
||||
options.nixfiles.sessions.hyprland = {
|
||||
enable = lib.mkOption {
|
||||
description = "Whether to enable hyprland.";
|
||||
type = lib.types.bool;
|
||||
default = if (builtins.hasAttr "home-manager" osConfig) then osConfig.nixfiles.sessions.hyprland.enable else false;
|
||||
example = true;
|
||||
description = "Whether to enable hyprland.";
|
||||
};
|
||||
|
||||
autolock = lib.mkOption {
|
||||
@ -91,8 +91,8 @@ in
|
||||
nixfiles.greetd.settings.autolock.
|
||||
'';
|
||||
type = lib.types.bool;
|
||||
default = osConfig.nixfiles.greetd.settings.autolock or false;
|
||||
defaultText = "osConfig.nixfiles.greetd.settings.autolock or false";
|
||||
default = osConfig.nixfiles.programs.greetd.settings.autolock or false;
|
||||
defaultText = "osConfig.nixfiles.programs.greetd.settings.autolock or false";
|
||||
example = true;
|
||||
};
|
||||
};
|
||||
@ -128,7 +128,8 @@ in
|
||||
# Execute your favorite apps at launch
|
||||
# exec-once = waybar & hyprpaper & firefox
|
||||
|
||||
exec-once = (lib.optional cfg.autolock lock-cmd) ++ [
|
||||
exec-once = (lib.optional cfg.autolock lock-cmd) ++ config.nixfiles.common.wm.autostart ++
|
||||
[
|
||||
wallpaper-cmd
|
||||
notifydaemon
|
||||
polkit-agent
|
||||
|
@ -56,6 +56,11 @@
|
||||
programs.adb.enable = true;
|
||||
programs.greetd = {
|
||||
preset = "tuigreet";
|
||||
settings = {
|
||||
autologin = true;
|
||||
autologinUser = "nullbite";
|
||||
autolock = true;
|
||||
};
|
||||
};
|
||||
programs.unbound.enable = true;
|
||||
common.remoteAccess.enable = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user