system76 scheduler

This commit is contained in:
atagen 2023-01-12 10:12:50 +11:00
parent 2faec8579a
commit ec067ee460
10 changed files with 218 additions and 105 deletions

View file

@ -2,6 +2,12 @@
{
nixpkgs.overlays = [
(self: super: {
kwin-system76-scheduler-integration = pkgs.libsForQt5.callPackage ../system/syspkgs/kwin-system76-scheduler-integration.nix {};
})
];
home.username = "bolt";
home.homeDirectory = "/home/bolt";
@ -13,4 +19,23 @@
nicotine-plus
];
systemd.user.startServices = true;
systemd.user.services."com.system76.Scheduler.dbusproxy" = {
Unit = {
Description = "the system76 process scheduler kwin dbus proxy";
# Aliases = [ "com.system76.Scheduler.dbusproxy.service" ];
Requires = [ "dbus.service" ];
};
Install = {
WantedBy = [ "graphical-session.target" "default.target" ];
};
Service = {
ExecStart = ''${pkgs.kwin-system76-scheduler-integration}/bin/kwin-system76-scheduler-dbus-proxy.sh'';
};
};
}

View file

@ -41,9 +41,6 @@
direnv
mpv
vscodium
syncthing
zoxide
@ -63,53 +60,47 @@
(callPackage ./homepkgs/culr.nix { })
];
# bat nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium-url-handler.desktop
# nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium.desktop
# ───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
# │ File: nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium-url-handler.desktop
# ───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
# 1 │ [Desktop Entry]
# 2 │ Categories=Utility;TextEditor;Development;IDE
# 3 │ Comment=Code Editing. Redefined.
# 4 │ Exec=codium --open-url %U
# 5 │ GenericName=Text Editor
# 6 │ Icon=code
# 7 │ Keywords=vscode
# 8 │ MimeType=x-scheme-handler/vscode
# 9 │ Name=VSCodium - URL Handler
# 10 │ NoDisplay=true
# 11 │ StartupNotify=true
# 12 │ Type=Application
# 13 │ Version=1.4
# ───────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
# zsh: permission denied: nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium.desktop
# bat nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium-url-handler.desktop
# nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium.deskt
# bat nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium.desktop
# ───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
# │ File: nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium.desktop
# ───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
# 1 │ [Desktop Entry]
# 2 │ Actions=new-empty-window
# 3 │ Categories=Utility;TextEditor;Development;IDE
# 4 │ Comment=Code Editing. Redefined.
# 5 │ Exec=codium %F
# 6 │ GenericName=Text Editor
# 7 │ Icon=code
# 8 │ Keywords=vscode
# 9 │ MimeType=text/plain;inode/directory
# 10 │ Name=VSCodium
# 11 │ StartupNotify=true
# 12 │ StartupWMClass=vscodium
# 13 │ Type=Application
# 14 │ Version=1.4
# 15 │
# 16 │ [Desktop Action new-empty-window]
# 17 │ Exec=codium --new-window %F
# 18 │ Icon=code
# 19 │ Name=New Empty Window
# ───────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
#
xdg.enable = true;
programs.vscode = {
enable = true;
enableExtensionUpdateCheck = false;
enableUpdateCheck = false;
package = pkgs.vscodium;
extensions = [];
mutableExtensionsDir = false;
};
xdg.desktopEntries = {
vscodium-url = {
name = "VsCodium";
genericName = "Text Editor";
exec = "codium --disable-gpu-sandbox --open-url %U";
icon = "code";
comment = "Code Editing. Redefined.";
categories = [ "Utility" "TextEditor" "Development" "IDE" ];
# keywords = [ "vscode" ];
mimeType = [ "x-scheme-handler/vscode" ];
noDisplay = true;
startupNotify = true;
type = "Application";
};
vscodium = {
categories = [ "Utility" "TextEditor" "Development" "IDE" ];
comment = "Code Editing. Redefined.";
exec = "codium --disable-gpu-sandbox %F";
genericName = "Text Editor";
icon = "code";
# keywords = [ "vscode" ];
mimeType = [ "text/plain" "inode/directory" ];
name = "VsCodium";
startupNotify = true;
# startupWMClass = "vscodium";
type = "Application";
};
};
programs.direnv = {
enable = true;
nix-direnv = {
@ -277,6 +268,7 @@ alias l=\"ls_culr\"
alias la=\"la_culr\"
alias p=\"ps_culr\"
alias mnt=\"mount | column -t | culr\"
alias kaboom=\"sudo nixos-rebuild switch --upgrade-all -j9 && rm ~/.gtkrc-2.0; home-manager switch && sudo nix-collect-garbage && nix-store --optimise\"
fresh
";

View file

@ -1,28 +0,0 @@
{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "sddm-slice";
version = "1.5.1";
src = fetchFromGitHub {
owner = "EricKotato";
repo = pname;
rev = "v${version}";
sha256 = "sha256-IWwFsYqoqW3924+pf8L+acIt31aU/mhqakXbT9Q4Bqw=";
};
deployPhase = "
cp -r ./* /usr/share/sddm/themes/slice/
";
meta = with lib; {
description = "an sddm theme";
homepage = "somewhere.else";
license = licenses.mit;
maintainers = [];
platforms = platforms.all;
};
}

View file

@ -1 +0,0 @@
/home/fossil/.config/nixpkgs