Auto: cleanup-2026-05-24T10-18-36Z

This commit is contained in:
2026-05-24 12:18:49 +02:00
parent 4dc460dc0c
commit 16c01a5e67
71 changed files with 1770 additions and 1731 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.anki = {pkgs, ...}: {
environment.systemPackages = [
(pkgs.anki.withAddons [
@@ -52,7 +52,7 @@
])
];
};
flake.homeModules.anki = { ... }: {
flake.homeModules.anki = _: {
programs.anki = {
# we enable system wide with nixpkgs because it offers some addon configuration. We just use this for some config
#enable = true;
+2 -2
View File
@@ -1,6 +1,6 @@
{ ... }: {
_: {
# unused at the moment see ../hardware/battery.nix
flake.homeModules.batsignal = { ... }: {
flake.homeModules.batsignal = _: {
services.batsignal.enable = true;
};
}
+6 -2
View File
@@ -1,12 +1,16 @@
{self, ...}: {
flake.nixosModules.browsers = { pkgs, pkgs-unstable, ...}: {
flake.nixosModules.browsers = {
pkgs,
pkgs-unstable,
...
}: {
environment.systemPackages = with pkgs; [
chromium # used only to flash the firmware on my framework laptop 16 (keyboard.frame.work) as only chromium based browser support webHID.
pkgs-unstable.tor-browser
self.packages.${pkgs.system}.custom-librewolfprofiles
];
};
flake.homeModules.librewolf = { ... }: {
flake.homeModules.librewolf = _: {
# adapted from https://github.com/contre95/dotfiles/blob/main/dotfiles/nixos/programs/librewolf.nix
home.sessionVariables = {
MOZ_ENABLE_WAYLAND = 1;
+1 -2
View File
@@ -4,14 +4,13 @@
# to resolve this https://wiki.nixos.org/wiki/Home_Manager#I_cannot_set_GNOME_or_Gtk_themes_via_Home_Manager
programs.dconf.enable = true;
environment.systemPackages = with pkgs; [
self.packages.${pkgs.system}.qtbatticon
kdePackages.qtdeclarative # provides qmlls and other things
quickshell # we have it but adding it there solves "WARN qt.qpa.services: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.quickshell'")"
];
};
flake.homeModules.caelestia = { ... }: let
flake.homeModules.caelestia = _: let
sisyphe = ../../assets/sisyphe.gif;
pepe-music = ../../assets/pepe-music.gif;
in {
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.homeModules.eza = { ... }: {
_: {
flake.homeModules.eza = _: {
# ls replacement
# see ./zsh.nix for the alias (usefull to se default flags)
programs.eza = {
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.homeModules.fastfetch = { ... }: {
_: {
flake.homeModules.fastfetch = _: {
# Adapted from https://github.com/dacrab/fastfetch-config/blob/main/config.jsonc
programs.fastfetch = {
enable = true;
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.games = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
supertux # fuck mario
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.homeModules.git = { ... }: {
_: {
flake.homeModules.git = _: {
programs.git = {
enable = true;
settings = {
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.homeModules.gtk = {pkgs, ...}: {
# gtk config
gtk.theme = {
+2 -2
View File
@@ -1,6 +1,6 @@
{ ... }: {
_: {
# this was in my home-manager config, but looks like more
flake.nixosModules.hypridle = { ... }: {
flake.nixosModules.hypridle = _: {
services.hypridle = {
enable = true;
settings = {
+6 -2
View File
@@ -1,5 +1,9 @@
{self, ...}: {
flake.nixosModules.hyprland = { pkgs, pkgs-unstable, ... }: {
flake.nixosModules.hyprland = {
pkgs,
pkgs-unstable,
...
}: {
environment.systemPackages = with pkgs; [
swww #wallpaper daemon
gruvbox-gtk-theme
@@ -34,7 +38,7 @@
# Enable the X11 windowing system.
services.xserver.enable = true;
};
flake.homeModules.hyprland-laptop = { ... }: {
flake.homeModules.hyprland-laptop = _: {
wayland.windowManager.hyprland.settings = {
exec-once = [
"qtbatticon" # custom battery tray
+4 -2
View File
@@ -1,4 +1,5 @@
{ ...}: { # for some reason perSystem can't expose pkgs-unstable so we need to expose it here
_: {
# for some reason perSystem can't expose pkgs-unstable so we need to expose it here
# -----------------------------------------------------
# Here are a bunch of scripts that interact with hyprland
# Some are still used. Some are broken. Some are deprecated. But I do still keep them in case I want to go back to old tools
@@ -94,4 +95,5 @@
zsh
'';
};
};}
};
}
+2 -1
View File
@@ -66,4 +66,5 @@
fi
'';
};
};}
};
}
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.homeModules.kitty = { ... }: {
_: {
flake.homeModules.kitty = _: {
programs.kitty = {
enable = true;
#font.name = nerd-fonts._0xproto;
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.nixosModules.ly = { ... }: {
_: {
flake.nixosModules.ly = _: {
# a minimal ly config as the big config (ly.nix) didnt worked
services.displayManager.ly = {
enable = true;
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.mullvad = {pkgs-unstable, ...}: {
services.mullvad-vpn = {
enable = true;
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.homeModules.neovim = {pkgs-unstable, ...}: {
programs.neovim = {
enable = true;
+4 -3
View File
@@ -1,6 +1,6 @@
{ ... }: {
_: {
# obsidian is unused -> see my project https://github.com/tomasriveral/NoteWrapper
flake.homeModules.obsidian = { ... }: {
flake.homeModules.obsidian = _: {
programs.obsidian = {
enable = true;
@@ -122,4 +122,5 @@
exit
'';
};
};}
};
}
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.homeModules.oh-my-posh = { ... }: {
_: {
flake.homeModules.oh-my-posh = _: {
programs.oh-my-posh = {
enable = true;
enableZshIntegration = true;
+4 -4
View File
@@ -1,6 +1,5 @@
{ ... }:
{
flake.homeModules.quickshell = { ... }: {
_: {
flake.homeModules.quickshell = _: {
# pulled from https://codeberg.org/zacoons/rivendell-hyprdots
# replaced by caelestia-shell
qt.enable = true;
@@ -120,4 +119,5 @@
echo "{\"cpu\":\"$cpu\",\"temp\":\"$temp\",\"fan\":\"$fan\",\"mem\":\"$mem\",\"disk\":\"$disk\",\"power\":\"$power\",\"down\":\"$down_speed\",\"up\":\"$up_speed\"}"
'';
};
};}
};
}
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.homeModules.ripgrep = { ... }: {
_: {
flake.homeModules.ripgrep = _: {
programs.ripgrep = {
enable = true;
arguments = [
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.homeModules.rofi = { ... }: {
_: {
flake.homeModules.rofi = _: {
programs.rofi = {
enable = true;
theme = "gruvbox-dark-hard";
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.homeModules.sbb-tui = {pkgs-unstable, ...}: {
home.packages = [
pkgs-unstable.sbb-tui
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.homeModules.ssh = { ... }: {
_: {
flake.homeModules.ssh = _: {
programs.ssh = {
enable = true;
enableDefaultConfig = false; # will be removed in the futur. Removes evaluation warning
+3 -3
View File
@@ -1,11 +1,11 @@
{ ... }: {
_: {
# replaced by caelestia
flake.homeModules.swaync = { ... }: {
flake.homeModules.swaync = _: {
services.swaync = {
enable = true;
};
};
flake.homeModules.swaylock = { ... }: {
flake.homeModules.swaylock = _: {
programs.swaylock = {
enable = true;
settings = {
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.homeModules.thunderbird = { ... }: {
_: {
flake.homeModules.thunderbird = _: {
programs.thunderbird = {
enable = true;
profiles.tomasr = {
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.homeModules.vivify = {pkgs-unstable, ...}: {
home.file.".config/vivify/config.json" = {
enable = true;
+4 -4
View File
@@ -1,6 +1,5 @@
{ ... }:
{
flake.homeModules.waybar = { ... }: {
_: {
flake.homeModules.waybar = _: {
# replaced by caelestia
programs.waybar = {
enable = true;
@@ -713,4 +712,5 @@
"$TEXT1" "$TEXT2" "$TEXT3"
'';
};
};}
};
}
+2 -2
View File
@@ -1,6 +1,6 @@
{ ... }: {
_: {
# replaced by wlogout
flake.homeModules.wlogout = { ... }: let
flake.homeModules.wlogout = _: let
wallpaper = ../../assets/wallpaper1.jpg;
lock = ../../assets/lock.png;
lock-hover = ../../assets/lock-hover.png;
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.homeModules.zoxide = { ... }: {
_: {
flake.homeModules.zoxide = _: {
programs.zoxide = {
enable = true;
enableZshIntegration = true;
+2 -2
View File
@@ -1,5 +1,5 @@
{self, ...}: {
flake.homeModules.zsh-laptop = { ... }: {
flake.homeModules.zsh-laptop = _: {
programs.zsh = {
shellAliases = {
snrt = "git -C ~/nixos add -A && time sudo nixos-rebuild test --flake ~/nixos/#laptop && pkill shell || true && pkill caelestia-shell || true && caelestia-shell -n > /dev/null 2>&1 & disown";
@@ -67,7 +67,7 @@
};
};
};
flake.homeModules.oh-my-zsh = { ... }: {
flake.homeModules.oh-my-zsh = _: {
programs.zsh.oh-my-zsh = {
enable = true;
theme = "jonathan";
+4 -3
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.battery-laptop = {
lib,
config,
@@ -427,8 +427,9 @@
sleep "$INTERVAL"
done
'';
};};
flake.homeModules.cbatticon = { ... }: {
};
};
flake.homeModules.cbatticon = _: {
# don't works. some GTK error. I let it here if someday, someone is interest in this shit.
# ChatGPT half baked a replacement that works on my system.
# see qtbatticon
+1 -1
View File
@@ -1,4 +1,4 @@
{ ...}: {
_: {
flake.nixosModules.bluetooth = {pkgs, ...}: {
hardware.bluetooth.enable = true;
environment.systemPackages = with pkgs; [
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.bootloader-laptop = {
inputs,
pkgs,
+2 -2
View File
@@ -1,11 +1,11 @@
{ ... }: {
_: {
flake.nixosModules.disk = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
gnome-disk-utility
udiskie
];
};
flake.nixosModules.disk-laptop = { ... }: {
flake.nixosModules.disk-laptop = _: {
# i found swap necessary when running nixpkgs review
swapDevices = [
{
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.hardware-configuration-laptop = {
config,
lib,
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.hardwareUtils-laptop = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
# used for the framework 16 laptop
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.nixosModules.udev = { ... }: {
_: {
flake.nixosModules.udev = _: {
# udev with only the necessary rules. See udev.nix to get all the rules
services.udev.extraRules = ''
# adapted from here https://wiki.nixos.org/wiki/Keychron_M6
+8 -6
View File
@@ -1,11 +1,14 @@
{ inputs, self, ...}: {
{
inputs,
self,
...
}: {
flake.nixosConfigurations.laptop = inputs.nixpkgs.lib.nixosSystem {
#system = "x86_64-linux";
specialArgs = {
inherit (self) pkgs-unstable;
};
modules = with self.nixosModules; [
# important do not remove
home-manager-laptop
laptop
@@ -73,7 +76,7 @@
zsh-laptop
];
};
flake.nixosModules.laptop = { ... }: {
flake.nixosModules.laptop = _: {
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
@@ -98,7 +101,7 @@
useUserPackages = true;
extraSpecialArgs = {
pkgs-unstable = self.pkgs-unstable;
inherit (self) pkgs-unstable;
inherit self;
};
};
@@ -108,8 +111,7 @@
};
home-manager.users.tomasr = self.homeModules.laptop;
};
flake.homeModules.tomasr = { ... }: {
flake.homeModules.tomasr = _: {
home.username = "tomasr";
home.homeDirectory = "/home/tomasr";
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.IO = {pkgs, ...}: {
# Configure keymap in X11
services.xserver.xkb = {
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.homeModules.cursor = {pkgs, ...}: {
home.pointerCursor = {
hyprcursor.enable = true;
+2 -2
View File
@@ -1,5 +1,5 @@
{ ... }: {
flake.homeModules.desktopEntries = { ... }: {
_: {
flake.homeModules.desktopEntries = _: {
# for when the system lacks of a .desktop file
home.file.".local/share/applications/org.quickshell.desktop" = {
enable = true;
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.fonts = {pkgs, ...}: {
# fonts
fonts.packages = with pkgs; [
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.printer = {pkgs, ...}: {
#https://wiki.nixos.org/wiki/Printing
services.avahi = {
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.user = {
pkgs,
pkgs-unstable,
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
perSystem = {pkgs, ...}: {
packages.custom-bottom = pkgs.writeShellApplication {
name = "custom-bottom";
+1 -2
View File
@@ -1,5 +1,4 @@
{ ... }: {
_: {
perSystem = {pkgs, ...}: {
packages.custom-colorpicker = pkgs.writeShellApplication {
# useless. Just use hyprpicker
+3 -2
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
perSystem = {pkgs, ...}: {
packages.custom-cowsay = pkgs.writeShellApplication {
name = "custom-cowsay";
@@ -80,4 +80,5 @@
'';
# reduce terminal size for actually
};
};}
};
}
@@ -1,4 +1,4 @@
{ ... }: {
_: {
perSystem = {pkgs, ...}: {
# fzf librewolf profile selector
packages.custom-librewolfprofiles = pkgs.writeShellApplication {
+5 -4
View File
@@ -1,10 +1,10 @@
{ ... }:
{
_: {
perSystem = {pkgs, ...}: {
# counts how many syllabes in a string.
# not perfect. Does not handle silents e in french
# but that's what I use for writing poetry
packages.custom-syllabes = pkgs.writers.writePython3Bin "custom-syllabes" {
packages.custom-syllabes =
pkgs.writers.writePython3Bin "custom-syllabes" {
libraries = with pkgs; [
python3Packages.pyphen
];
@@ -27,4 +27,5 @@
print(f"{total} ({'/'.join(chunks)})")
'';
};}
};
}
+1 -2
View File
@@ -1,5 +1,4 @@
{ ... }:
{
_: {
perSystem = {pkgs, ...}: {
packages.custom-tomato = pkgs.writeShellApplication {
name = "custom-tomato";
+3 -3
View File
@@ -1,5 +1,4 @@
{ ... }:
{
_: {
perSystem = {pkgs, ...}: {
packages.custom-weather = pkgs.writeShellApplication {
name = "custom-weather";
@@ -13,4 +12,5 @@
done
'';
};
};}
};
}
+6 -6
View File
@@ -1,9 +1,8 @@
{self, ...}: {
perSystem = { pkgs, ...}:
let
pkgs-unstable = self.pkgs-unstable;
in
{ # perSystem doesnt like pkgs-unstable we must input it globally
perSystem = {pkgs, ...}: let
inherit (self) pkgs-unstable;
in {
# perSystem doesnt like pkgs-unstable we must input it globally
packages.dejaManuallyDerived = pkgs-unstable.buildGoModule (finalAttrs: {
pname = "deja";
version = "0.2.6";
@@ -38,4 +37,5 @@
mainProgram = "deja";
};
});
};}
};
}
+8 -3
View File
@@ -1,5 +1,9 @@
{ ... }: {
perSystem = { pkgs, pkgs-unstable, ... }: {
_: {
perSystem = {
pkgs,
pkgs-unstable,
...
}: {
packages.sbb-tuiManuallyDerived = pkgs-unstable.buildGoModule (finalAttrs: {
pname = "sbb-tui";
version = "1.14.2";
@@ -36,4 +40,5 @@
mainProgram = "sbb-tui";
};
});
}; }
};
}
+8 -3
View File
@@ -1,5 +1,9 @@
{ ... }: {
perSystem = { pkgs, nodejs, ... }: {
_: {
perSystem = {
pkgs,
nodejs,
...
}: {
packages.vivifyManuallyDerived = pkgs.stdenv.mkDerivation (finalAttrs: {
pname = "vivify";
version = "0.14.0";
@@ -75,4 +79,5 @@
mainProgram = "viv";
};
});
};}
};
}
+2 -1
View File
@@ -57,4 +57,5 @@
pkill -f "kitty.*Select audio output"
'';
};
};}
};
}
+7 -2
View File
@@ -1,5 +1,9 @@
{self, ...}: {
flake.nixosModules.autoCleanup-laptop = {pkgs, pkgs-unstable, ...}: {
flake.nixosModules.autoCleanup-laptop = {
pkgs,
pkgs-unstable,
...
}: {
# Ensure your script is available system-wide
environment.systemPackages = [
self.packages.${pkgs.system}.custom-cleanNix-laptop
@@ -116,4 +120,5 @@
rm -f "$ERROR_FILE"
'';
};
};}
};
}
+2 -1
View File
@@ -106,4 +106,5 @@
rm -f "$ERROR_FILE"
'';
};
};}
};
}
@@ -58,4 +58,5 @@
fi
'';
};
};}
};
}
+6 -3
View File
@@ -1,6 +1,9 @@
{ ... }:
{
flake.nixosModules.development = { pkgs, pkgs-unstable, ... }: {
_: {
flake.nixosModules.development = {
pkgs,
pkgs-unstable,
...
}: {
programs.nix-ld.enable = true; #Run unpatched dynamic binaries on NixOS. For example lets run ./a.out from gcc
environment.systemPackages = with pkgs; [
gcc
+5 -2
View File
@@ -1,4 +1,6 @@
{ self, ... }: let cacheTime = "10"; in {
{self, ...}: let
cacheTime = "10";
in {
flake.nixosModules.documentation = {pkgs, ...}: {
# unfortunatly this adds a lot of computation when nix rebuilds
documentation.man.generateCaches = true; # used for the man script
@@ -89,4 +91,5 @@
| xargs manix
'';
};
};}
};
}
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.latex = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
texlab
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.networking = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
wget
+4 -4
View File
@@ -1,6 +1,5 @@
{ inputs, ... }:
{
flake.nixosModules.nixUtils-laptop = { ... }: {
{inputs, ...}: {
flake.nixosModules.nixUtils-laptop = _: {
# nixpkgs-review crashed my laptop multiple times. We must reduce how much ressources it can take.
# for reference, my laptop is a 12 core ryzen 7
nix.settings.max-jobs = 6;
@@ -298,4 +297,5 @@
'';
};
};}
};
}
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.office = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
libreoffice
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: {
_: {
flake.nixosModules.ollama = {pkgs-unstable, ...}: {
services.ollama = {
enable = true;
+2 -1
View File
@@ -1,5 +1,6 @@
{self, ...}: {
flake.nixosModules.otherUtils = # try to keep packages here at a minium. Preferably use a dedicated file
flake.nixosModules.otherUtils =
# try to keep packages here at a minium. Preferably use a dedicated file
{
pkgs,
pkgs-unstable,