Browse Source

xdg: fix python startup

master
parent
commit
e3c27d84f0
Signed by: govanify GPG Key ID: DE62E1E2A6145556
5 changed files with 13 additions and 51 deletions
  1. +0
    -1
      common/graphical.nix
  2. +1
    -1
      components/headfull/graphical/vte.nix
  3. +11
    -9
      components/xdg.nix
  4. +1
    -0
      devices/alastor/hardware.nix
  5. +0
    -40
      pkgs/wlrobs.nix

+ 0
- 1
common/graphical.nix View File

@ -6,7 +6,6 @@ let
osName = "";
osVersion = "";
};
in
{
services.getty.autologinUser = "govanify";


+ 1
- 1
components/headfull/graphical/vte.nix View File

@ -8,7 +8,7 @@ in
enable = mkEnableOption "Enable navi's graphical VTE";
};
config = mkIf cfg.enable {
environment.shellAliases.ssh = "kitty +kitten ssh";
#environment.shellAliases.ssh = "kitty +kitten ssh";
home-manager.users.govanify = {
programs.kitty = {
enable = true;


+ 11
- 9
components/xdg.nix View File

@ -120,15 +120,17 @@ in
home.file.".config/python/startup.py".text = ''
import sys
def register_readline_completion():
# rlcompleter must be loaded for Python-specific completion
try: import readline, rlcompleter
except ImportError: return
# Enable tab-completion
readline_doc = getattr(readline, '__doc__', ''')
if readline_doc is not None and 'libedit' in readline_doc:
readline.parse_and_bind('bind ^I rl_complete')
else:
readline.parse_and_bind('tab: complete')
# rlcompleter must be loaded for Python-specific completion
try:
import readline, rlcompleter
except ImportError:
return
# Enable tab-completion
readline_doc = getattr(readline, '__doc__', ''')
if readline_doc is not None and 'libedit' in readline_doc:
readline.parse_and_bind('bind ^I rl_complete')
else:
readline.parse_and_bind('tab: complete')
sys.__interactivehook__ = register_readline_completion
'';
home.file.".config/npm/npmrc".text = ''


+ 1
- 0
devices/alastor/hardware.nix View File

@ -84,5 +84,6 @@
load-module module-remap-source master=alsa_input.usb-Focusrite_Scarlett_2i2_USB-00.analog-stereo source_name=Mic-Mono master_channel_map=left channel_map=mono
set-default-source Mic-Mono
'';
boot.supportedFilesystems = [ "ntfs" ];
}

+ 0
- 40
pkgs/wlrobs.nix View File

@ -1,40 +0,0 @@
# We don't have a wrapper which can supply obs-studio plugins so you have to
# somewhat manually install this:
# nix-env -f . -iA wlrobs
# mkdir -p ~/.config/obs-studio/plugins
# ln -s ~/.nix-profile/share/obs/obs-plugins/wlrobs ~/.config/obs-studio/plugins/
{ stdenv, fetchhg
, meson, ninja, pkg-config
, obs-studio, wlroots, wayland
, libX11, libGL, libdrm
}:
let
metadata = import ./metadata.nix;
in
stdenv.mkDerivation rec {
name = "wlrobs-${version}";
version = metadata.rev;
src = fetchhg {
url = "https://hg.sr.ht/~scoopta/wlrobs";
rev = metadata.rev;
sha256 = metadata.sha256;
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [ obs-studio wayland wlroots libX11 libGL libdrm ];
installPhase = ''
mkdir -p $out/share/obs/obs-plugins/wlrobs/bin/64bit
cp libwlrobs.so $out/share/obs/obs-plugins/wlrobs/bin/64bit
'';
meta = with stdenv.lib; {
description = "wlrobs is an obs-studio plugin that allows you to screen capture on wlroots based wayland compositors";
homepage = "https://sr.ht/~scoopta/wlrobs";
maintainers = with maintainers; [ colemickens ];
platforms = with platforms; linux;
};
}

Loading…
Cancel
Save