Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
10
module/aspect/base/accessibility.nix
Normal file
10
module/aspect/base/accessibility.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
den.aspects = {
|
||||
base = {
|
||||
nixos = {
|
||||
services.orca.enable = false;
|
||||
services.speechd.enable = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
15
module/aspect/base/boot.nix
Normal file
15
module/aspect/base/boot.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
den.aspects = {
|
||||
base = {
|
||||
nixos = {
|
||||
boot = {
|
||||
initrd.systemd.enable = true;
|
||||
tmp = {
|
||||
useTmpfs = true;
|
||||
cleanOnBoot = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
7
module/aspect/base/command-not-found.nix
Normal file
7
module/aspect/base/command-not-found.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
den.aspects = {
|
||||
base = {
|
||||
programs.command-not-found.enable = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
11
module/aspect/base/default-kernel.nix
Normal file
11
module/aspect/base/default-kernel.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
den.aspects = {
|
||||
base = {
|
||||
nixos =
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
14
module/aspect/base/documentation.nix
Normal file
14
module/aspect/base/documentation.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
den.aspects = {
|
||||
base = {
|
||||
nixos = {
|
||||
documentation = {
|
||||
enable = false;
|
||||
doc.enable = false;
|
||||
info.enable = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
# https://mastodon.online/@nomeata/109915786344697931
|
||||
26
module/aspect/base/gnugpg.nix
Normal file
26
module/aspect/base/gnugpg.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
17
module/aspect/base/home-manager.nix
Normal file
17
module/aspect/base/home-manager.nix
Normal 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
|
||||
*/
|
||||
20
module/aspect/base/i18n.nix
Normal file
20
module/aspect/base/i18n.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
24
module/aspect/base/micro-editor.nix
Normal file
24
module/aspect/base/micro-editor.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
22
module/aspect/base/networking.nix
Normal file
22
module/aspect/base/networking.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
23
module/aspect/base/nix-cli-helper.nix
Normal file
23
module/aspect/base/nix-cli-helper.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
73
module/aspect/base/nix-config.nix
Normal file
73
module/aspect/base/nix-config.nix
Normal 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
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
14
module/aspect/base/power-management.nix
Normal file
14
module/aspect/base/power-management.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
den.aspects = {
|
||||
base = {
|
||||
nixos =
|
||||
{ lib, ... }:
|
||||
{
|
||||
powerManagement = {
|
||||
enable = false;
|
||||
cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
14
module/aspect/base/security.nix
Normal file
14
module/aspect/base/security.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
den.aspects = {
|
||||
base = {
|
||||
nixos =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
security = {
|
||||
sudo-rs.enable = true;
|
||||
sudo-rs.wheelNeedsPassword = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
16
module/aspect/base/services.nix
Normal file
16
module/aspect/base/services.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
den.aspects = {
|
||||
base = {
|
||||
nixos = {
|
||||
services = {
|
||||
fstrim.enable = true;
|
||||
journald.extraConfig = ''
|
||||
SystemMaxUse=100M
|
||||
MaxFileSec=3day
|
||||
'';
|
||||
nscd.enableNsncd = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
11
module/aspect/base/system-auto-upgrade.nix
Normal file
11
module/aspect/base/system-auto-upgrade.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
den.aspects = {
|
||||
base = {
|
||||
nixos = {
|
||||
system.autoUpgrade = {
|
||||
enable = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
22
module/aspect/base/system-state.nix
Normal file
22
module/aspect/base/system-state.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
9
module/aspect/base/timezone.nix
Normal file
9
module/aspect/base/timezone.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
den.aspects = {
|
||||
base = {
|
||||
nixos = {
|
||||
time.timeZone = "Asia/Jakarta";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
29
module/aspect/base/xdg.nix
Normal file
29
module/aspect/base/xdg.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue