From 71352b788f58fed7a48f9bf7f542c14d8c3aa460 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 18 Dec 2024 05:40:57 -0700 Subject: [PATCH] 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 --- veles/etc/nixos/configuration.nix | 35 +++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/veles/etc/nixos/configuration.nix b/veles/etc/nixos/configuration.nix index 732fde9..32eaa81 100644 --- a/veles/etc/nixos/configuration.nix +++ b/veles/etc/nixos/configuration.nix @@ -8,6 +8,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + ]; # 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 = [ + + ]; + 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. #