changes on main pc

This commit is contained in:
afoucaultc 2026-07-05 20:10:11 +02:00
parent 60ebe96728
commit 2ef8eba58a
20 changed files with 155 additions and 84 deletions

View file

@ -10,7 +10,7 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# hyprland # hyprland
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-hardware.url = "github:NixOS/nixos-hardware";
# zen browser (communautaire) — follows pour partager les libs système # zen browser (communautaire) — follows pour partager les libs système
zen-browser = { zen-browser = {
@ -18,15 +18,14 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager"; inputs.home-manager.follows = "home-manager";
}; };
noctalia = { #noctalia = {
url = "github:noctalia-dev/noctalia/legacy-v4"; # url = "github:noctalia-dev/noctalia/legacy-v4";
inputs.nixpkgs.follows = "nixpkgs"; # inputs.nixpkgs.follows = "nixpkgs";
}; #};
#lavi = {
lavi = { # url = "github:b0o/lavi";
url = "github:b0o/lavi"; # inputs.nixpkgs.follows = "lavi";
inputs.nixpkgs.follows = "lavi"; #};
};
stylix = { stylix = {
url = "github:danth/stylix"; url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -37,7 +36,7 @@
# "specialArgs" et "extraSpecialArgs. inputs.hyprland pourra être utilisé dans n'importe # "specialArgs" et "extraSpecialArgs. inputs.hyprland pourra être utilisé dans n'importe
# quel fichier importé sans avoir à redéclarer dans flake.nix # quel fichier importé sans avoir à redéclarer dans flake.nix
# - ajouter dans la ligne d'outputs les nouveaux packages ajoutés en input ! # - ajouter dans la ligne d'outputs les nouveaux packages ajoutés en input !
outputs = inputs@{ self, nixpkgs, home-manager, hyprland, nixos-hardware, zen-browser, noctalia, lavi, stylix, ... }: { outputs = inputs@{ self, nixpkgs, home-manager, hyprland, nixos-hardware, zen-browser, stylix, ... }: {
nixosConfigurations.nixos-home = nixpkgs.lib.nixosSystem { nixosConfigurations.nixos-home = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };

View file

@ -6,21 +6,23 @@
imports = imports =
[ [
# modules partagés ./packages/btop.nix
./packages/firefox.nix ./packages/firefox.nix
./packages/thunderbird.nix
./packages/git.nix ./packages/git.nix
./packages/hyprland.nix ./packages/hyprland.nix
./packages/kitty.nix ./packages/kitty.nix
./packages/mpv.nix
./packages/neovim.nix ./packages/neovim.nix
./packages/other_apps_light.nix ./packages/other_apps_light.nix
./packages/pass.nix
./packages/texlive.nix ./packages/texlive.nix
./packages/thunderbird.nix
./packages/tmux.nix
./packages/zathura.nix ./packages/zathura.nix
./packages/zen.nix ./packages/zen.nix
./packages/zsh.nix ./packages/zsh.nix
# liens dotfiles # dotfiles links
./dotfiles_apps.nix ./dotfiles_apps.nix
]; ];
stylix.targets.gtksourceview.enable = false; stylix.targets.gtksourceview.enable = false;
#stylix.targets.inkscape.enable = false;
} }

View file

@ -6,13 +6,18 @@
imports = imports =
[ [
./packages/btop.nix
./packages/firefox.nix ./packages/firefox.nix
./packages/git.nix ./packages/git.nix
./packages/hyprland.nix ./packages/hyprland.nix
./packages/lavi.nix ./packages/kitty.nix
./packages/mpv.nix
./packages/neovim.nix ./packages/neovim.nix
./packages/other_apps.nix ./packages/other_apps.nix
./packages/pass.nix
./packages/texlive.nix ./packages/texlive.nix
./packages/thunderbird.nix
./packages/tmux.nix
./packages/zathura.nix ./packages/zathura.nix
./packages/zen.nix ./packages/zen.nix
./packages/zsh.nix ./packages/zsh.nix

View file

@ -0,0 +1,6 @@
{ pkgs, inputs, ... }:
{
programs.btop = {
enable = true;
};
}

View file

@ -0,0 +1,6 @@
{ config, pkgs, ... }:
{
programs.mpv = {
enable = true;
};
}

View file

@ -4,7 +4,6 @@
# --- Others # --- Others
hyfetch hyfetch
fastfetch fastfetch
htop
pkg-config pkg-config
# --- Bureautique --- # --- Bureautique ---
@ -13,7 +12,6 @@
zotero zotero
# --- Communication --- # --- Communication ---
thunderbird
signal-desktop signal-desktop
vesktop vesktop
mattermost-desktop mattermost-desktop
@ -21,17 +19,21 @@
# --- Multimédia --- # --- Multimédia ---
gimp gimp
inkscape inkscape
mpv nomacs
imagemagick
librsvg
streamlink streamlink
kdePackages.gwenview kdePackages.gwenview
audacity audacity
# --- Maths --- # --- Maths ---
octave (octave.withPackages (ps: with ps; [
gnuplot image # octave-image
statistics # octave-statistics
# --- Réseau / streaming --- symbolic # octave-symbolic
# dataframe # (octave-dataframe : indispo dans nixpkgs, à compiler via pkg si besoin)
]))
gnuplot # gnuplot
# --- Gestion de fichiers KDE --- # --- Gestion de fichiers KDE ---
kdePackages.dolphin kdePackages.dolphin
@ -41,7 +43,18 @@
kdePackages.ark kdePackages.ark
kdePackages.kdegraphics-thumbnailers kdePackages.kdegraphics-thumbnailers
kdePackages.ffmpegthumbs kdePackages.ffmpegthumbs
nwg-look
papirus-icon-theme
mako
cliphist
grim slurp
mullvad-vpn
]; ];
services.gpg-agent = {
enable = true;
pinentry.package = pkgs.pinentry-gnome3;
};
services.protonmail-bridge.enable = true; services.protonmail-bridge.enable = true;
} }

