yeeee
This commit is contained in:
parent
cb4bf3be89
commit
df94405cef
51 changed files with 893 additions and 817 deletions
27
README.md
27
README.md
|
|
@ -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
|
||||
### 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)
|
||||
|
||||
### 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.
|
||||
|
|
|
|||
|
|
@ -12,3 +12,10 @@ hl.window_rule({
|
|||
},
|
||||
opacity = 2,
|
||||
})
|
||||
hl.window_rule({
|
||||
name = "opacity vesktop",
|
||||
match = {
|
||||
class = "vesktop",
|
||||
},
|
||||
opacity = 2,
|
||||
})
|
||||
|
|
|
|||
8
dotfiles/nvim/lua/neoconf/lazy/conform.lua
Normal file
8
dotfiles/nvim/lua/neoconf/lazy/conform.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
return {
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
nix = { "nixfmt" }, -- remplace par "alejandra" si tu préfères
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -3,16 +3,10 @@
|
|||
home.packages = with pkgs; [
|
||||
rofi
|
||||
];
|
||||
|
||||
xdg.configFile."inkscape".source =
|
||||
config.lib.file.mkOutOfStoreSymlink
|
||||
"${config.home.homeDirectory}/nixos-config/dotfiles/inkscape";
|
||||
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos-config/dotfiles/inkscape";
|
||||
xdg.configFile."rofi".source =
|
||||
config.lib.file.mkOutOfStoreSymlink
|
||||
"${config.home.homeDirectory}/nixos-config/dotfiles/rofi";
|
||||
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos-config/dotfiles/rofi";
|
||||
xdg.configFile."hypr".source =
|
||||
config.lib.file.mkOutOfStoreSymlink
|
||||
"${config.home.homeDirectory}/nixos-config/dotfiles/hypr";
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos-config/dotfiles/hypr";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,9 +3,7 @@
|
|||
home.username = "afoucaultc";
|
||||
home.homeDirectory = "/home/afoucaultc";
|
||||
home.stateVersion = "26.05";
|
||||
|
||||
imports =
|
||||
[
|
||||
imports = [
|
||||
./packages/btop.nix
|
||||
./packages/firefox.nix
|
||||
./packages/git.nix
|
||||
|
|
|
|||
|
|
@ -3,9 +3,7 @@
|
|||
home.username = "afoucaultc";
|
||||
home.homeDirectory = "/home/afoucaultc";
|
||||
home.stateVersion = "26.05";
|
||||
|
||||
imports =
|
||||
[
|
||||
imports = [
|
||||
./packages/btop.nix
|
||||
./packages/firefox.nix
|
||||
./packages/git.nix
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
hyprpaper
|
||||
|
|
|
|||
|
|
@ -32,12 +32,19 @@
|
|||
# vimtex forward search + treesitter CLI
|
||||
xdotool
|
||||
tree-sitter
|
||||
(python3.withPackages (ps: with ps; [ pynvim debugpy ]))
|
||||
(python3.withPackages (
|
||||
ps: with ps; [
|
||||
pynvim
|
||||
debugpy
|
||||
]
|
||||
))
|
||||
];
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
home.shellAliases = { vi = "nvim"; vim = "nvim"; };
|
||||
home.shellAliases = {
|
||||
vi = "nvim";
|
||||
vim = "nvim";
|
||||
};
|
||||
# ~/.config/nvim -> tes dotfiles, éditables en place
|
||||
xdg.configFile."nvim".source =
|
||||
config.lib.file.mkOutOfStoreSymlink
|
||||
"${config.home.homeDirectory}/nixos-config/dotfiles/nvim";
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos-config/dotfiles/nvim";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,17 +5,14 @@
|
|||
hyfetch
|
||||
fastfetch
|
||||
pkg-config
|
||||
|
||||
# --- Bureautique ---
|
||||
libreoffice-fresh
|
||||
typora
|
||||
zotero
|
||||
|
||||
# --- Communication ---
|
||||
signal-desktop
|
||||
vesktop
|
||||
mattermost-desktop
|
||||
|
||||
# --- Multimédia ---
|
||||
gimp
|
||||
inkscape
|
||||
|
|
@ -25,16 +22,16 @@
|
|||
streamlink
|
||||
kdePackages.gwenview
|
||||
audacity
|
||||
|
||||
# --- Maths ---
|
||||
(octave.withPackages (ps: with ps; [
|
||||
(octave.withPackages (
|
||||
ps: with ps; [
|
||||
image # octave-image
|
||||
statistics # octave-statistics
|
||||
symbolic # octave-symbolic
|
||||
# dataframe # (octave-dataframe : indispo dans nixpkgs, à compiler via pkg si besoin)
|
||||
]))
|
||||
]
|
||||
))
|
||||
gnuplot # gnuplot
|
||||
|
||||
# --- Gestion de fichiers KDE ---
|
||||
kdePackages.dolphin
|
||||
kdePackages.dolphin-plugins
|
||||
|
|
@ -43,15 +40,14 @@
|
|||
kdePackages.ark
|
||||
kdePackages.kdegraphics-thumbnailers
|
||||
kdePackages.ffmpegthumbs
|
||||
|
||||
nwg-look
|
||||
papirus-icon-theme
|
||||
mako
|
||||
cliphist
|
||||
grim slurp
|
||||
grim
|
||||
slurp
|
||||
mullvad-vpn
|
||||
];
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
pinentry.package = pkgs.pinentry-gnome3;
|
||||
|
|
|
|||
|
|
@ -47,11 +47,9 @@
|
|||
mullvad-vpn # GUI Mullvad (le service est côté système)
|
||||
];
|
||||
programs.gpg.enable = true;
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
pinentry.package = pkgs.pinentry-curses;
|
||||
};
|
||||
|
||||
services.protonmail-bridge.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
mappings = {
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
zathura
|
||||
poppler-utils
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ inputs.zen-browser.homeModules.beta ];
|
||||
programs.zen-browser = {
|
||||
|
|
@ -8,4 +13,3 @@
|
|||
};
|
||||
stylix.targets.zen-browser.profileNames = [ "default" ];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "robbyrussell";
|
||||
plugins = [ "git" "sudo" ];
|
||||
plugins = [
|
||||
"git"
|
||||
"sudo"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,4 +4,3 @@
|
|||
hardware.bluetooth.powerOnBoot = true;
|
||||
services.blueman.enable = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
time.timeZone = "Europe/Paris";
|
||||
|
||||
i18n.defaultLocale = "fr_FR.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "fr_FR.UTF-8";
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
name = "Bibata-Modern-Ice";
|
||||
size = 24;
|
||||
};
|
||||
|
||||
fonts = {
|
||||
monospace = {
|
||||
package = pkgs.nerd-fonts.jetbrains-mono;
|
||||
|
|
|
|||
|
|
@ -20,4 +20,3 @@
|
|||
inxi
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
|
|
@ -6,5 +6,3 @@
|
|||
options = "--delete-older-than 30d";
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,10 @@
|
|||
users.users.afoucaultc = {
|
||||
isNormalUser = true;
|
||||
description = "afoucaultc";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
programs.zsh.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
# 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-ssd
|
||||
];
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
#nixpkgs.config.permittedInsecurePackages = [
|
||||
# "pnpm-10.29.2"
|
||||
|
|
|
|||
|
|
@ -1,36 +1,48 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
config,
|
||||
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.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/mapper/luks-eddcceff-290e-478d-baef-3fdc0f47a220";
|
||||
fileSystems."/" = {
|
||||
device = "/dev/mapper/luks-eddcceff-290e-478d-baef-3fdc0f47a220";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
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" =
|
||||
{ device = "/dev/disk/by-uuid/2A23-C86E";
|
||||
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" = {
|
||||
device = "/dev/disk/by-uuid/2A23-C86E";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/mapper/luks-5f5524e7-c2c0-4cbd-91f2-37b8fe69a62c"; }
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
swapDevices = [
|
||||
{ device = "/dev/mapper/luks-5f5524e7-c2c0-4cbd-91f2-37b8fe69a62c"; }
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,4 +4,3 @@
|
|||
hardware.bluetooth.powerOnBoot = true;
|
||||
services.blueman.enable = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages;
|
||||
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
device = "nodev";
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
libvdpau-va-gl
|
||||
];
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
LIBVA_DRIVER_NAME = "iHD";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,32 +5,25 @@
|
|||
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-cjk-sans
|
||||
noto-fonts-cjk-serif
|
||||
noto-fonts-color-emoji
|
||||
|
||||
# Microsoft / Windows (ttf-ms-fonts + corefonts)
|
||||
corefonts
|
||||
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
|
||||
font-awesome
|
||||
|
||||
# Fontes de code utiles
|
||||
fira-code
|
||||
jetbrains-mono
|
||||
|
||||
dejavu_fonts
|
||||
liberation_ttf
|
||||
];
|
||||
|
|
|
|||
|
|
@ -4,12 +4,10 @@
|
|||
enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
};
|
||||
|
||||
# Portails XDG (captures d'écran, partage d'écran, file pickers Wayland)
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
|
||||
};
|
||||
|
||||
security.polkit.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
time.timeZone = "Europe/Paris";
|
||||
|
||||
i18n.defaultLocale = "fr_FR.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "fr_FR.UTF-8";
|
||||
|
|
|
|||
|
|
@ -1,12 +1,19 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# ─────────────────────────────────────────────────────────────
|
||||
# Machine à faible RAM (4 GiB) : on privilégie TOUJOURS les
|
||||
# binaires pré-compilés (caches) plutôt que la compilation locale.
|
||||
# ─────────────────────────────────────────────────────────────
|
||||
nix.settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
# Caches binaires : on récupère un maximum de paquets déjà
|
||||
# compilés pour éviter de compiler sur cette machine.
|
||||
substituters = [
|
||||
|
|
@ -24,23 +31,22 @@
|
|||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
trusted-users = [ "root" "@wheel" ];
|
||||
|
||||
trusted-users = [
|
||||
"root"
|
||||
"@wheel"
|
||||
];
|
||||
# Toujours interroger les caches, ne jamais partir du principe
|
||||
# qu'un paquet doit être compilé localement.
|
||||
builders-use-substitutes = true;
|
||||
fallback = true; # si un cache tombe, on tente ailleurs
|
||||
connect-timeout = 10;
|
||||
|
||||
# Limiter la pression mémoire pendant la construction :
|
||||
# peu de jobs en parallèle, sinon 4 Gio saturent vite.
|
||||
max-jobs = 1; # une dérivation à la fois
|
||||
cores = 2; # les 2 cœurs du i5-6200U par job
|
||||
};
|
||||
|
||||
# Auto-optimisation du store (déduplication) pour économiser le disque.
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
# ─────────────────────────────────────────────────────────────
|
||||
# zram : swap compressé en RAM. Indispensable avec 4 Gio, à la
|
||||
# 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)
|
||||
priority = 100;
|
||||
};
|
||||
|
||||
# Le noyau peut « swaper » agressivement vers zram (rapide) plutôt
|
||||
# que de tuer des process pendant un build.
|
||||
boot.kernel.sysctl = {
|
||||
|
|
@ -60,7 +65,6 @@
|
|||
"vm.watermark_scale_factor" = 125;
|
||||
"vm.page-cluster" = 0; # recommandé avec zram
|
||||
};
|
||||
|
||||
# earlyoom : tue proprement le process le plus gourmand avant que la
|
||||
# machine ne se fige totalement (utile si un build déborde malgré tout).
|
||||
services.earlyoom = {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@
|
|||
};
|
||||
};
|
||||
services.power-profiles-daemon.enable = false;
|
||||
|
||||
# Économie d'énergie supplémentaire.
|
||||
powerManagement.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,13 +5,11 @@
|
|||
targets.gtksourceview.enable = false;
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
||||
polarity = "dark";
|
||||
|
||||
cursor = {
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Ice";
|
||||
size = 24;
|
||||
};
|
||||
|
||||
fonts = {
|
||||
monospace = {
|
||||
package = pkgs.nerd-fonts.jetbrains-mono;
|
||||
|
|
|
|||
|
|
@ -20,4 +20,3 @@
|
|||
inxi
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
|
|
@ -6,5 +6,3 @@
|
|||
options = "--delete-older-than 30d";
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,10 @@
|
|||
users.users.afoucaultc = {
|
||||
isNormalUser = true;
|
||||
description = "afoucaultc";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
programs.zsh.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
# généré à l'installation avec nixos-generate-config
|
||||
|
|
|
|||
|
|
@ -1,32 +1,54 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
imports = [
|
||||
(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.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/mapper/cryptroot";
|
||||
fileSystems."/" = {
|
||||
device = "/dev/mapper/cryptroot";
|
||||
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" =
|
||||
{ device = "/dev/disk/by-uuid/6EA9-3F92";
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/6EA9-3F92";
|
||||
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";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue