This commit is contained in:
afoucaultc 2026-07-07 20:42:01 +02:00
parent cb4bf3be89
commit df94405cef
51 changed files with 893 additions and 817 deletions

View file

@ -68,3 +68,30 @@ nix search nixpkgs nom_du_package
2. Package pas encore dans nixpkgs : chercher un flake upstream officiel (packages.<system>.degault), ajouter comme input et le référencer 2. Package pas encore dans nixpkgs : chercher un flake upstream officiel (packages.<system>.degault), ajouter comme input et le référencer
### Machine ancienne ### Machine ancienne
Bien utiliser la version `laptop` qui prend la plupart des paquets par cachix (pour éviter la compilation en locale qui dépasse les capacités de la RAM) Bien utiliser la version `laptop` qui prend la plupart des paquets par cachix (pour éviter la compilation en locale qui dépasse les capacités de la RAM)
### Ensuite
#### Thunderbird
Générer clé GPG
`gpg --quick-generate-key "afoucaultc" default default never`
Afficher la clé
`gpg --list-secret-keys --keyid-format=long`
Initialiser avec pass (empreinte = dernière partie après sec)
`pass init <empreinte>`
Fermer en partie les permissions sur .gnupg
```bash
chmod 700 ~/.gnupg
chmod 600 ~/.gnupg/* 2>/dev/null
find ~/.gnupg -type d -exec chmod 700 {} \;
find ~/.gnupg -type f -exec chmod 600 {} \;
```
Lancer le proton mail bridge
```shell
protonmail-bridge --cli
>>> login #(puis se login)
```
Ensuite normalement c'est bon, taper "info" pour récupérer le mot de passe
Puis `cert export` et le mettre dans le home par exemple. Ensuite :
`parametres -> vie privée et sécurité -> certificats -> gérer -> autorités -> importer`
Importer et cocher site web.
Puis se connecter à son compte sur thunderbird : il faut faire `info` sur le protonmail bridge, pour récupérer son mot de passe, puis valider l'exception pour le certificat.

View file

@ -12,3 +12,10 @@ hl.window_rule({
}, },
opacity = 2, opacity = 2,
}) })
hl.window_rule({
name = "opacity vesktop",
match = {
class = "vesktop",
},
opacity = 2,
})

View file

@ -0,0 +1,8 @@
return {
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
nix = { "nixfmt" }, -- remplace par "alejandra" si tu préfères
},
},
}

View file

@ -3,16 +3,10 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
rofi rofi
]; ];
xdg.configFile."inkscape".source = xdg.configFile."inkscape".source =
config.lib.file.mkOutOfStoreSymlink config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos-config/dotfiles/inkscape";
"${config.home.homeDirectory}/nixos-config/dotfiles/inkscape";
xdg.configFile."rofi".source = xdg.configFile."rofi".source =
config.lib.file.mkOutOfStoreSymlink config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos-config/dotfiles/rofi";
"${config.home.homeDirectory}/nixos-config/dotfiles/rofi";
xdg.configFile."hypr".source = xdg.configFile."hypr".source =
config.lib.file.mkOutOfStoreSymlink config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos-config/dotfiles/hypr";
"${config.home.homeDirectory}/nixos-config/dotfiles/hypr";
} }

View file