View file

@ -4,7 +4,6 @@
# --- Infos système / divers --- # --- Infos système / divers ---
hyfetch # hyfetch hyfetch # hyfetch
fastfetch # fastfetch fastfetch # fastfetch
btop # btop
pkg-config pkg-config
# --- Bureautique --- # --- Bureautique ---
@ -18,13 +17,9 @@
mattermost-desktop # mattermost-desktop mattermost-desktop # mattermost-desktop
protonmail-bridge # protonmail-bridge (CLI/bridge) protonmail-bridge # protonmail-bridge (CLI/bridge)
# --- Gestionnaire de mots de passe ---
pass # pass
# --- Multimédia (léger) --- # --- Multimédia (léger) ---
gimp # gimp gimp # gimp
inkscape # inkscape inkscape # inkscape
mpv # mpv
nomacs # nomacs (AUR) — visionneuse d'images légère nomacs # nomacs (AUR) — visionneuse d'images légère
imagemagick # imagemagick imagemagick # imagemagick
librsvg # librsvg librsvg # librsvg

View file

@ -0,0 +1,6 @@
{ pkgs, inputs, ... }:
{
programs.pass = {
enable = true;
};
}

View file

@ -0,0 +1,6 @@
{ pkgs, inputs, ... }:
{
programs.tmux = {
enable = true;
};
}

View file

@ -9,5 +9,4 @@
configurationLimit = 10; configurationLimit = 10;
}; };
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.luks.devices."luks-5f5524e7-c2c0-4cbd-91f2-37b8fe69a62c".device = "/dev/disk/by-uuid/5f5524e7-c2c0-4cbd-91f2-37b8fe69a62c";
} }

View file

@ -5,7 +5,6 @@
enable = true; enable = true;
package = pkgs.mullvad-vpn; package = pkgs.mullvad-vpn;
}; };
# ── Steam ── # ── Steam ──
programs.steam = { programs.steam = {
enable = true; enable = true;
@ -17,21 +16,12 @@
enable = true; enable = true;
capSysNice = true; capSysNice = true;
}; };
zramSwap = { zramSwap = {
enable = true; enable = true;
algorithm = "zstd"; algorithm = "zstd";
memoryPercent = 50; memoryPercent = 50;
}; };
# ── Intégration KDE/Dolphin ──
# ── VirtualBox (Oracle) ──
# virtualisation.virtualbox.host = {
# enable = true;
# enableExtensionPack = true;
# };
# users.extraGroups.vboxusers.members = [ "afoucaultc" ];
# ── Intégration KDE/Dolphin ──
services.gvfs.enable = true; services.gvfs.enable = true;
services.tumbler.enable = true; services.tumbler.enable = true;
environment.sessionVariables = { environment.sessionVariables = {

View file

@ -1,25 +1,37 @@
{ config, pkgs, ... }: { config, pkgs, ... }: {
{
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
# Sans / Source (adobe-source-*-fonts, source-han-sans)
source-sans source-sans
source-serif
source-han-sans # adobe-source-han-sans-otc-fonts
source-han-serif
# Noto + emoji + CJK (noto-fonts-cjk, noto-fonts-emoji)
noto-fonts noto-fonts
noto-fonts-cjk-sans noto-fonts-cjk-sans
noto-fonts-cjk-serif noto-fonts-cjk-serif
noto-fonts-color-emoji noto-fonts-color-emoji
# Microsoft / Windows (ttf-ms-fonts + corefonts)
corefonts corefonts
b612 vista-fonts # tahoma, etc. (unfree)
# Latin Modern / TeX Gyre (otf-latin-modern, tex-gyre-math)
lmodern
gyre-fonts
# Accessibilité (ttf-luciole)
texlivePackages.luciole
# Nerd fonts / symboles (ttf-nerd-fonts-symbols, font-awesome, woff2-font-awesome)
nerd-fonts.symbols-only nerd-fonts.symbols-only
nerd-fonts.adwaita-mono font-awesome
nerd-fonts.cousine
# Fontes de code utiles
fira-code fira-code
jetbrains-mono jetbrains-mono
dejavu_fonts dejavu_fonts
liberation_ttf liberation_ttf
font-awesome
texlivePackages.luciole
]; ];
} }

