chore(tools): Add nixos-compose and expose default config

This commit is contained in:
DashieTM 2025-09-07 21:34:28 +02:00
parent a2adc26e58
commit 55b55f7133
4 changed files with 10 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
result/* result/*
result result
flake.lock

View file

@ -4,13 +4,13 @@
# variables for system # variables for system
conf = { conf = {
# TODO your username # TODO your username
username = "YOURNAME"; username = "exampleName";
# TODO only needed when you use intel -> amd is default # TODO only needed when you use intel -> amd is default
# cpu = "intel"; # cpu = "intel";
# TODO your xkb layout # TODO your xkb layout
locale = "something.UTF-8"; locale = "en_US.UTF-8";
# TODO your timezone # TODO your timezone
timezone = "CONTINENT/CITY"; timezone = "Europe/Zurich";
}; };
# modules # modules

View file

@ -51,6 +51,8 @@
# absolute insanity # absolute insanity
chaoticNyx.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; chaoticNyx.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
compose.url = "github:garnix-io/nixos-compose";
}; };
outputs = {self, ...} @ inputs: let outputs = {self, ...} @ inputs: let
@ -113,5 +115,6 @@
unstablePkgs = unstable; unstablePkgs = unstable;
modules = ./modules; modules = ./modules;
iso = dashNixLib.buildIso.config.system.build.isoImage; iso = dashNixLib.buildIso.config.system.build.isoImage;
nixosConfigurations = dashNixLib.buildSystems {root = ./example/.;};
}; };
} }

View file

@ -4,6 +4,8 @@
config, config,
pkgs, pkgs,
options, options,
inputs,
system,
... ...
}: let }: let
font_family = "${config.mods.stylix.fonts.monospace.name}"; font_family = "${config.mods.stylix.fonts.monospace.name}";
@ -511,6 +513,7 @@ in {
d-spy d-spy
tmux tmux
tmate tmate
inputs.compose.packages.${system}.default
]; ];
in in
lib.mkIf config.mods.coding.enable ( lib.mkIf config.mods.coding.enable (