@ -3,9 +3,7 @@
home.username = "afoucaultc"; home.username = "afoucaultc";
home.homeDirectory = "/home/afoucaultc"; home.homeDirectory = "/home/afoucaultc";
home.stateVersion = "26.05"; home.stateVersion = "26.05";
imports = [
imports =
[
./packages/btop.nix ./packages/btop.nix
./packages/firefox.nix ./packages/firefox.nix
./packages/git.nix ./packages/git.nix

View file

@ -3,9 +3,7 @@
home.username = "afoucaultc"; home.username = "afoucaultc";
home.homeDirectory = "/home/afoucaultc"; home.homeDirectory = "/home/afoucaultc";
home.stateVersion = "26.05"; home.stateVersion = "26.05";
imports = [
imports =
[
./packages/btop.nix ./packages/btop.nix
./packages/firefox.nix ./packages/firefox.nix
./packages/git.nix ./packages/git.nix

View file

@ -1,4 +1,9 @@
{ config, pkgs, inputs, ... }: {
config,
pkgs,
inputs,
...
}:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
hyprpaper hyprpaper

View file

@ -32,12 +32,19 @@
# vimtex forward search + treesitter CLI # vimtex forward search + treesitter CLI
xdotool xdotool
tree-sitter tree-sitter
(python3.withPackages (ps: with ps; [ pynvim debugpy ])) (python3.withPackages (
ps: with ps; [
pynvim
debugpy
]
))
]; ];
home.sessionVariables.EDITOR = "nvim"; home.sessionVariables.EDITOR = "nvim";
home.shellAliases = { vi = "nvim"; vim = "nvim"; }; home.shellAliases = {
vi = "nvim";
vim = "nvim";
};
# ~/.config/nvim -> tes dotfiles, éditables en place # ~/.config/nvim -> tes dotfiles, éditables en place
xdg.configFile."nvim".source = xdg.configFile."nvim".source =
config.lib.file.mkOutOfStoreSymlink config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos-config/dotfiles/nvim";
"${config.home.homeDirectory}/nixos-config/dotfiles/nvim";
} }

View file

@ -5,17 +5,14 @@
hyfetch hyfetch
fastfetch fastfetch
pkg-config pkg-config
# --- Bureautique --- # --- Bureautique ---
libreoffice-fresh libreoffice-fresh
typora typora
zotero zotero
# --- Communication --- # --- Communication ---
signal-desktop signal-desktop
vesktop vesktop
mattermost-desktop mattermost-desktop
# --- Multimédia --- # --- Multimédia ---
gimp gimp
inkscape inkscape
@ -25,16 +22,16 @@
streamlink streamlink
kdePackages.gwenview kdePackages.gwenview
audacity audacity
# --- Maths --- # --- Maths ---
(octave.withPackages (ps: with ps; [ (octave.withPackages (
ps: with ps; [
image # octave-image image # octave-image
statistics # octave-statistics statistics # octave-statistics
symbolic # octave-symbolic symbolic # octave-symbolic
# dataframe # (octave-dataframe : indispo dans nixpkgs, à compiler via pkg si besoin) # dataframe # (octave-dataframe : indispo dans nixpkgs, à compiler via pkg si besoin)
])) ]
))
gnuplot # gnuplot gnuplot # gnuplot
# --- Gestion de fichiers KDE --- # --- Gestion de fichiers KDE ---
kdePackages.dolphin kdePackages.dolphin
kdePackages.dolphin-plugins kdePackages.dolphin-plugins
@ -43,15 +40,14 @@
kdePackages.ark kdePackages.ark
kdePackages.kdegraphics-thumbnailers kdePackages.kdegraphics-thumbnailers
kdePackages.ffmpegthumbs kdePackages.ffmpegthumbs
nwg-look nwg-look
papirus-icon-theme papirus-icon-theme
mako mako
cliphist cliphist
grim slurp grim
slurp
mullvad-vpn mullvad-vpn
]; ];
services.gpg-agent = { services.gpg-agent = {
enable = true; enable = true;
pinentry.package = pkgs.pinentry-gnome3; pinentry.package = pkgs.pinentry-gnome3;

View file

@ -47,11 +47,9 @@
mullvad-vpn # GUI Mullvad (le service est côté système) mullvad-vpn # GUI Mullvad (le service est côté système)
]; ];
programs.gpg.enable = true; programs.gpg.enable = true;
services.gpg-agent = { services.gpg-agent = {
enable = true; enable = true;
pinentry.package = pkgs.pinentry-curses; pinentry.package = pkgs.pinentry-curses;
}; };
services.protonmail-bridge.enable = true; services.protonmail-bridge.enable = true;
} }

View file

@ -10,7 +10,6 @@
mappings = { mappings = {
}; };
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
zathura zathura
poppler-utils poppler-utils

View file

@ -1,4 +1,9 @@
{ config, pkgs, inputs, ... }: {
config,
pkgs,
inputs,
...
}:
{ {
imports = [ inputs.zen-browser.homeModules.beta ]; imports = [ inputs.zen-browser.homeModules.beta ];
programs.zen-browser = { programs.zen-browser = {
@ -8,4 +13,3 @@
}; };
stylix.targets.zen-browser.profileNames = [ "default" ]; stylix.targets.zen-browser.profileNames = [ "default" ];
} }

View file

@ -7,7 +7,10 @@
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
theme = "robbyrussell"; theme = "robbyrussell";
plugins = [ "git" "sudo" ]; plugins = [
"git"
"sudo"
];
}; };
}; };
} }

View file

@ -4,4 +4,3 @@
hardware.bluetooth.powerOnBoot = true; hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true; services.blueman.enable = true;
} }

View file

@ -1,7 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";
i18n.defaultLocale = "fr_FR.UTF-8"; i18n.defaultLocale = "fr_FR.UTF-8";
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = {
LC_ADDRESS = "fr_FR.UTF-8"; LC_ADDRESS = "fr_FR.UTF-8";

View file

@ -11,7 +11,6 @@
name = "Bibata-Modern-Ice"; name = "Bibata-Modern-Ice";
size = 24; size = 24;
}; };
fonts = { fonts = {
monospace = { monospace = {
package = pkgs.nerd-fonts.jetbrains-mono; package = pkgs.nerd-fonts.jetbrains-mono;

View file

@ -20,4 +20,3 @@
inxi inxi
]; ];
} }

View file

@ -6,5 +6,3 @@
options = "--delete-older-than 30d"; options = "--delete-older-than 30d";
}; };
} }

View file

@ -3,7 +3,10 @@
users.users.afoucaultc = { users.users.afoucaultc = {
isNormalUser = true; isNormalUser = true;
description = "afoucaultc"; description = "afoucaultc";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [
"networkmanager"
"wheel"
];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
programs.zsh.enable = true; programs.zsh.enable = true;

View file

@ -1,4 +1,9 @@
{ config, pkgs, inputs, ... }: {
config,
pkgs,
inputs,
...
}:
{ {
imports = [ imports = [
# faire nixos-generate-config dans le bon dossier # faire nixos-generate-config dans le bon dossier
@ -23,7 +28,10 @@
inputs.nixos-hardware.nixosModules.common-pc-laptop inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
#nixpkgs.config.permittedInsecurePackages = [ #nixpkgs.config.permittedInsecurePackages = [
# "pnpm-10.29.2" # "pnpm-10.29.2"

View file

@ -1,36 +1,48 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/installer/scan/not-detected.nix") lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/mapper/luks-eddcceff-290e-478d-baef-3fdc0f47a220"; device = "/dev/mapper/luks-eddcceff-290e-478d-baef-3fdc0f47a220";
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."luks-eddcceff-290e-478d-baef-3fdc0f47a220".device =
boot.initrd.luks.devices."luks-eddcceff-290e-478d-baef-3fdc0f47a220".device = "/dev/disk/by-uuid/eddcceff-290e-478d-baef-3fdc0f47a220"; "/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"; 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";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [
}; "fmask=0077"
"dmask=0077"
swapDevices = ];
[ { device = "/dev/mapper/luks-5f5524e7-c2c0-4cbd-91f2-37b8fe69a62c"; } };
swapDevices = [
{ device = "/dev/mapper/luks-5f5524e7-c2c0-4cbd-91f2-37b8fe69a62c"; }
]; ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -4,4 +4,3 @@
hardware.bluetooth.powerOnBoot = true; hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true; services.blueman.enable = true;
} }

View file

@ -1,7 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
boot.kernelPackages = pkgs.linuxPackages; boot.kernelPackages = pkgs.linuxPackages;
boot.loader.grub = { boot.loader.grub = {
enable = true; enable = true;
device = "nodev"; device = "nodev";

View file

@ -8,7 +8,6 @@
libvdpau-va-gl libvdpau-va-gl
]; ];
}; };
environment.sessionVariables = { environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD"; LIBVA_DRIVER_NAME = "iHD";
}; };