View file

@ -5,19 +5,11 @@
package = inputs.hyprland.packages.${pkgs.system}.hyprland; package = inputs.hyprland.packages.${pkgs.system}.hyprland;
}; };
# Portails XDG (captures d'écran, partage d'écran, file pickers sous Wayland) # Portails XDG (captures d'écran, partage d'écran, file pickers Wayland)
xdg.portal = { xdg.portal = {
enable = true; enable = true;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
}; };
security.polkit.enable = true; security.polkit.enable = true;
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
substituters = [ "https://hyprland.cachix.org" ];
trusted-substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
trusted-users = [ "root" "@wheel" ];
};
} }

View file

@ -0,0 +1,30 @@
{ pkgs, ... }:
{
stylix = {
enable = true;
targets.gtksourceview.enable = false;
base16Scheme = "${pkgs.base16-schemes}/share/themes/solarized-dark.yaml";
cursor = {
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
size = 24;
};
fonts = {
monospace = {
package = pkgs.nerd-fonts.jetbrains-mono;
name = "Noto Sans Mono";
};
sansSerif = {
package = pkgs.texlivePackages.luciole;
name = "Luciole";
};
sizes = {
applications = 11;
terminal = 12;
};
};
polarity = "dark";
};
}

View file

@ -6,6 +6,18 @@
gnumake gnumake
gcc gcc
wget wget
curl
unzip
tree
ripgrep
translate-shell
xclip
powertop
brightnessctl
ntfs3g
pciutls
usbutils
inxi
]; ];
} }

View file

@ -13,5 +13,6 @@
}; };
printing.enable = true; printing.enable = true;
openssh.enable = false; openssh.enable = false;
flatpak.enable = true;
}; };
} }

View file

@ -10,9 +10,10 @@
./config/fonts.nix ./config/fonts.nix
./config/hyprland.nix ./config/hyprland.nix
./config/language.nix ./config/language.nix
./config/noctalia.nix #./config/noctalia.nix
./config/power_management.nix ./config/power_management.nix
./config/sound.nix ./config/sound.nix
./config/stylix.nix
./config/system_packages.nix ./config/system_packages.nix
./config/system_saves.nix ./config/system_saves.nix
./config/system_services.nix ./config/system_services.nix

View file

@ -19,6 +19,7 @@
}; };
boot.initrd.luks.devices."luks-eddcceff-290e-478d-baef-3fdc0f47a220".device = "/dev/disk/by-uuid/eddcceff-290e-478d-baef-3fdc0f47a220"; boot.initrd.luks.devices."luks-eddcceff-290e-478d-baef-3fdc0f47a220".device = "/dev/disk/by-uuid/eddcceff-290e-478d-baef-3fdc0f47a220";
boot.initrd.luks.devices."luks-5f5524e7-c2c0-4cbd-91f2-37b8fe69a62c".device = "/dev/disk/by-uuid/5f5524e7-c2c0-4cbd-91f2-37b8fe69a62c";
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/2A23-C86E"; { device = "/dev/disk/by-uuid/2A23-C86E";

View file

@ -5,11 +5,9 @@
enable = true; enable = true;
package = pkgs.mullvad-vpn; package = pkgs.mullvad-vpn;
}; };
# ── Intégration gestionnaire de fichiers (miniatures, montage…) ── # ── Intégration gestionnaire de fichiers (miniatures, montage…) ──
services.gvfs.enable = true; services.gvfs.enable = true;
services.tumbler.enable = true; services.tumbler.enable = true;
environment.sessionVariables = { environment.sessionVariables = {
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
}; };

View file

@ -1,26 +1,23 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
# Outils système / build essentiels (équiv. base-devel, git, etc.).
# Les applis graphiques utilisateur sont dans home-manager (home/).
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# base / build git
git vim gnumake gcc wget curl unzip tree vim
gnumake
# CLI utiles présents dans ta liste pacman gcc
btop # btop wget
fastfetch # fastfetch curl
ripgrep # ripgrep unzip
tmux # tmux tree
translate-shell # translate-shell ripgrep
xclip # xclip translate-shell
wl-clipboard # wl-clipboard xclip
pass # pass powertop
bitwarden-cli # (bitwarden : GUI côté user, CLI ici) brightnessctl
powertop # powertop ntfs3g
brightnessctl # brightnessctl pciutils
ntfs3g # ntfs-3g usbutils
pciutils usbutils inxi # inxi + diagnostics inxi
gnupg
pinentry-curses
]; ];
} }