mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
Formated with alejandra
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
url = "github:nix-community/home-manager/release-25.11";
|
url = "github:nix-community/home-manager/release-25.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
caelestia-shell = { # based on quickshell. See https://github.com/caelestia-dots/shell
|
caelestia-shell = {
|
||||||
|
# based on quickshell. See https://github.com/caelestia-dots/shell
|
||||||
url = "github:caelestia-dots/shell";
|
url = "github:caelestia-dots/shell";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,10 +8,7 @@
|
|||||||
libs,
|
libs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
@@ -23,7 +20,6 @@
|
|||||||
../../modules/nixos/udevsimple.nix
|
../../modules/nixos/udevsimple.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
documentation.man.generateCaches = true; # used for the man script
|
documentation.man.generateCaches = true; # used for the man script
|
||||||
@@ -83,7 +79,8 @@
|
|||||||
# zsh dont want to work if it is not initialzed here.
|
# zsh dont want to work if it is not initialzed here.
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
security.wrappers.gsr-kms-server = { # to remove the password prompt when using gpu-screen-recorder
|
security.wrappers.gsr-kms-server = {
|
||||||
|
# to remove the password prompt when using gpu-screen-recorder
|
||||||
owner = "root";
|
owner = "root";
|
||||||
group = "root";
|
group = "root";
|
||||||
capabilities = "cap_sys_admin+ep";
|
capabilities = "cap_sys_admin+ep";
|
||||||
@@ -160,7 +157,6 @@
|
|||||||
options = "--delete-older-than 7d"; # every week delete generations older than a month
|
options = "--delete-older-than 7d"; # every week delete generations older than a month
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true; # Nonfree packages: Obsidian
|
nixpkgs.config.allowUnfree = true; # Nonfree packages: Obsidian
|
||||||
|
|
||||||
@@ -223,7 +219,8 @@
|
|||||||
krita # image edition
|
krita # image edition
|
||||||
yt-dlp # some youtube downloader
|
yt-dlp # some youtube downloader
|
||||||
vlc
|
vlc
|
||||||
(pkgs-unstable.python314.withPackages (ps: with ps; [
|
(pkgs-unstable.python314.withPackages (ps:
|
||||||
|
with ps; [
|
||||||
matplotlib
|
matplotlib
|
||||||
networkx
|
networkx
|
||||||
scipy
|
scipy
|
||||||
@@ -234,7 +231,8 @@
|
|||||||
# utils for dev
|
# utils for dev
|
||||||
pkg-config
|
pkg-config
|
||||||
gdb
|
gdb
|
||||||
raylib glfw # raylib and some dependecies
|
raylib
|
||||||
|
glfw # raylib and some dependecies
|
||||||
rembg # background remover
|
rembg # background remover
|
||||||
#some nix tools
|
#some nix tools
|
||||||
manix
|
manix
|
||||||
|
|||||||
@@ -92,7 +92,8 @@
|
|||||||
pkgs.gruvbox-gtk-theme
|
pkgs.gruvbox-gtk-theme
|
||||||
pkgs.biber
|
pkgs.biber
|
||||||
(pkgs.texliveMedium.withPackages (
|
(pkgs.texliveMedium.withPackages (
|
||||||
ps: with ps; [
|
ps:
|
||||||
|
with ps; [
|
||||||
# these few pkgs are used in the CV template
|
# these few pkgs are used in the CV template
|
||||||
titlesec # allows creating custom \section
|
titlesec # allows creating custom \section
|
||||||
marvosym # some symboles
|
marvosym # some symboles
|
||||||
@@ -125,7 +126,8 @@
|
|||||||
footmisc
|
footmisc
|
||||||
#(setq org-latex-compiler "lualatex")
|
#(setq org-latex-compiler "lualatex")
|
||||||
#(setq org-preview-latex-default-process 'dvisvgm)
|
#(setq org-preview-latex-default-process 'dvisvgm)
|
||||||
]))
|
]
|
||||||
|
))
|
||||||
# # It is sometimes useful to fine-tune packages, for example, by applying
|
# # It is sometimes useful to fine-tune packages, for example, by applying
|
||||||
# # overrides. You can do that directly here, just don't forget the
|
# # overrides. You can do that directly here, just don't forget the
|
||||||
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
||||||
|
|||||||
@@ -4,13 +4,12 @@
|
|||||||
pkgs-unstable,
|
pkgs-unstable,
|
||||||
caelestia-shell,
|
caelestia-shell,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
sisyphe = ../../assets/sisyphe.gif;
|
sisyphe = ../../assets/sisyphe.gif;
|
||||||
pepe-music = ../../assets/pepe-music.gif;
|
pepe-music = ../../assets/pepe-music.gif;
|
||||||
in {
|
in {
|
||||||
|
home.file.".face" = {
|
||||||
home.file.".face" = { # this is were caelestia will search for profiles pictures
|
# this is were caelestia will search for profiles pictures
|
||||||
source = ../../assets/sisyphePFP.png;
|
source = ../../assets/sisyphePFP.png;
|
||||||
};
|
};
|
||||||
# set profile picture in ~/.face
|
# set profile picture in ~/.face
|
||||||
@@ -21,7 +20,8 @@ in {
|
|||||||
target = "graphical-session.target";
|
target = "graphical-session.target";
|
||||||
environment = [];
|
environment = [];
|
||||||
};
|
};
|
||||||
settings = { # default config https://github.com/caelestia-dots/shell?tab=readme-ov-file#example-configuration
|
settings = {
|
||||||
|
# default config https://github.com/caelestia-dots/shell?tab=readme-ov-file#example-configuration
|
||||||
appearance = {
|
appearance = {
|
||||||
mediaGifSpeedAdjustment = 500;
|
mediaGifSpeedAdjustment = 500;
|
||||||
sessionGifSpeed = 0.7;
|
sessionGifSpeed = 0.7;
|
||||||
@@ -30,7 +30,8 @@ in {
|
|||||||
scale = 1;
|
scale = 1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
/*font = {
|
/*
|
||||||
|
font = {
|
||||||
family = {
|
family = {
|
||||||
clock = "Rubik"; # (TODO figure out those fonts)
|
clock = "Rubik"; # (TODO figure out those fonts)
|
||||||
material = "Material Symboles Rounded";
|
material = "Material Symboles Rounded";
|
||||||
@@ -40,7 +41,8 @@ in {
|
|||||||
size = {
|
size = {
|
||||||
scale = 1;
|
scale = 1;
|
||||||
};
|
};
|
||||||
};*/
|
};
|
||||||
|
*/
|
||||||
padding = {
|
padding = {
|
||||||
scale = 1;
|
scale = 1;
|
||||||
};
|
};
|
||||||
@@ -361,7 +363,8 @@ in {
|
|||||||
maxShown = 7;
|
maxShown = 7;
|
||||||
maxWallpapers = 9;
|
maxWallpapers = 9;
|
||||||
specialPrefix = "@";
|
specialPrefix = "@";
|
||||||
useFuzzy = { # should try
|
useFuzzy = {
|
||||||
|
# should try
|
||||||
apps = false;
|
apps = false;
|
||||||
actions = false;
|
actions = false;
|
||||||
schemes = false;
|
schemes = false;
|
||||||
@@ -384,7 +387,8 @@ in {
|
|||||||
openeExpanded = false;
|
openeExpanded = false;
|
||||||
expire = true;
|
expire = true;
|
||||||
};
|
};
|
||||||
osd = { # thats the slider for brightness and sound
|
osd = {
|
||||||
|
# thats the slider for brightness and sound
|
||||||
enabled = true;
|
enabled = true;
|
||||||
enableBrightness = true;
|
enableBrightness = true;
|
||||||
enableMicrophone = false;
|
enableMicrophone = false;
|
||||||
@@ -495,7 +499,8 @@ in {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
cli = { # default config https://github.com/caelestia-dots/cli?tab=readme-ov-file#configuring
|
cli = {
|
||||||
|
# default config https://github.com/caelestia-dots/cli?tab=readme-ov-file#configuring
|
||||||
enable = true; # Also add caelestia-cli to path
|
enable = true; # Also add caelestia-cli to path
|
||||||
settings = {
|
settings = {
|
||||||
record = {
|
record = {
|
||||||
|
|||||||
@@ -1,11 +1,16 @@
|
|||||||
{ config, pkgs, ... }: # ls replacement
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
# 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 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
theme = { # from https://github.com/eza-community/eza-themes/blob/main/themes/gruvbox-dark.yml
|
theme = {
|
||||||
|
# from https://github.com/eza-community/eza-themes/blob/main/themes/gruvbox-dark.yml
|
||||||
colourful = true;
|
colourful = true;
|
||||||
|
|
||||||
filekinds = {
|
filekinds = {
|
||||||
|
|||||||
@@ -149,13 +149,15 @@ in {
|
|||||||
"Ctrl+Alt, 7, exec, caelestia shell gameMode toggle"
|
"Ctrl+Alt, 7, exec, caelestia shell gameMode toggle"
|
||||||
# reloads the autostart programs # pos 3 1
|
# reloads the autostart programs # pos 3 1
|
||||||
# we passed to caelestia-shell and stoped using that
|
# we passed to caelestia-shell and stoped using that
|
||||||
/*"Ctrl+$mod, 4, exec, sleep 1 && kitty -o font_size=16 -e sh -c 'custom-weather'"
|
/*
|
||||||
|
"Ctrl+$mod, 4, exec, sleep 1 && kitty -o font_size=16 -e sh -c 'custom-weather'"
|
||||||
"Ctrl+$mod, 4, exec, sleep 1 && kitty -o font_size=11 -e sh -c 'custom-cowsay'"
|
"Ctrl+$mod, 4, exec, sleep 1 && kitty -o font_size=11 -e sh -c 'custom-cowsay'"
|
||||||
"Ctrl+$mod, 4, exec, kitty -e 'custom-launch'"
|
"Ctrl+$mod, 4, exec, kitty -e 'custom-launch'"
|
||||||
"Ctrl+$mod, 4, exec, sleep 1 && kitty -o font_size=5 -e btm --theme gruvbox --disable-click --disable_advanced_kill --enable_cache_memory -g -R -T "
|
"Ctrl+$mod, 4, exec, sleep 1 && kitty -o font_size=5 -e btm --theme gruvbox --disable-click --disable_advanced_kill --enable_cache_memory -g -R -T "
|
||||||
"Ctrl+$mod, 4, exec, sleep 1 && kitty -o font_size=1 -e sh -c 'cmatrix -br'"
|
"Ctrl+$mod, 4, exec, sleep 1 && kitty -o font_size=1 -e sh -c 'cmatrix -br'"
|
||||||
#"Ctrl+Alt, 1, exec, swaync-client -t" # pos 4 1 notification center
|
#"Ctrl+Alt, 1, exec, swaync-client -t" # pos 4 1 notification center
|
||||||
"Ctrl+Alt, 1, exec, qs ipc call notifications toggle" */
|
"Ctrl+Alt, 1, exec, qs ipc call notifications toggle"
|
||||||
|
*/
|
||||||
"Ctrl+Alt, 1, exec, caelestia shell drawers toggle sidebar"
|
"Ctrl+Alt, 1, exec, caelestia shell drawers toggle sidebar"
|
||||||
"Ctrl+$mod, 4, exec, caelestia shell notifs toggleDnd"
|
"Ctrl+$mod, 4, exec, caelestia shell notifs toggleDnd"
|
||||||
"Ctrl+$mod, 3, exec, pavucontrol" # pos 1 2 audiocontrol
|
"Ctrl+$mod, 3, exec, pavucontrol" # pos 1 2 audiocontrol
|
||||||
@@ -220,7 +222,8 @@ in {
|
|||||||
#"custom-obsidianbackup" # backups the obsidian notes to kdrive and to a timed hidden dir (~/.Notes.backup/)
|
#"custom-obsidianbackup" # backups the obsidian notes to kdrive and to a timed hidden dir (~/.Notes.backup/)
|
||||||
#"QS-notifycache" # builds the cache that will be used for the notification history
|
#"QS-notifycache" # builds the cache that will be used for the notification history
|
||||||
"sleep 2 & caelestia-shell" #works better if it sleeps a bit before
|
"sleep 2 & caelestia-shell" #works better if it sleeps a bit before
|
||||||
/* We stopped using that ######################### maybe we should desactivate those scripts
|
/*
|
||||||
|
We stopped using that ######################### maybe we should desactivate those scripts
|
||||||
# login autostart
|
# login autostart
|
||||||
#######################
|
#######################
|
||||||
"[workspace 1 silent] sleep 1 && kitty -o font_size=16 -e sh -c 'custom-weather'"
|
"[workspace 1 silent] sleep 1 && kitty -o font_size=16 -e sh -c 'custom-weather'"
|
||||||
@@ -229,7 +232,8 @@ in {
|
|||||||
"[workspace 1 silent] sleep 1 && kitty -o font_size=5 -e btm --theme gruvbox --disable-click --disable_advanced_kill --enable_cache_memory -g -R -T "
|
"[workspace 1 silent] sleep 1 && kitty -o font_size=5 -e btm --theme gruvbox --disable-click --disable_advanced_kill --enable_cache_memory -g -R -T "
|
||||||
"[workspace 1 silent] sleep 1 && kitty -o font_size=1 -e sh -c 'cmatrix -br'"
|
"[workspace 1 silent] sleep 1 && kitty -o font_size=1 -e sh -c 'cmatrix -br'"
|
||||||
######################
|
######################
|
||||||
######################*/
|
######################
|
||||||
|
*/
|
||||||
];
|
];
|
||||||
|
|
||||||
# gestures (also keybindings)
|
# gestures (also keybindings)
|
||||||
|
|||||||
@@ -65,7 +65,8 @@ color14 #ffd497
|
|||||||
color7 #ebd4c1
|
color7 #ebd4c1
|
||||||
color15 #FFFFFF
|
color15 #FFFFFF
|
||||||
'';
|
'';
|
||||||
/*extraConfig = ''
|
/*
|
||||||
|
extraConfig = ''
|
||||||
# font nerd-fonts._0xproto # this key dont work and causes errors
|
# font nerd-fonts._0xproto # this key dont work and causes errors
|
||||||
font_size 14
|
font_size 14
|
||||||
bold_font auto
|
bold_font auto
|
||||||
@@ -118,6 +119,7 @@ color15 #FFFFFF
|
|||||||
# white
|
# white
|
||||||
color7 #FFF0CC
|
color7 #FFF0CC
|
||||||
color15 #F0DBAA
|
color15 #F0DBAA
|
||||||
'';*/
|
'';
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
pkgs-unstable,
|
pkgs-unstable,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
vimAlias = false;
|
vimAlias = false;
|
||||||
|
|||||||
@@ -1,12 +1,20 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.obsidian = {
|
programs.obsidian = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
vaults = {
|
vaults = {
|
||||||
miscellanious = { enable = true; target = "/Documents/Notes/miscellanious"; };
|
miscellanious = {
|
||||||
work = { enable = true; target = "/Documents/Notes/work"; };
|
enable = true;
|
||||||
|
target = "/Documents/Notes/miscellanious";
|
||||||
|
};
|
||||||
|
work = {
|
||||||
|
enable = true;
|
||||||
|
target = "/Documents/Notes/work";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultSettings = {
|
defaultSettings = {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# pulled from https://codeberg.org/zacoons/rivendell-hyprdots
|
# pulled from https://codeberg.org/zacoons/rivendell-hyprdots
|
||||||
|
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
# https://chatgpt.com/c/69da11b3-ba24-8331-b7b0-a58a72e69d42
|
# https://chatgpt.com/c/69da11b3-ba24-8331-b7b0-a58a72e69d42
|
||||||
# at your risk and perils
|
# at your risk and perils
|
||||||
# click on the icon to get a notification with state, percentage and wattage
|
# click on the icon to get a notification with state, percentage and wattage
|
||||||
{ lib
|
{
|
||||||
, stdenv
|
lib,
|
||||||
, qt6
|
stdenv,
|
||||||
, pkg-config
|
qt6,
|
||||||
, pkgs
|
pkg-config,
|
||||||
|
pkgs,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "qtbatticon";
|
pname = "qtbatticon";
|
||||||
version = "1.0";
|
version = "1.0";
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
# creates and maintains cache file for the notification history
|
# creates and maintains cache file for the notification history
|
||||||
{
|
{writeShellApplication, ...}:
|
||||||
writeShellApplication,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "QS-notifycache";
|
name = "QS-notifycache";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{writeShellApplication, ...}:
|
||||||
writeShellApplication,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "QS-notifyhistory";
|
name = "QS-notifyhistory";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
rsync,
|
rsync,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-obsidianbackup";
|
name = "custom-obsidianbackup";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
ripgrep,
|
ripgrep,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-obsidianvaults";
|
name = "custom-obsidianvaults";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
Reference in New Issue
Block a user