Compare commits

..

No commits in common. "415903451f90a69b1cf9a0875e94bfdf2d6832f7" and "8d04d9c64963065940ebfbc9e68a365de317522f" have entirely different histories.

75 changed files with 393 additions and 61 deletions

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
config,
pkgs,
...
}: {
programs.firefox = {
enable = true;
nativeMessagingHosts = [pkgs.firefoxpwa];

View file

@ -1,4 +1,9 @@
{...}: {
{
lib,
pkgs,
inputs,
...
}: {
programs.foot = {
enable = true;
catppuccin.enable = true;

View file

@ -1,4 +1,9 @@
{...}: {
{
lib,
pkgs,
inputs,
...
}: {
home.file = {
"profile" = {
source = ./Catppuccin.profile;

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
./lillian.nix

View file

@ -1,6 +1,13 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{pkgs, ...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
# If you want to use modules your own flake exports (from modules/home-manager):

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
./lillian.nix

View file

@ -1,6 +1,13 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{pkgs, ...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
# If you want to use modules your own flake exports (from modules/home-manager):

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
./lillian.nix

View file

@ -1,6 +1,13 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{pkgs, ...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
# If you want to use modules your own flake exports (from modules/home-manager):

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
./lillian.nix

View file

@ -1,6 +1,13 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{pkgs, ...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
# If you want to use modules your own flake exports (from modules/home-manager):

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
./lillian.nix

View file

@ -1,6 +1,13 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
# If you want to use modules your own flake exports (from modules/home-manager):

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
./lillian.nix

View file

@ -1,6 +1,13 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{pkgs, ...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
# If you want to use modules your own flake exports (from modules/home-manager):

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
./lillian.nix

View file

@ -1,6 +1,13 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
# If you want to use modules your own flake exports (from modules/home-manager):

View file

@ -1,4 +1,11 @@
{pkgs, ...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [
./shell/helix
./shell/zellij
@ -28,7 +35,6 @@
lazygit
navi
yazi
nil
];
programs.navi.enable = true;
}

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
lib,
pkgs,
...
}: {
programs.bat = {
enable = true;
extraPackages = with pkgs.bat-extras; [batdiff batman batgrep batwatch];

View file

@ -1,4 +1,4 @@
{...}: {
{lib, ...}: {
programs.eza = {
enable = true;
enableZshIntegration = true;

View file

@ -1,4 +1,9 @@
{pkgs, ...}: let
{
config,
lib,
pkgs,
...
}: let
yazi =
pkgs.writeText "open_in_helix_from_yazi.zsh"
''
@ -27,10 +32,9 @@
}
send_to_jupyter() {
is_new && zellij run -f -n "jupyter console" -- direnv exec . jupyter console --kernel="$1" -f="/tmp/rjh-$(pwd | tr \"/\" -).json" --ZMQTerminalInteractiveShell.include_other_output=True --ZMQTerminalInteractiveShell.other_output_prefix=''' && zellij action write 29 25 && zellij action write 17
is_new && zellij run -f -n "jupyter console" -- direnv exec . jupyter console --kernel="$1" -f="/tmp/rjh-$(pwd | tr \"/\" -).json" --ZMQTerminalInteractiveShell.include_other_output=True --ZMQTerminalInteractiveShell.other_output_prefix=''' && zellij action write 29 25
pwd >> /tmp/rjh
zellij action write 29 25
zellij action write 17
cat | just send
}
send_to_jupyter

View file

@ -1,4 +1,9 @@
{...}: {
{
config,
lib,
pkgs,
...
}: {
programs.hyfetch = {
enable = true;
settings = {

View file

@ -1,4 +1,5 @@
{
lib,
pkgs,
inputs,
...

View file

@ -1,4 +1,11 @@
{pkgs, ...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
programs.zoxide = {
enable = true;
};

View file

@ -9,7 +9,3 @@ test:
update:
nix flake update
clean:
sudo nix-collect-garbage
sudo nix-store --optimise

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
services.pihole = {
enable = true;
hostConfig = {

View file

@ -1,6 +1,7 @@
# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
{
inputs,
outputs,
lib,
config,
@ -60,7 +61,7 @@
tpm2-tss
virtualgl
vulkan-tools
# waydroid
waydroid
waypipe
wayland-utils
xwaylandvideobridge

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [
./firefox
];

View file

@ -4,6 +4,7 @@
inputs,
outputs,
lib,
config,
pkgs,
...
}: {

View file

@ -4,6 +4,7 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View file

@ -3,6 +3,8 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
@ -82,7 +84,7 @@
};
};
# virtualisation.waydroid.enable = false;
virtualisation.waydroid.enable = true;
networking.hostName = "GLaDOS";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion

View file

@ -4,6 +4,7 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View file

@ -2,7 +2,9 @@
inputs,
outputs,
lib,
config,
pkgs,
nixpkgs-stable,
...
}: {
imports = [

View file

@ -2,7 +2,9 @@
inputs,
outputs,
lib,
config,
pkgs,
nixpkgs-stable,
...
}: {
imports = [

View file

@ -2,7 +2,9 @@
inputs,
outputs,
lib,
config,
pkgs,
nixpkgs-stable,
...
}: {
imports = [

View file

@ -1,5 +1,7 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View file

@ -1,4 +1,11 @@
{pkgs, ...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
services.udev.extraRules = ''
KERNEL=="sd[a-z]|sd[a-z][0-9]", ACTION=="add", RUN+="${pkgs.systemd}/bin/systemctl start --no-block external-drive-mount@%k.service"
KERNEL=="sd[a-z]|sd[a-z][0-9]", ACTION=="remove", RUN+="${pkgs.systemd}/bin/systemctl stop --no-block external-drive-mount@%k.service"

View file

@ -2,6 +2,7 @@
inputs,
outputs,
lib,
config,
pkgs,
...
}: {

View file

@ -4,6 +4,7 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
config,
pkgs,
...
}: {
boot.kernelPatches = [
rec {
name = "compat_uts_machine";

View file

@ -2,7 +2,9 @@
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
./package-configs

View file

@ -1,4 +1,7 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...

View file

@ -1,4 +1,8 @@
{config, ...}: {
{
config,
pkgs,
...
}: {
users.users.aria2.group = "aria2";
users.groups.aria2 = {};
users.users.aria2.isSystemUser = true;

View file

@ -1,4 +1,10 @@
{config, ...}: {
{
inputs,
outputs,
config,
pkgs,
...
}: {
users.users.aria2.group = "aria2";
users.groups.aria2 = {};
users.users.aria2.isSystemUser = true;

View file

@ -1,4 +1,10 @@
{pkgs, ...}: {
{
config,
pkgs,
inputs,
lib,
...
}: {
services.nginx = {
enable = true;
virtualHosts = {

View file

@ -2,6 +2,7 @@
config,
pkgs,
inputs,
lib,
...
}: let
# You'll need to edit these values

View file

@ -1,4 +1,8 @@
{config, ...}: {
{
config,
pkgs,
...
}: {
sops.secrets."coturn-auth-secret".mode = "0440";
sops.secrets."coturn-auth-secret".owner = config.users.users.turnserver.name;
users.users.nginx.extraGroups = ["turnserver"];

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [
./grafana
#./loki

View file

@ -1,4 +1,8 @@
{config, ...}: {
{
config,
pkgs,
...
}: {
# grafana configuration
services.grafana = {
enable = true;

View file

@ -1,4 +1,8 @@
{...}: {
{
config,
pkgs,
...
}: {
services.loki = {
enable = true;
configFile = ./loki.yaml;

View file

@ -1,4 +1,8 @@
{...}: {
{
config,
pkgs,
...
}: {
services.prometheus = {
enable = true;
port = 9001;

View file

@ -1,4 +1,11 @@
{config, ...}: {
{
inputs,
lib,
config,
pkgs,
user,
...
}: {
sops.secrets."grafana-telegraf-key".mode = "0440";
sops.secrets."grafana-telegraf-key".owner = config.users.users.telegraf.name;
services.telegraf = {

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [
./conduit
./forgejo

View file

@ -1,4 +1,11 @@
{pkgs, ...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [];
#sops.secrets."mailpassunhash".mode = "0440";

View file

@ -1,4 +1,11 @@
{pkgs, ...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
users.users.gotosocial.extraGroups = ["virtualMail"];
services.nginx = {

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
users.users.jellyfin.extraGroups = ["nextcloud" "aria2"];
services.nginx = {

View file

@ -1,4 +1,11 @@
{config, ...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
sops.secrets."mailpass".mode = "0440";
sops.secrets."mailpass".owner = config.users.users.virtualMail.name;

View file

@ -1,4 +1,8 @@
{...}: {
{
config,
pkgs,
...
}: {
users.users = {
ombi.extraGroups = ["radarr" "sonarr" "aria2" "nextcloud"];
};

View file

@ -1,4 +1,10 @@
{pkgs, ...}: {
{
config,
pkgs,
inputs,
lib,
...
}: {
services.nginx = {
enable = true;
virtualHosts = {

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
config,
pkgs,
...
}: {
services.postgresql = {
# https://nixos.org/manual/nixos/stable/#module-postgresql
package = pkgs.postgresql_16;

View file

@ -1,6 +1,7 @@
{
config,
pkgs,
lib,
...
}: {
# TODO: Figure out how to create packages for some plugins for roundcube!

View file

@ -1,8 +1,10 @@
{
inputs,
outputs,
lib,
config,
pkgs,
pkgs-edge,
...
}: {
imports = [

View file

@ -1,4 +1,11 @@
{...}: {
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";

View file

@ -1,5 +1,8 @@
{
inputs,
outputs,
lib,
config,
pkgs,
pkgs-edge,
...

View file

@ -1,5 +1,10 @@
{
lib,
stdenv,
system,
pkgs,
util-linux,
jq,
writeShellApplication,
}:
writeShellApplication

View file

@ -1,4 +1,6 @@
{
lib,
stdenv,
direnv,
writeShellApplication,
}:

View file

@ -1,4 +1,6 @@
{
lib,
stdenv,
direnv,
writeShellApplication,
}:

View file

@ -1,4 +1,6 @@
{
lib,
stdenv,
git,
gum,
writeShellApplication,

View file

@ -1,4 +1,8 @@
{writeShellApplication}:
{
lib,
stdenv,
writeShellApplication,
}:
writeShellApplication
{
name = "install-nix";

View file

@ -1,4 +1,8 @@
{writeShellApplication}:
{
lib,
stdenv,
writeShellApplication,
}:
writeShellApplication
{
name = "rebuild-no-inhibit";

View file

@ -1,4 +1,8 @@
{writeShellApplication}:
{
lib,
stdenv,
writeShellApplication,
}:
writeShellApplication
{
name = "rebuild";

View file

@ -1,4 +1,8 @@
{writeShellApplication}:
{
lib,
stdenv,
writeShellApplication,
}:
writeShellApplication
{
name = "restart";

View file

@ -1,4 +1,8 @@
{writeShellApplication}:
{
lib,
stdenv,
writeShellApplication,
}:
writeShellApplication
{
name = "update";

View file

@ -1,4 +1,8 @@
{writeShellApplication}:
{
lib,
stdenv,
writeShellApplication,
}:
writeShellApplication
{
name = "upgrade";