refactor: simplify host setup

This commit is contained in:
Nickolaj Jepsen 2025-12-13 21:41:52 +01:00
parent 15fb616845
commit d1d4082d56
27 changed files with 147 additions and 90 deletions

View file

@ -1,10 +1,12 @@
# Enabled when: always
{
username,
config,
pkgs,
lib,
...
}: {
}: let
inherit (config.fireproof) username;
in {
environment.systemPackages = [
pkgs.docker
pkgs.docker-compose

View file

@ -1,8 +1,10 @@
{
username,
config,
pkgs,
...
}: {
}: let
inherit (config.fireproof) username;
in {
config = {
programs.fish.enable = true;
users.users.${username}.shell = pkgs.fish;

View file

@ -3,9 +3,10 @@
config,
lib,
pkgs,
username,
...
}: {
}: let
inherit (config.fireproof) username;
in {
config = lib.mkIf config.fireproof.dev.enable {
environment.systemPackages = [
pkgs.kubectl

View file

@ -1,10 +1,10 @@
{
pkgs,
config,
username,
pkgsUnstable,
...
}: let
inherit (config.fireproof) username;
llmConfig =
if pkgs.stdenv.isDarwin
then "Library/Application Support/io.datasette.llm"

View file

@ -2,10 +2,11 @@
{
config,
lib,
username,
pkgs,
...
}: {
}: let
inherit (config.fireproof) username;
in {
config = lib.mkIf config.fireproof.desktop.enable {
environment.systemPackages = with pkgs; [
spotify