mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
refactor: simplify host setup
This commit is contained in:
parent
15fb616845
commit
d1d4082d56
27 changed files with 147 additions and 90 deletions
|
|
@ -1,10 +1,12 @@
|
|||
# Enabled when: always
|
||||
{
|
||||
username,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
inherit (config.fireproof) username;
|
||||
in {
|
||||
environment.systemPackages = [
|
||||
pkgs.docker
|
||||
pkgs.docker-compose
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
{
|
||||
username,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
inherit (config.fireproof) username;
|
||||
in {
|
||||
config = {
|
||||
programs.fish.enable = true;
|
||||
users.users.${username}.shell = pkgs.fish;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue