This commit is contained in:
2026-02-28 19:41:14 +01:00
parent 0c81f68a63
commit 5f34d32807
53 changed files with 1303 additions and 1386 deletions

34
modules/core/defaults.nix Normal file
View File

@@ -0,0 +1,34 @@
{ inputs, den, ... }:
{
systems = [ "x86_64-linux" ];
den.ctx.default =
let
configState = "24.05";
in
{
nixos.system.stateVersion = configState;
homeManager.home.stateVersion = configState;
};
den.ctx.host = {
includes = [
den._.define-user
# Set all hostnames automatically
(
{ host, ... }:
{
nixos = {
networking.hostName = host.name;
};
}
)
];
nixos = {
users.mutableUsers = false;
};
};
den.ctx.hm-host.nixos.home-manager.useGlobalPkgs = true;
}

26
modules/core/nix.nix Normal file
View File

@@ -0,0 +1,26 @@
{ inputs, ... }:
{
den.ctx.host = {
nixos = {
nixpkgs.config.allowUnfree = true;
nix = {
gc.automatic = true;
optimise.automatic = true;
registry.nixpkgs.flake = inputs.nixpkgs;
channel.enable = false;
settings = {
trusted-users = [ "@wheel" ];
use-xdg-base-directories = true;
auto-optimise-store = true;
experimental-features = [
"nix-command"
"flakes"
];
};
};
};
};
}

22
modules/core/region.nix Normal file
View File

@@ -0,0 +1,22 @@
{ ... }:
{
lux.region-nl.nixos = {
time.timeZone = "Europe/Amsterdam";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_MEASUREMENT = "nl_NL.UTF-8";
LC_PAPER = "nl_NL.UTF-8";
LC_ADDRESS = "nl_NL.UTF-8";
LC_TELEPHONE = "nl_NL.UTF-8";
LC_NAME = "nl_NL.UTF-8";
# Use '.' as decimal point and ',' as thouands separator
LC_NUMERIC = "en_IE.UTF-8";
LC_MONETARY = "en_IE.UTF-8";
# English day and month names, YYYY-MM-DD format
LC_TIME = "en_IE.UTF-8";
};
};
}

40
modules/core/xdg.nix Normal file
View File

@@ -0,0 +1,40 @@
{ inputs, ... }:
{
lux.xdg = {
homeManager =
{ config, ... }:
let
homeDir = config.home.homeDirectory;
localDir = "${homeDir}/.local";
mediaDir = "${homeDir}/media";
in
{
xdg = {
enable = true;
cacheHome = "${localDir}/cache";
configHome = "${homeDir}/.config";
dataHome = "${localDir}/share";
stateHome = "${localDir}/state";
userDirs = {
enable = true;
createDirectories = true;
download = "${homeDir}/downloads";
documents = "${homeDir}/documents";
# Organize into media folder
music = "${mediaDir}/music";
pictures = "${mediaDir}/images";
videos = "${mediaDir}/videos";
# Hide these
desktop = "${localDir}/desktop";
publicShare = "${localDir}/public";
templates = "${localDir}/templates";
};
};
};
};
}