View file

@ -5,32 +5,25 @@
source-serif source-serif
source-han-sans # adobe-source-han-sans-otc-fonts source-han-sans # adobe-source-han-sans-otc-fonts
source-han-serif source-han-serif
# Noto + emoji + CJK (noto-fonts-cjk, noto-fonts-emoji) # 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) # Microsoft / Windows (ttf-ms-fonts + corefonts)
corefonts corefonts
vista-fonts # tahoma, etc. (unfree) vista-fonts # tahoma, etc. (unfree)
# Latin Modern / TeX Gyre (otf-latin-modern, tex-gyre-math) # Latin Modern / TeX Gyre (otf-latin-modern, tex-gyre-math)
lmodern lmodern
gyre-fonts gyre-fonts
# Accessibilité (ttf-luciole) # Accessibilité (ttf-luciole)
texlivePackages.luciole texlivePackages.luciole
# Nerd fonts / symboles (ttf-nerd-fonts-symbols, font-awesome, woff2-font-awesome) # Nerd fonts / symboles (ttf-nerd-fonts-symbols, font-awesome, woff2-font-awesome)
nerd-fonts.symbols-only nerd-fonts.symbols-only
font-awesome font-awesome
# Fontes de code utiles # Fontes de code utiles
fira-code fira-code
jetbrains-mono jetbrains-mono
dejavu_fonts dejavu_fonts
liberation_ttf liberation_ttf
]; ];

View file

@ -4,12 +4,10 @@
enable = true; enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland; package = inputs.hyprland.packages.${pkgs.system}.hyprland;
}; };
# Portails XDG (captures d'écran, partage d'écran, file pickers 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;
} }

View file

@ -1,7 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";
i18n.defaultLocale = "fr_FR.UTF-8"; i18n.defaultLocale = "fr_FR.UTF-8";
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = {
LC_ADDRESS = "fr_FR.UTF-8"; LC_ADDRESS = "fr_FR.UTF-8";

View file

@ -1,12 +1,19 @@
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
# Machine à faible RAM (4 GiB) : on privilégie TOUJOURS les # Machine à faible RAM (4 GiB) : on privilégie TOUJOURS les
# binaires pré-compilés (caches) plutôt que la compilation locale. # binaires pré-compilés (caches) plutôt que la compilation locale.
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
nix.settings = { nix.settings = {
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [
"nix-command"
"flakes"
];
# Caches binaires : on récupère un maximum de paquets déjà # Caches binaires : on récupère un maximum de paquets déjà
# compilés pour éviter de compiler sur cette machine. # compilés pour éviter de compiler sur cette machine.
substituters = [ substituters = [
@ -24,23 +31,22 @@
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
]; ];
trusted-users = [ "root" "@wheel" ]; trusted-users = [
"root"
"@wheel"
];
# Toujours interroger les caches, ne jamais partir du principe # Toujours interroger les caches, ne jamais partir du principe
# qu'un paquet doit être compilé localement. # qu'un paquet doit être compilé localement.
builders-use-substitutes = true; builders-use-substitutes = true;
fallback = true; # si un cache tombe, on tente ailleurs fallback = true; # si un cache tombe, on tente ailleurs
connect-timeout = 10; connect-timeout = 10;
# Limiter la pression mémoire pendant la construction : # Limiter la pression mémoire pendant la construction :
# peu de jobs en parallèle, sinon 4 Gio saturent vite. # peu de jobs en parallèle, sinon 4 Gio saturent vite.
max-jobs = 1; # une dérivation à la fois max-jobs = 1; # une dérivation à la fois
cores = 2; # les 2 cœurs du i5-6200U par job cores = 2; # les 2 cœurs du i5-6200U par job
}; };
# Auto-optimisation du store (déduplication) pour économiser le disque. # Auto-optimisation du store (déduplication) pour économiser le disque.
nix.settings.auto-optimise-store = true; nix.settings.auto-optimise-store = true;
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
# zram : swap compressé en RAM. Indispensable avec 4 Gio, à la # zram : swap compressé en RAM. Indispensable avec 4 Gio, à la
# fois pour l'usage courant et pour absorber les pics du rebuild. # fois pour l'usage courant et pour absorber les pics du rebuild.
@ -51,7 +57,6 @@
memoryPercent = 150; # jusqu'à 1.5x la RAM (zstd compresse ~3:1) memoryPercent = 150; # jusqu'à 1.5x la RAM (zstd compresse ~3:1)
priority = 100; priority = 100;
}; };
# Le noyau peut « swaper » agressivement vers zram (rapide) plutôt # Le noyau peut « swaper » agressivement vers zram (rapide) plutôt
# que de tuer des process pendant un build. # que de tuer des process pendant un build.
boot.kernel.sysctl = { boot.kernel.sysctl = {
@ -60,7 +65,6 @@
"vm.watermark_scale_factor" = 125; "vm.watermark_scale_factor" = 125;
"vm.page-cluster" = 0; # recommandé avec zram "vm.page-cluster" = 0; # recommandé avec zram
}; };
# earlyoom : tue proprement le process le plus gourmand avant que la # earlyoom : tue proprement le process le plus gourmand avant que la
# machine ne se fige totalement (utile si un build déborde malgré tout). # machine ne se fige totalement (utile si un build déborde malgré tout).
services.earlyoom = { services.earlyoom = {

View file

@ -14,7 +14,6 @@
}; };
}; };
services.power-profiles-daemon.enable = false; services.power-profiles-daemon.enable = false;
# Économie d'énergie supplémentaire. # Économie d'énergie supplémentaire.
powerManagement.enable = true; powerManagement.enable = true;
} }

View file

@ -5,13 +5,11 @@
targets.gtksourceview.enable = false; targets.gtksourceview.enable = false;
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
polarity = "dark"; polarity = "dark";
cursor = { cursor = {
package = pkgs.bibata-cursors; package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice"; name = "Bibata-Modern-Ice";
size = 24; size = 24;
}; };
fonts = { fonts = {
monospace = { monospace = {
package = pkgs.nerd-fonts.jetbrains-mono; package = pkgs.nerd-fonts.jetbrains-mono;

View file

@ -20,4 +20,3 @@
inxi inxi
]; ];
} }

View file

@ -6,5 +6,3 @@
options = "--delete-older-than 30d"; options = "--delete-older-than 30d";
}; };
} }

View file

@ -3,7 +3,10 @@
users.users.afoucaultc = { users.users.afoucaultc = {
isNormalUser = true; isNormalUser = true;
description = "afoucaultc"; description = "afoucaultc";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [
"networkmanager"
"wheel"
];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
programs.zsh.enable = true; programs.zsh.enable = true;

View file

@ -1,4 +1,9 @@
{ config, pkgs, inputs, ... }: {
config,
pkgs,
inputs,
...
}:
{ {
imports = [ imports = [
# généré à l'installation avec nixos-generate-config # généré à l'installation avec nixos-generate-config

View file

@ -1,32 +1,54 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: {
config,
lib,
pkgs,
modulesPath,
...
}:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usb_storage"
"sd_mod"
"sr_mod"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ]; boot.kernelModules = [ ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/mapper/cryptroot"; device = "/dev/mapper/cryptroot";
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/b773a1eb-b293-4498-9090-a26843bdcd5f"; boot.initrd.luks.devices."cryptroot".device =
"/dev/disk/by-uuid/b773a1eb-b293-4498-9090-a26843bdcd5f";
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/6EA9-3F92"; device = "/dev/disk/by-uuid/6EA9-3F92";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [
"fmask=0022"
"dmask=0022"
];
}; };
swapDevices = [ { device = "/swapfile"; size = 8192; } ]; swapDevices = [
{
device = "/swapfile";
size = 8192;
}
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;