This commit is contained in:
2025-08-29 15:25:40 +02:00
parent 26440bfeee
commit f3821f0dfa
201 changed files with 2461 additions and 1546 deletions

View File

@@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
imports = [
./modules
./variables
@@ -8,7 +9,10 @@
username = "cnst";
homeDirectory = "/home/cnst";
stateVersion = "23.11";
extraOutputsToInstall = ["doc" "devdoc"];
extraOutputsToInstall = [
"doc"
"devdoc"
];
packages = with pkgs; [
bun
];

View File

@@ -1,12 +1,15 @@
{osConfig, ...}: let
{ osConfig, ... }:
let
hostSpecificImports =
if osConfig.networking.hostName == "bunk"
then [
./bunkmod.nix
]
else [
./kimamod.nix
];
in {
if osConfig.networking.hostName == "bunk" then
[
./bunkmod.nix
]
else
[
./kimamod.nix
];
in
{
imports = hostSpecificImports;
}

View File

@@ -1,22 +1,25 @@
{osConfig, ...}: let
{ osConfig, ... }:
let
hostSpecificVariables =
if osConfig.networking.hostName == "bunk"
then {
BROWSER = "zen";
EDITOR = "hx";
TERM = "xterm-256color";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
}
else {
BROWSER = "zen";
EDITOR = "hx";
TERM = "xterm-256color";
VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/cnst/.steam/root/compatibilitytools.d";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
};
in {
if osConfig.networking.hostName == "bunk" then
{
BROWSER = "zen";
EDITOR = "hx";
TERM = "xterm-256color";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
}
else
{
BROWSER = "zen";
EDITOR = "hx";
TERM = "xterm-256color";
VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/cnst/.steam/root/compatibilitytools.d";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
};
in
{
home.sessionVariables = hostSpecificVariables;
}