add scheibnkleister presence

This commit is contained in:
Kopatz
2025-05-18 11:13:57 +02:00
parent a695f39daf
commit 3f70d39d4f
3 changed files with 39 additions and 28 deletions

View File

@@ -8,6 +8,7 @@
kop-newproject = pkgs.callPackage ./kop-newproject/default.nix { }; kop-newproject = pkgs.callPackage ./kop-newproject/default.nix { };
kop-website = kop-website =
pkgs.callPackage ./website/default.nix { inherit kop-hub ente-frontend; }; pkgs.callPackage ./website/default.nix { inherit kop-hub ente-frontend; };
scheibnkleister-presence = pkgs.callPackage ./scheibnkleister-presence/default.nix { };
sddm-astronaut = pkgs.callPackage ./sddm-astronaut/default.nix { }; sddm-astronaut = pkgs.callPackage ./sddm-astronaut/default.nix { };
mangal-patched = pkgs.callPackage ./mangal/default.nix { }; mangal-patched = pkgs.callPackage ./mangal/default.nix { };
rdna4-lact = pkgs.callPackage ./lact/default.nix { }; rdna4-lact = pkgs.callPackage ./lact/default.nix { };

View File

@@ -0,0 +1,22 @@
{ buildNpmPackage
, fetchFromGitHub
, lib
, ...
}:
buildNpmPackage rec {
pname = "scheibnkleister-presence";
version = "0.0.1";
src = fetchGit {
url = "git@github.com:oberprofis/scheibnkleister-presence.git";
ref = "master";
rev = "34d07540872ae5827b68c7b272a3384480822cff";
};
forceGitDeps = true;
dontNpmBuild = true;
npmDepsHash = "sha256-ncjKsjox28t11t3KoIiRlrwO/ISzYmRZ0mfTPO+8XBE=";
# The prepack script runs the build script, which we'd rather do in the build phase.
npmPackFlags = [ "--ignore-scripts" ];
}

View File

@@ -99,6 +99,22 @@
}; };
virtualisation.waydroid.enable = false; virtualisation.waydroid.enable = false;
systemd.user.services.scheibnkleister-presence = {
description = "scheibnkleister-presence";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart =
"${pkgs.scheibnkleister-presence}/bin/scheibnkleister-presence";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
i18n.supportedLocales = [ i18n.supportedLocales = [
"C.UTF-8/UTF-8" "C.UTF-8/UTF-8"
"de_AT.UTF-8/UTF-8" "de_AT.UTF-8/UTF-8"
@@ -111,7 +127,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
#libimobiledevice #libimobiledevice
#ifuse # optional, to mount using 'ifuse' #ifuse # optional, to mount using 'ifuse'
openai-whisper
]; ];
networking.firewall.allowedTCPPorts = [ 6567 ]; # mindustry networking.firewall.allowedTCPPorts = [ 6567 ]; # mindustry
@@ -119,32 +134,6 @@
mainUser.layout = "de"; mainUser.layout = "de";
mainUser.variant = "us"; mainUser.variant = "us";
age.identityPaths = [ /home/kopatz/.ssh/id_rsa ]; age.identityPaths = [ /home/kopatz/.ssh/id_rsa ];
services.xserver.displayManager.session = [
#{
# manage = "desktop";
# name = "hyprland";
# start = ''
# ${lib.getExe pkgs.hyprland} &
# waitPID=$!
# '';
#}
#{
# manage = "desktop";
# name = "plasma5";
# start = ''
# env ${pkgs.plasma-workspace}/bin/startplasma-x11
# '';
#}
];
# not worth it
# https://github.com/NixOS/nixpkgs/blob/master/lib/systems/architectures.nix
#nix.settings.system-features = ["znver3" "gccarch-znver3" ];
#nixpkgs.hostPlatform = {
# gcc.arch = "znver3";
# gcc.tune = "znver3";
# system = "x86_64-linux";
#};
# fix index # fix index
services.xserver.extraConfig = '' services.xserver.extraConfig = ''
@@ -157,7 +146,6 @@
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
networking.hostName = "kop-pc"; # Define your hostname. networking.hostName = "kop-pc"; # Define your hostname.