feat: devshells, formatting, zoxide

This commit is contained in:
Henri Saudubray 2025-12-16 16:42:34 +01:00
parent d4ca1cffd2
commit 989f834aa9
9 changed files with 205 additions and 72 deletions

View file

@ -1,14 +1,9 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
imports = [
./hardware-configuration.nix
];
# Use flakes.
nix.settings.experimental-features = "nix-command flakes";
@ -20,20 +15,13 @@
efi.canTouchEfiVariables = true;
};
kernelPackages = pkgs.linuxPackages_latest;
initrd.luks.devices."luks-374c6259-18c4-462b-9f30-9c9648de00ae".device = "/dev/disk/by-uuid/374c6259-18c4-462b-9f30-9c9648de00ae";
initrd.luks.devices."luks-374c6259-18c4-462b-9f30-9c9648de00ae".device =
"/dev/disk/by-uuid/374c6259-18c4-462b-9f30-9c9648de00ae";
};
networking = {
hostName = "nixos";
networkmanager.enable = true;
wireless.networks.eduroam = {
auth = ''
key_mgmt=WPA-EAP
eap=PWD
identity="henri.saudubray@universite-paris-saclay.fr"
password=""
'';
};
};
# Set your time zone.
@ -90,21 +78,20 @@
users.users.hms = {
isNormalUser = true;
description = "hms";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
extraGroups = [
"networkmanager"
"wheel"
];
packages = [ ];
};
# Install firefox.
programs.firefox.enable = true;
nixpkgs = {
overlays = [];
# Allow unfree packages
overlays = [ ];
config.allowUnfree = true;
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
helix
wget
@ -113,7 +100,7 @@
gnomeExtensions.clipboard-indicator
gnomeExtensions.rounded-window-corners-reborn
gnomeExtensions.runcat
nerd-fonts.caskaydia-cove
nerd-fonts.adwaita-mono
adw-gtk3
gnumake
clang
@ -121,13 +108,10 @@
xclip
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
system.stateVersion = "25.11"; # Did you read the comment?
system.stateVersion = "25.11";
}

View file

@ -1,34 +1,52 @@
# 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,
modulesPath,
...
}:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"vmd"
"nvme"
"usb_storage"
"usbhid"
"sd_mod"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/mapper/luks-de976821-5bfe-4c34-92ff-5d4d607e42c4";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/mapper/luks-de976821-5bfe-4c34-92ff-5d4d607e42c4";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-de976821-5bfe-4c34-92ff-5d4d607e42c4".device = "/dev/disk/by-uuid/de976821-5bfe-4c34-92ff-5d4d607e42c4";
boot.initrd.luks.devices."luks-de976821-5bfe-4c34-92ff-5d4d607e42c4".device =
"/dev/disk/by-uuid/de976821-5bfe-4c34-92ff-5d4d607e42c4";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/6137-E7B4";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/mapper/luks-374c6259-18c4-462b-9f30-9c9648de00ae"; }
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6137-E7B4";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
{ device = "/dev/mapper/luks-374c6259-18c4-462b-9f30-9c9648de00ae"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;