Disable screen locking, start Moonlight via xdgautostart
I couldn't figure out a way to create the symlink through NixOS so I just created it manually in ~/.config/autostart: ln -s /var/lib/flatpak/app/com.moonlight_stream.Moonlight/current/active/export/share/application/com.moonlight_stream.Moonlight.desktop ~/.config/autostart/com.moonlight_stream.Moonlight.desktop
This commit is contained in:
parent
86f9a6fcee
commit
71352b788f
|
@ -8,6 +8,7 @@
|
|||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
<home-manager/nixos>
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
|
@ -24,8 +25,36 @@
|
|||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||||
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
||||
|
||||
# Enable sound.
|
||||
hardware.pulseaudio.enable = true;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.users.eliribble = { config, pkgs, ... }: {
|
||||
imports = [
|
||||
<plasma-manager/modules>
|
||||
];
|
||||
home.homeDirectory = "/home/eliribble";
|
||||
home.stateVersion = "24.11";
|
||||
home.username = "eliribble";
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting # Disable greeting
|
||||
'';
|
||||
};
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Eli Ribble";
|
||||
userEmail = "eli@theribbles.org";
|
||||
};
|
||||
# Prevent automatic screen locking
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
kscreenlocker = {
|
||||
autoLock = false;
|
||||
lockOnResume = false;
|
||||
passwordRequired = false;
|
||||
timeout = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
@ -82,6 +111,8 @@
|
|||
];
|
||||
};
|
||||
|
||||
xdg.autostart.enable = true;
|
||||
|
||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue