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