mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
Auto: cleanup-2026-05-24T10-18-36Z
This commit is contained in:
@@ -23,8 +23,8 @@
|
|||||||
};
|
};
|
||||||
import-tree.url = "github:vic/import-tree"; # imports ./modules recursively
|
import-tree.url = "github:vic/import-tree"; # imports ./modules recursively
|
||||||
};
|
};
|
||||||
outputs = inputs @ { flake-parts, ... }:
|
outputs = inputs @ {flake-parts, ...}:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; }
|
flake-parts.lib.mkFlake {inherit inputs;}
|
||||||
({
|
({
|
||||||
flake = let
|
flake = let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
@@ -47,4 +47,4 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
// (inputs.import-tree ./modules));
|
// (inputs.import-tree ./modules));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.nixosModules.anki = { pkgs, ... }: {
|
flake.nixosModules.anki = {pkgs, ...}: {
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
(pkgs.anki.withAddons [
|
(pkgs.anki.withAddons [
|
||||||
(pkgs.ankiAddons.recolor.withConfig {
|
(pkgs.ankiAddons.recolor.withConfig {
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,17 +1,16 @@
|
|||||||
{ self, ... }: {
|
{self, ...}: {
|
||||||
flake.nixosModules.caelestia = { pkgs, ... }: {
|
flake.nixosModules.caelestia = {pkgs, ...}: {
|
||||||
qt.enable = true;
|
qt.enable = true;
|
||||||
# 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 {
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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,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
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.homeModules.git = { ... }: {
|
flake.homeModules.git = _: {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.homeModules.gtk = {pkgs, ...}: {
|
flake.homeModules.gtk = {pkgs, ...}: {
|
||||||
# gtk config
|
# gtk config
|
||||||
gtk.theme = {
|
gtk.theme = {
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
{ ...}: { # 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
|
# 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
|
||||||
perSystem = { pkgs, ... }: let
|
# -----------------------------------------------------
|
||||||
|
perSystem = {pkgs, ...}: let
|
||||||
wallpaper1 = ../../assets/wallpaper1.jpg;
|
wallpaper1 = ../../assets/wallpaper1.jpg;
|
||||||
wallpaper2 = ../../assets/wallpaper2.jpg;
|
wallpaper2 = ../../assets/wallpaper2.jpg;
|
||||||
wallpaper3 = ../../assets/wallpaper3.jpg;
|
wallpaper3 = ../../assets/wallpaper3.jpg;
|
||||||
@@ -94,4 +95,5 @@
|
|||||||
zsh
|
zsh
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ self, ... }: {
|
{self, ...}: {
|
||||||
flake.nixosModules.kdrive = { pkgs-unstable, ... }: {
|
flake.nixosModules.kdrive = {pkgs-unstable, ...}: {
|
||||||
environment.systemPackages = with pkgs-unstable; [
|
environment.systemPackages = with pkgs-unstable; [
|
||||||
rclone
|
rclone
|
||||||
self.packages.${pkgs.system}.custom-checkKdrive
|
self.packages.${pkgs.system}.custom-checkKdrive
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
perSystem = { pkgs, ... }: {
|
perSystem = {pkgs, ...}: {
|
||||||
packages.custom-checkKdrive = pkgs.writeShellApplication {
|
packages.custom-checkKdrive = pkgs.writeShellApplication {
|
||||||
name = "custom-checkKdrive";
|
name = "custom-checkKdrive";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
@@ -66,4 +66,5 @@
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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,5 +1,5 @@
|
|||||||
{ inputs, ... }: {
|
{inputs, ...}: {
|
||||||
flake.hostModules.micro = { pkgs-unstable, ... }: {
|
flake.hostModules.micro = {pkgs-unstable, ...}: {
|
||||||
programs.micro = {
|
programs.micro = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs-unstable.micro-full;
|
package = pkgs-unstable.micro-full;
|
||||||
|
|||||||
@@ -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,4 +1,4 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.homeModules.neovim = {pkgs-unstable, ...}: {
|
flake.homeModules.neovim = {pkgs-unstable, ...}: {
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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\"}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.homeModules.ripgrep = { ... }: {
|
flake.homeModules.ripgrep = _: {
|
||||||
programs.ripgrep = {
|
programs.ripgrep = {
|
||||||
enable = true;
|
enable = true;
|
||||||
arguments = [
|
arguments = [
|
||||||
|
|||||||
@@ -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,5 +1,5 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.homeModules.sbb-tui = { pkgs-unstable, ... }: {
|
flake.homeModules.sbb-tui = {pkgs-unstable, ...}: {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs-unstable.sbb-tui
|
pkgs-unstable.sbb-tui
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.homeModules.thunderbird = { ... }: {
|
flake.homeModules.thunderbird = _: {
|
||||||
programs.thunderbird = {
|
programs.thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles.tomasr = {
|
profiles.tomasr = {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{ ... }:
|
_: {
|
||||||
{
|
flake.homeModules.waybar = _: {
|
||||||
flake.homeModules.waybar = { ... }: {
|
|
||||||
# replaced by caelestia
|
# replaced by caelestia
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -694,7 +693,7 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
perSystem = { pkgs, ... }: {
|
perSystem = {pkgs, ...}: {
|
||||||
packages.custom-weatherwaybar = pkgs.writeShellApplication {
|
packages.custom-weatherwaybar = pkgs.writeShellApplication {
|
||||||
name = "custom-weatherwaybar";
|
name = "custom-weatherwaybar";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
@@ -713,4 +712,5 @@
|
|||||||
"$TEXT1" "$TEXT2" "$TEXT3"
|
"$TEXT1" "$TEXT2" "$TEXT3"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.homeModules.zoxide = { ... }: {
|
flake.homeModules.zoxide = _: {
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
|
|||||||
@@ -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";
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
flake.homeModules.zsh = {pkgs,...}: {
|
flake.homeModules.zsh = {pkgs, ...}: {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
self.packages.${pkgs.system}.dejaManuallyDerived
|
self.packages.${pkgs.system}.dejaManuallyDerived
|
||||||
#pkgs-unstable.deja
|
#pkgs-unstable.deja
|
||||||
@@ -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";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.nixosModules.battery-laptop = {
|
flake.nixosModules.battery-laptop = {
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
};
|
};
|
||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
perSystem = { pkgs, ... }: let
|
perSystem = {pkgs, ...}: let
|
||||||
NotifySound = ../../assets/battery_notify.mp3;
|
NotifySound = ../../assets/battery_notify.mp3;
|
||||||
in {
|
in {
|
||||||
packages.custom-batterynotify = pkgs.writeShellApplication {
|
packages.custom-batterynotify = pkgs.writeShellApplication {
|
||||||
@@ -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,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,4 +1,4 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.nixosModules.bootloader-laptop = {
|
flake.nixosModules.bootloader-laptop = {
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
|||||||
@@ -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,4 +1,4 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.nixosModules.hardware-configuration-laptop = {
|
flake.nixosModules.hardware-configuration-laptop = {
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
+13
-11
@@ -1,16 +1,19 @@
|
|||||||
{ 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
|
||||||
{ nixpkgs.pkgs = self.pkgs; }
|
{nixpkgs.pkgs = self.pkgs;}
|
||||||
# keep this alphabetically organised
|
# keep this alphabetically organised
|
||||||
anki
|
anki
|
||||||
audioAndMedia
|
audioAndMedia
|
||||||
autoCleanup-laptop
|
autoCleanup-laptop
|
||||||
@@ -44,7 +47,7 @@
|
|||||||
user
|
user
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
flake.homeModules.laptop = { ... }: {
|
flake.homeModules.laptop = {...}: {
|
||||||
imports = with self.homeModules; [
|
imports = with self.homeModules; [
|
||||||
inputs.caelestia-shell.homeManagerModules.default
|
inputs.caelestia-shell.homeManagerModules.default
|
||||||
anki
|
anki
|
||||||
@@ -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. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
@@ -86,19 +89,19 @@
|
|||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
flake.nixosModules.home-manager-laptop = { pkgs, ... }: {
|
flake.nixosModules.home-manager-laptop = {pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.default # import official home-manager NixOS module
|
inputs.home-manager.nixosModules.default # import official home-manager NixOS module
|
||||||
];
|
];
|
||||||
|
|
||||||
# Warning. Git is used in case I break everything up. It already saved me once
|
# Warning. Git is used in case I break everything up. It already saved me once
|
||||||
environment.systemPackages = [ pkgs.git ];
|
environment.systemPackages = [pkgs.git];
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
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,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,4 +1,4 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.homeModules.cursor = {pkgs, ...}: {
|
flake.homeModules.cursor = {pkgs, ...}: {
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
hyprcursor.enable = true;
|
hyprcursor.enable = true;
|
||||||
|
|||||||
@@ -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,5 +1,5 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.nixosModules.fonts = { pkgs, ... }: {
|
flake.nixosModules.fonts = {pkgs, ...}: {
|
||||||
# fonts
|
# fonts
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
nerd-fonts._0xproto
|
nerd-fonts._0xproto
|
||||||
|
|||||||
@@ -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,4 +1,4 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.nixosModules.user = {
|
flake.nixosModules.user = {
|
||||||
pkgs,
|
pkgs,
|
||||||
pkgs-unstable,
|
pkgs-unstable,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
perSystem = { pkgs, ... }: {
|
perSystem = {pkgs, ...}: {
|
||||||
packages.custom-bottom = pkgs.writeShellApplication {
|
packages.custom-bottom = pkgs.writeShellApplication {
|
||||||
name = "custom-bottom";
|
name = "custom-bottom";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
@@ -10,5 +10,5 @@
|
|||||||
kitty --class "custom-bottom" -o font_size=10 --name "custom-bottom" -e btm --theme gruvbox --disable-click --disable_advanced_kill --enable_cache_memory -g -R -T
|
kitty --class "custom-bottom" -o font_size=10 --name "custom-bottom" -e btm --theme gruvbox --disable-click --disable_advanced_kill --enable_cache_memory -g -R -T
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
|
perSystem = {pkgs, ...}: {
|
||||||
perSystem = { pkgs, ... }: {
|
|
||||||
packages.custom-colorpicker = pkgs.writeShellApplication {
|
packages.custom-colorpicker = pkgs.writeShellApplication {
|
||||||
# useless. Just use hyprpicker
|
# useless. Just use hyprpicker
|
||||||
name = "custom-colorpicker";
|
name = "custom-colorpicker";
|
||||||
@@ -71,5 +70,5 @@
|
|||||||
pkill -RTMIN+1 waybar
|
pkill -RTMIN+1 waybar
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
perSystem = { pkgs, ... }: {
|
perSystem = {pkgs, ...}: {
|
||||||
packages.custom-cowsay = pkgs.writeShellApplication {
|
packages.custom-cowsay = pkgs.writeShellApplication {
|
||||||
name = "custom-cowsay";
|
name = "custom-cowsay";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
@@ -80,4 +80,5 @@
|
|||||||
'';
|
'';
|
||||||
# reduce terminal size for actually
|
# reduce terminal size for actually
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
perSystem = { pkgs, ... }: {
|
perSystem = {pkgs, ...}: {
|
||||||
# fzf librewolf profile selector
|
# fzf librewolf profile selector
|
||||||
packages.custom-librewolfprofiles = pkgs.writeShellApplication {
|
packages.custom-librewolfprofiles = pkgs.writeShellApplication {
|
||||||
name = "custom-librewolfprofiles";
|
name = "custom-librewolfprofiles";
|
||||||
|
|||||||
@@ -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,6 +1,5 @@
|
|||||||
{ ... }:
|
_: {
|
||||||
{
|
perSystem = {pkgs, ...}: {
|
||||||
perSystem = { pkgs, ...}: {
|
|
||||||
packages.custom-tomato = pkgs.writeShellApplication {
|
packages.custom-tomato = pkgs.writeShellApplication {
|
||||||
name = "custom-tomato";
|
name = "custom-tomato";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
@@ -11,5 +10,5 @@
|
|||||||
kitty --class "custom-pomodoro" --name "custom-pomodoro" -e tomato
|
kitty --class "custom-pomodoro" --name "custom-pomodoro" -e tomato
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{ ... }:
|
_: {
|
||||||
{
|
perSystem = {pkgs, ...}: {
|
||||||
perSystem = { pkgs, ... }: {
|
|
||||||
packages.custom-weather = pkgs.writeShellApplication {
|
packages.custom-weather = pkgs.writeShellApplication {
|
||||||
name = "custom-weather";
|
name = "custom-weather";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
@@ -13,4 +12,5 @@
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -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";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -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";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}; }
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -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";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# see https://www.vimjoyer.com/nix/dendritic-home-manager
|
# see https://www.vimjoyer.com/nix/dendritic-home-manager
|
||||||
{ inputs, ... }: {
|
{inputs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
# adds home-manager options to flake-parts
|
# adds home-manager options to flake-parts
|
||||||
inputs.home-manager.flakeModules.home-manager
|
inputs.home-manager.flakeModules.home-manager
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ self, ... }: {
|
{self, ...}: {
|
||||||
flake.nixosModules.audioAndMedia = {pkgs, ...}: {
|
flake.nixosModules.audioAndMedia = {pkgs, ...}: {
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
services.pulseaudio.enable = false;
|
services.pulseaudio.enable = false;
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
source = "${pkgs.gpu-screen-recorder}/bin/gsr-kms-server";
|
source = "${pkgs.gpu-screen-recorder}/bin/gsr-kms-server";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
perSystem = { pkgs, ...}: {
|
perSystem = {pkgs, ...}: {
|
||||||
packages.custom-changeAudioOutput = pkgs.writeShellApplication {
|
packages.custom-changeAudioOutput = pkgs.writeShellApplication {
|
||||||
name = "custom-changeAudioOutput";
|
name = "custom-changeAudioOutput";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
@@ -57,4 +57,5 @@
|
|||||||
pkill -f "kitty.*Select audio output"
|
pkill -f "kitty.*Select audio output"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -45,7 +49,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
perSystem = { pkgs, ... }: {
|
perSystem = {pkgs, ...}: {
|
||||||
packages.custom-cleanNix-laptop = pkgs.writeShellApplication {
|
packages.custom-cleanNix-laptop = pkgs.writeShellApplication {
|
||||||
name = "custom-cleanNix";
|
name = "custom-cleanNix";
|
||||||
|
|
||||||
@@ -116,4 +120,5 @@
|
|||||||
rm -f "$ERROR_FILE"
|
rm -f "$ERROR_FILE"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ self, ... }: {
|
{self, ...}: {
|
||||||
flake.nixosModules.autoUpdate-laptop = {pkgs, ...}: {
|
flake.nixosModules.autoUpdate-laptop = {pkgs, ...}: {
|
||||||
# Ensure your script is available system-wide
|
# Ensure your script is available system-wide
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
@@ -106,4 +106,5 @@
|
|||||||
rm -f "$ERROR_FILE"
|
rm -f "$ERROR_FILE"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ self, ...}: {
|
{self, ...}: {
|
||||||
flake.nixosModules.notifications = { pkgs, ... }: {
|
flake.nixosModules.notifications = {pkgs, ...}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
libnotify # Library that sends desktop notifications to a notification daemon
|
libnotify # Library that sends desktop notifications to a notification daemon
|
||||||
socat # Utility for bidirectional data transfer between two independent data channels (used to communicate between hyprland and swww to change wallpapers dinamically)
|
socat # Utility for bidirectional data transfer between two independent data channels (used to communicate between hyprland and swww to change wallpapers dinamically)
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
self.packages.${pkgs.system}.custom-checkKdrive # check if kdrive is set up with rclone
|
self.packages.${pkgs.system}.custom-checkKdrive # check if kdrive is set up with rclone
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
perSystem = { pkgs, ...}: {
|
perSystem = {pkgs, ...}: {
|
||||||
packages.custom-checkMatrix = pkgs.writeShellApplication {
|
packages.custom-checkMatrix = pkgs.writeShellApplication {
|
||||||
name = "custom-checkMatrix";
|
name = "custom-checkMatrix";
|
||||||
|
|
||||||
@@ -58,4 +58,5 @@
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
{ self, ... }: let cacheTime = "10"; in {
|
{self, ...}: let
|
||||||
flake.nixosModules.documentation = { pkgs, ... }: {
|
cacheTime = "10";
|
||||||
|
in {
|
||||||
|
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
|
||||||
|
|
||||||
@@ -14,7 +16,7 @@
|
|||||||
self.packages.${pkgs.system}.custom-manix
|
self.packages.${pkgs.system}.custom-manix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
perSystem = { pkgs, ... }: {
|
perSystem = {pkgs, ...}: {
|
||||||
packages.custom-man = pkgs.writeShellApplication {
|
packages.custom-man = pkgs.writeShellApplication {
|
||||||
name = "custom-man";
|
name = "custom-man";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
@@ -89,4 +91,5 @@
|
|||||||
| xargs manix
|
| xargs manix
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.nixosModules.latex = {pkgs, ...}: {
|
flake.nixosModules.latex = {pkgs, ...}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
texlab
|
texlab
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.nixosModules.networking = {pkgs, ...}: {
|
flake.nixosModules.networking = {pkgs, ...}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wget
|
wget
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
{ 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;
|
||||||
nix.settings.cores = 6;
|
nix.settings.cores = 6;
|
||||||
};
|
};
|
||||||
flake.nixosModules.nixUtils = { pkgs-unstable, ... }: {
|
flake.nixosModules.nixUtils = {pkgs-unstable, ...}: {
|
||||||
# Garbage collector of generations
|
# Garbage collector of generations
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
@@ -35,7 +34,7 @@
|
|||||||
statix
|
statix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
perSystem = { pkgs, ... }: {
|
perSystem = {pkgs, ...}: {
|
||||||
# https://gist.github.com/MaxwellDupre/3077cd229490cf93ecab08ef2a79c852
|
# https://gist.github.com/MaxwellDupre/3077cd229490cf93ecab08ef2a79c852
|
||||||
# better garbage collector
|
# better garbage collector
|
||||||
packages.custom-trimmer = pkgs.writeShellApplication {
|
packages.custom-trimmer = pkgs.writeShellApplication {
|
||||||
@@ -298,4 +297,5 @@
|
|||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};}
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.nixosModules.office = {pkgs, ...}: {
|
flake.nixosModules.office = {pkgs, ...}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
libreoffice
|
libreoffice
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ ... }: {
|
_: {
|
||||||
flake.nixosModules.ollama = {pkgs-unstable, ...}: {
|
flake.nixosModules.ollama = {pkgs-unstable, ...}: {
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user