wip
This commit is contained in:
22
hosts/default/apps/tuxstrap-reminder.nix
Normal file
22
hosts/default/apps/tuxstrap-reminder.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "tuxstrap-cron-executable";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "ocbwoy3";
|
||||
repo = "tuxstrap";
|
||||
rev = "v1.2.0";
|
||||
sha256 = "0000000000000000000000000000000000000000000000000000"; # Replace with the actual sha256
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.bun ];
|
||||
|
||||
buildPhase = ''
|
||||
bun build ./daily-challenge-reminder-crontab.ts --compile --minify --outfile reminder-crontab-exec
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp reminder-crontab-exec $out/bin/tuxstrap-cron
|
||||
'';
|
||||
}
|
||||
@@ -1,5 +1,8 @@
|
||||
{ config, inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
tuxstrapReminderCrontab = pkgs.callPackage ./apps/tuxstrap-reminder.nix {};
|
||||
in
|
||||
{
|
||||
|
||||
imports = [
|
||||
@@ -34,13 +37,25 @@
|
||||
drivers = with pkgs; [
|
||||
gutenprint
|
||||
gutenprintBin
|
||||
splix
|
||||
hplip
|
||||
];
|
||||
webInterface = true;
|
||||
listenAddresses = [ "*:631" ];
|
||||
allowFrom = [ "all" ];
|
||||
browsing = true;
|
||||
defaultShared = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
userServices = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Sadly, I don't know how to install flatpaks like this.
|
||||
@@ -56,6 +71,14 @@
|
||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
|
||||
|
||||
services.cron = {
|
||||
enable = true;
|
||||
systemCronJobs = [
|
||||
"*/5 * * * * ocbwoy3 ${tuxstrapReminderCrontab}/bin/tuxstrap-cron"
|
||||
];
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autosuggestions.enable = true;
|
||||
@@ -85,9 +108,15 @@
|
||||
kdePackages.qt6ct
|
||||
lightly-qt
|
||||
hyfetch
|
||||
kitty
|
||||
inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.ghostty
|
||||
# (pkgs.callPackage ./apps/tuxstrap.nix {})
|
||||
];
|
||||
|
||||
xdg.terminal-exec.enable = true;
|
||||
environment.variables.XDG_TERMINAL = "${inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.ghostty}/bin/ghostty";
|
||||
environment.variables.XDG_SYSTEM_MONITOR = "${pkgs.htop}/bin/htop";
|
||||
|
||||
fileSystems = {
|
||||
"/".options = [ "compress=zstd" ];
|
||||
"/home".options = [ "compress=zstd" ];
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
nix-direnv
|
||||
htop
|
||||
nixpkgs-fmt
|
||||
nixd
|
||||
catppuccin-cursors.mochaBlue
|
||||
|
||||
Reference in New Issue
Block a user