feat: minor modules updates

This commit is contained in:
Nickolaj Jepsen 2026-01-20 23:55:02 +01:00
parent 1a899dc894
commit 89cefcd610
7 changed files with 17 additions and 10 deletions

View file

@ -2,6 +2,7 @@
options.fireproof.base.defaults = { options.fireproof.base.defaults = {
terminal = lib.mkOption { terminal = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "ghostty";
description = "The terminal to use"; description = "The terminal to use";
}; };
}; };

View file

@ -8,6 +8,8 @@
type = lib.types.str; type = lib.types.str;
description = "The primary username for the machine"; description = "The primary username for the machine";
}; };
work.enable = lib.mkEnableOption "Enable work-related applications and tools";
dev.enable = lib.mkEnableOption "Enable development tools and applications";
hardware = { hardware = {
battery = lib.mkOption { battery = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;

View file

@ -8,4 +8,5 @@ _: {
}; };
nix.settings.auto-optimise-store = true; nix.settings.auto-optimise-store = true;
nix.optimise.automatic = true;
} }

View file

@ -1,4 +1,4 @@
{config, ...}: { {config, pkgs, ...}: {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix.settings = { nix.settings = {
@ -8,7 +8,9 @@
config.fireproof.username config.fireproof.username
]; ];
experimental-features = "nix-command flakes"; experimental-features = ["nix-command" "flakes"];
warn-dirty = false;
substituters = [ substituters = [
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
"https://install.determinate.systems" "https://install.determinate.systems"
@ -19,4 +21,7 @@
"cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM=" "cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM="
]; ];
}; };
# Make 'nix repl' have all the nixpkgs available
environment.systemPackages = [pkgs.nixpkgs-fmt];
} }

View file

@ -1,9 +1,4 @@
{lib, ...}: { _: {
options.fireproof = {
work.enable = lib.mkEnableOption "Enable work-related applications and tools";
dev.enable = lib.mkEnableOption "Enable development tools and applications";
};
imports = [ imports = [
./fish/default.nix ./fish/default.nix
./claude.nix ./claude.nix

View file

@ -1,8 +1,7 @@
_: { _: {
options.fireproof.base = {};
imports = [ imports = [
./boot.nix ./boot.nix
./hardware.nix
./hosts.nix ./hosts.nix
./keyd.nix ./keyd.nix
./wsl.nix ./wsl.nix

View file

@ -0,0 +1,4 @@
_: {
services.fwupd.enable = true;
hardware.enableRedistributableFirmware = true;
}