This commit is contained in:
2024-12-31 13:45:35 +02:00
parent 128dee5de7
commit 76a96ff17b
9 changed files with 464 additions and 54 deletions

View File

@@ -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" ];