iron: format configuration

This commit is contained in:
Primrose 2025-12-08 23:54:56 +08:00
parent eb750b585d
commit 6783ce6f72
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
8 changed files with 180 additions and 160 deletions

View file

@ -10,9 +10,11 @@ in
lib,
pkgs,
...
}: let
}:
let
inherit (lib.modules) mkAliasOptionModule;
in {
in
{
imports = [
#
# Shorthands
@ -37,8 +39,7 @@ in
nixpkgs = {
overlays =
map import
[
map import [
../overlays/agenix.nix
../overlays/disko.nix
../overlays/nur.nix

View file

@ -3,14 +3,17 @@
lib,
config,
...
}: {
}:
{
home.sessionPath = [
"${config.home.homeDirectory}/.local/bin"
];
home.sessionVariables = let
home.sessionVariables =
let
fishCfg = config.programs.fish;
in {
in
{
"SHELL" = lib.mkIf fishCfg.enable (lib.getExe fishCfg.package);
};

View file

@ -2,8 +2,10 @@
config,
lib,
...
}: {
users.users.root.openssh.authorizedKeys.keys = let
}:
{
users.users.root.openssh.authorizedKeys.keys =
let
# TODO: put iron keys in identities
ids = import ../../../identities.nix;
in

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
services.btrfs.autoScrub = {
enable = true;
fileSystems = [

View file

@ -7,12 +7,23 @@
pkgs,
modulesPath,
...
}: {
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["uhci_hcd" "ehci_pci" "ahci" "firewire_ohci" "usbhid" "uas" "sd_mod" "sr_mod" "sdhci_pci"];
boot.initrd.availableKernelModules = [
"uhci_hcd"
"ehci_pci"
"ahci"
"firewire_ohci"
"usbhid"
"uas"
"sd_mod"
"sr_mod"
"sdhci_pci"
];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];

View file

@ -1,4 +1,5 @@
{lib, ...}: {
{ lib, ... }:
{
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# `timedatectl list-timezones`
time.timeZone = "Asia/Taipei";

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
environment.systemPackages = [
pkgs.man-pages
pkgs.man-pages-posix