chore: reindent + install pi.dev

This commit is contained in:
Pierre Martin
2026-08-03 10:57:45 +02:00
parent afd74551fc
commit 047ff192f5
8 changed files with 231 additions and 165 deletions

View File

@@ -59,9 +59,15 @@
variant = "bepo";
};
windowManager = { i3 = { enable = true; }; };
windowManager = {
i3 = {
enable = true;
};
};
};
services.displayManager = {
defaultSession = "none+i3";
};
services.displayManager = { defaultSession = "none+i3"; };
# Configure console keymap
console.keyMap = "fr";
@@ -70,8 +76,14 @@
users.users.pierre = {
isNormalUser = true;
description = "Pierre";
extraGroups =
[ "networkmanager" "wheel" "audio" "docker" "video" "lpadmin" ];
extraGroups = [
"networkmanager"
"wheel"
"audio"
"docker"
"video"
"lpadmin"
];
shell = pkgs.zsh;
packages = with pkgs; [ ];
};
@@ -103,14 +115,16 @@
# enable = true;
# enableSSHSupport = true;
# };
programs.zsh.enable =
true; # see https://github.com/NixOS/nixpkgs/issues/20548#issuecomment-261965667
programs.zsh.enable = true; # see https://github.com/NixOS/nixpkgs/issues/20548#issuecomment-261965667
hardware.acpilight.enable = true;
hardware.i2c.enable = true;
programs.nix-ld = {
enable = true;
libraries = with pkgs; [ fnm stdenv.cc.cc.lib ];
libraries = with pkgs; [
fnm
stdenv.cc.cc.lib
];
};
# Printing
@@ -139,15 +153,12 @@
services.nscd.enable = true;
services.tlp.enable = true;
services.upower.enable = true; # keyboard backlight
services.gnome.at-spi2-core.enable =
true; # see https://github.com/NixOS/nixpkgs/pull/49636/files
services.gnome.gnome-keyring.enable =
true; # see https://nixos.wiki/wiki/Visual_Studio_Code#Error_after_Sign_On
services.gnome.at-spi2-core.enable = true; # see https://github.com/NixOS/nixpkgs/pull/49636/files
services.gnome.gnome-keyring.enable = true; # see https://nixos.wiki/wiki/Visual_Studio_Code#Error_after_Sign_On
services.blueman.enable = true;
services.udisks2.enable = true;
services.resolved.enable = true;
services.gvfs.enable =
true; # to view MTP devices in file manager - https://www.perplexity.ai/search/how-to-browse-files-from-bus-0-QWBoYG1gRLu3uMRqFSzw9A
services.gvfs.enable = true; # to view MTP devices in file manager - https://www.perplexity.ai/search/how-to-browse-files-from-bus-0-QWBoYG1gRLu3uMRqFSzw9A
# Prevent coredump issues with Antigravity - https://www.perplexity.ai/search/systemd-coredump-high-cpu-on-n-LUnRQViaRuiDn1LR06hU8w#2
systemd.coredump = {
@@ -186,7 +197,16 @@
keep-outputs = true
keep-derivations = true
'';
nix.settings.extra-experimental-features = [ "nix-command" "flakes" ];
nix.settings.extra-experimental-features = [
"nix-command"
"flakes"
];
# Cache binaire de https://github.com/lukasl-dev/pi.nix (cf. programs/pi.nix)
nix.settings.extra-substituters = [ "https://pi.cachix.org" ];
nix.settings.extra-trusted-public-keys = [
"pi.cachix.org-1:lGeoGJaZ5ZDabuRzkcD5EBTNnDM4HJ1vqeOxlWk1Flk="
];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions

View File

@@ -5,7 +5,13 @@
# Doc: https://wiki.archlinux.org/title/Framework_Laptop
#
{ config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
boot.kernelParams = [

View File

@@ -1,13 +1,24 @@
# 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") ];
boot.initrd.availableKernelModules =
[ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
@@ -22,8 +33,7 @@
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/da431bdf-cec4-4928-b44b-e6d2c3419063"; }];
swapDevices = [ { device = "/dev/disk/by-uuid/da431bdf-cec4-4928-b44b-e6d2c3419063"; } ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
@@ -33,6 +43,5 @@
# networking.interfaces.wlp166s0.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}