Initial commit

This commit is contained in:
kirbara 2025-12-01 13:23:24 +07:00
commit cfcc57a8bd
Signed by: exp
GPG key ID: D7E63AD0019E75D9
353 changed files with 18756 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{
den.aspects = {
base = {
nixos = {
services.orca.enable = false;
services.speechd.enable = false;
};
};
};
}

View file

@ -0,0 +1,15 @@
{
den.aspects = {
base = {
nixos = {
boot = {
initrd.systemd.enable = true;
tmp = {
useTmpfs = true;
cleanOnBoot = true;
};
};
};
};
};
}

View file

@ -0,0 +1,7 @@
{
den.aspects = {
base = {
programs.command-not-found.enable = false;
};
};
}

View file

@ -0,0 +1,11 @@
{
den.aspects = {
base = {
nixos =
{ pkgs, lib, ... }:
{
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
};
};
};
}

View file

@ -0,0 +1,14 @@
{
den.aspects = {
base = {
nixos = {
documentation = {
enable = false;
doc.enable = false;
info.enable = false;
};
};
};
};
}
# https://mastodon.online/@nomeata/109915786344697931

View file

@ -0,0 +1,26 @@
_:
{
den.aspects = {
base = {
homeManager =
{ config, ... }:
{
programs = {
gpg = {
enable = true;
settings = {
default-key = _.config.meta.${config.home.username}.key;
};
};
};
services = {
gpg-agent = {
enable = true;
enableSshSupport = true;
sshKeys = _.config.meta.${config.home.username}.keygrip;
};
};
};
};
};
}

View file

@ -0,0 +1,17 @@
{
den.aspects = {
base = {
homeManager =
{ config, ... }:
{
home.homeDirectory = "/home/${config.home.username}";
programs.home-manager.enable = true;
systemd.user.startServices = "sd-switch";
};
};
};
}
/*
https://ohai.social/@rycee/112502545466617762
https://github.com/nix-community/home-manager/issues/5452
*/

View file

@ -0,0 +1,20 @@
{
den.aspects = {
base = {
nixos = {
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
};
};
};
}

View file

@ -0,0 +1,24 @@
{
den.aspects = {
base = {
homeManager = {
programs = {
micro = {
enable = true;
settings = {
diffgutter = true;
keymenu = true;
mkparents = true;
tabsize = 2;
tabstospaces = true;
};
};
};
home.sessionVariables = {
EDITOR = "micro";
VISUAL = "micro";
};
};
};
};
}

View file

@ -0,0 +1,22 @@
{
den.aspects = {
base = {
nixos =
{ pkgs, ... }:
{
networking = {
useDHCP = false;
};
systemd = {
network.wait-online.enable = false;
};
services.resolved = {
enable = true;
};
programs = {
mtr.enable = true;
};
};
};
};
}

View file

@ -0,0 +1,23 @@
{
den.aspects = {
base = {
nixos =
{ pkgs, ... }:
{
programs = {
nh = {
enable = true;
clean = {
enable = true;
extraArgs = "--keep 2";
};
};
};
environment.systemPackages = [
pkgs.nix-output-monitor
pkgs.nvd
];
};
};
};
}

View file

@ -0,0 +1,73 @@
{
flake-file = {
nixConfig = {
abort-on-warn = true;
extra-experimental-features = [
"flakes"
"nix-command"
"pipe-operators"
];
extra-substituters = [
"https://numtide.cachix.org"
#"https://nix-gaming.cachix.org"
#"https://nixpkgs-wayland.cachix.org"
];
extra-trusted-public-keys = [
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
#"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
#"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
];
};
};
den.aspects = {
base = {
nixos =
{ pkgs, config, ... }:
{
nix = {
# See https://hachyderm.io/@leftpaddotpy/112539055867932912
channel.enable = false;
# From https://jackson.dev/post/nix-reasonable-defaults/
extraOptions = ''
connect-timeout = 5
log-lines = 50
min-free = 128000000
max-free = 1000000000
fallback = true
'';
optimise.automatic = true;
settings = {
auto-optimise-store = true;
# See https://discourse.nixos.org/t/24-05-add-flake-to-nix-path/46310/9
nix-path = [ "nixpkgs=${pkgs.path}" ];
trusted-users = [
"root"
"kirbara"
];
experimental-features = [
"flakes"
"nix-command"
"pipe-operators"
];
# ----
substituters = [
"https://nix-community.cachix.org"
#"https://cache.garnix.io"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
#"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
builders-use-substitutes = true;
# ----
warn-dirty = false;
tarball-ttl = 60 * 60 * 24; # 1 day tarball cache
};
};
};
};
};
}

View file

@ -0,0 +1,14 @@
{
den.aspects = {
base = {
nixos =
{ lib, ... }:
{
powerManagement = {
enable = false;
cpuFreqGovernor = lib.mkDefault "powersave";
};
};
};
};
}

View file

@ -0,0 +1,14 @@
{
den.aspects = {
base = {
nixos =
{ pkgs, ... }:
{
security = {
sudo-rs.enable = true;
sudo-rs.wheelNeedsPassword = false;
};
};
};
};
}

View file

@ -0,0 +1,16 @@
{
den.aspects = {
base = {
nixos = {
services = {
fstrim.enable = true;
journald.extraConfig = ''
SystemMaxUse=100M
MaxFileSec=3day
'';
nscd.enableNsncd = true;
};
};
};
};
}

View file

@ -0,0 +1,11 @@
{
den.aspects = {
base = {
nixos = {
system.autoUpgrade = {
enable = false;
};
};
};
};
}

View file

@ -0,0 +1,22 @@
{
den.aspects = {
base =
let
stateVersion = "25.05";
in
{
nixos = {
system = {
inherit stateVersion;
# See https://github.com/NixOS/nixpkgs/pull/415640
rebuild.enableNg = true;
};
};
homeManager = {
home = {
inherit stateVersion;
};
};
};
};
}

View file

@ -0,0 +1,9 @@
{
den.aspects = {
base = {
nixos = {
time.timeZone = "Asia/Jakarta";
};
};
};
}

View file

@ -0,0 +1,29 @@
{
den.aspects = {
base = {
homeManager =
{ config, ... }:
{
xdg = {
enable = true;
mime.enable = true;
userDirs = {
enable = true;
createDirectories = false;
desktop = "${config.home.homeDirectory}/resource/xdg-directory/desktop";
documents = "${config.home.homeDirectory}/resource/xdg-directory/document";
download = "${config.home.homeDirectory}/resource/download";
pictures = "${config.home.homeDirectory}/resource/xdg-directory/picture";
videos = "${config.home.homeDirectory}/resource/xdg-directory/video";
publicShare = null;
templates = null;
music = null;
};
autostart = {
enable = true;
};
};
};
};
};
}