Watch
1
0
Fork
You've already forked chitin
0
This commit is contained in:
asnev 2026-10-25 11:41:10 +07:00
commit f23070e414
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4
40 changed files with 1081 additions and 0 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
.directory
*.swp
result
result-*

163
flake.lock generated Normal file
View file

@ -0,0 +1,163 @@
{
"nodes": {
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1777699697,
"narHash": "sha256-Eg9b/rq/ECYwNwEXs5i9wHyhxNI0JrYx2srdI2uZMaQ=",
"ref": "refs/heads/main",
"rev": "382052b74656a369c5408822af3f2501e9b1af81",
"revCount": 94,
"type": "git",
"url": "https://git.lix.systems/lix-project/flake-compat.git"
},
"original": {
"type": "git",
"url": "https://git.lix.systems/lix-project/flake-compat.git"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1790898470,
"narHash": "sha256-zTwuwezD0w3hpga6a6P8emidzAZFyWqlNeRBlpWOOl8=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "024633cd702b10285db5cb19b40ad48d2399ba60",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1792818383,
"narHash": "sha256-199i7ubVSXTMl+0AAlL7cVCXSjcI+jWByMcimYjeMX0=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "24f2190587513b9c2f73db112a17844ae912d965",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-26.05",
"repo": "home-manager",
"type": "github"
}
},
"import-tree": {
"locked": {
"lastModified": 1788467110,
"narHash": "sha256-ljEMTXP/rH0tOvDzc9gzwww6KcHRPRnEHzd9lK48V7s=",
"owner": "vic",
"repo": "import-tree",
"rev": "eb1b52eaecc57f7c136d07ae8a93e724dfecac46",
"type": "github"
},
"original": {
"owner": "vic",
"repo": "import-tree",
"type": "github"
}
},
"mnw": {
"locked": {
"lastModified": 1784154424,
"narHash": "sha256-HRn4O1X2ShYtbq5Egji72/aemyc2cIQicjRZD9hBqM8=",
"owner": "Gerg-L",
"repo": "mnw",
"rev": "0151d9fa87992cbeb67c86616fb9170dcec830b6",
"type": "github"
},
"original": {
"owner": "Gerg-L",
"repo": "mnw",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1792898606,
"narHash": "sha256-v+CWvNPgAsxoqWDWmkjhh3qwZiE/oGkhXT+QH79yg2o=",
"rev": "1f607aa79b6356ed45d3cd3c8079c196e79efa2c",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/26.05/nixos-26.05.12658.1f607aa79b63/nixexprs.tar.zst"
},
"original": {
"type": "tarball",
"url": "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1790477367,
"narHash": "sha256-oujbxmVKDhci2E4EM3KyAbRUgp5/IsCoiA/LfEF7OOk=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "f7cd230690d9fc982d06129f9189b101fddcfa3b",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 315532800,
"narHash": "sha256-17eNBI5Khe4JZaRkL5hRGPWf8MZ6qv+bWAr4V8YeKBw=",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1100280.3ec636362e18/nixexprs.tar.zst"
},
"original": {
"type": "tarball",
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1100280.3ec636362e18/nixexprs.tar.zst"
}
},
"nvf": {
"inputs": {
"flake-compat": "flake-compat",
"mnw": "mnw",
"nixpkgs": [
"nixpkgs-unstable"
]
},
"locked": {
"lastModified": 1792889789,
"narHash": "sha256-xpH3z+T5NELixXRjxGJ3mx30kz63Xt2B0ZfPWl7hcUg=",
"owner": "NotAShelf",
"repo": "nvf",
"rev": "557d2eb05a76e5939e6a75351343cae5731a71f8",
"type": "github"
},
"original": {
"owner": "NotAShelf",
"repo": "nvf",
"type": "github"
}
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
"home-manager": "home-manager",
"import-tree": "import-tree",
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable",
"nvf": "nvf"
}
}
},
"root": "root",
"version": 7
}

15
flake.nix Normal file
View file

@ -0,0 +1,15 @@
{
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
import-tree.url = "github:vic/import-tree";
nixpkgs.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst";
nixpkgs-unstable.url = "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1100280.3ec636362e18/nixexprs.tar.zst";
home-manager.url = "github:nix-community/home-manager/release-26.05";
nvf.url = "github:NotAShelf/nvf";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nvf.inputs.nixpkgs.follows = "nixpkgs-unstable";
};
outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules);
}

View file

@ -0,0 +1,5 @@
{
flake.modules.nixos.base = {
hardware.bluetooth.enable = true;
};
}

17
modules/base/boot.nix Normal file
View file

@ -0,0 +1,17 @@
{
flake.modules.nixos.base = {pkgs, ...}: {
boot = {
loader = {
systemd-boot = {
enable = true;
configurationLimit = 10;
};
efi.canTouchEfiVariables = true;
timeout = 2;
};
kernelPackages = pkgs.linuxPackages_latest;
};
};
}

View file

@ -0,0 +1,7 @@
{
flake.modules.nixos.base = {modulesPath, ...}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
};
}

18
modules/base/doas.nix Normal file
View file

@ -0,0 +1,18 @@
{
flake.modules.nixos.base = {
security = {
doas = {
enable = true;
extraRules = [
{
groups = ["wheel"];
keepEnv = true;
persist = true;
}
];
};
sudo.enable = false;
};
};
}

45
modules/base/fonts.nix Normal file
View file

@ -0,0 +1,45 @@
{
flake.modules.nixos.base = {pkgs, ...}: {
fonts = {
packages = with pkgs; [
# GUI
inter
corefonts
roboto
cantarell-fonts
# internationalisation
noto-fonts
noto-fonts-cjk-sans
noto-fonts-cjk-serif
noto-fonts-color-emoji
noto-fonts-monochrome-emoji
unifont
unifont_upper
unifont-csur
# terminal
nerd-fonts.iosevka
];
fontconfig = {
antialias = true;
subpixel.rgba = "rgb";
hinting.enable = true;
defaultFonts = {
serif = ["Noto Serif"];
sansSerif = ["Cantarell"];
monospace = ["Iosevka Nerd Font"];
emoji = ["Noto Color Emoji"];
};
};
};
};
flake.modules.nixos.kdePlasma = {
config,
lib,
...
}: {
services.displayManager.sddm.settings.Theme.Font =
lib.concatStrings config.fonts.fontconfig.defaultFonts.sansSerif;
};
}

7
modules/base/locale.nix Normal file
View file

@ -0,0 +1,7 @@
{
flake.modules.nixos.base = {
time.timeZone = "Asia/Jakarta";
i18n.defaultLocale = "en_GB.UTF-8";
services.xserver.xkb.layout = "us";
};
}

View file

@ -0,0 +1,8 @@
{
flake.modules.nixos.base = {
networking = {
networkmanager.enable = true;
firewall.enable = true;
};
};
}

15
modules/base/nix-ld.nix Normal file
View file

@ -0,0 +1,15 @@
{
flake.modules.nixos.base = {pkgs, ...}: {
programs.nix-ld = {
enable = true;
libraries = with pkgs; [
fuse
e2fsprogs
stdenv.cc.cc
zlib
alsa-lib
expat
];
};
};
}

18
modules/base/nix.nix Normal file
View file

@ -0,0 +1,18 @@
{
flake.modules.nixos.base = {
nix = {
settings = {
experimental-features = ["nix-command" "flakes"];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
optimise.automatic = true;
};
};
}

32
modules/base/nixpkgs.nix Normal file
View file

@ -0,0 +1,32 @@
{
self,
inputs,
...
}: let
allowUnfree = true;
overlays = [self.overlays.default];
in {
perSystem = {
pkgs,
final,
system,
...
}: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system overlays;
config = {inherit allowUnfree;};
};
overlayAttrs.unstable = import inputs.nixpkgs-unstable {
inherit system;
config = {inherit allowUnfree;};
};
};
flake.modules.nixos.base = {
nixpkgs = {
inherit overlays;
config = {inherit allowUnfree;};
};
};
}

17
modules/base/printing.nix Normal file
View file

@ -0,0 +1,17 @@
{
flake.modules.nixos.base = {pkgs, ...}: {
services.printing = {
enable = true;
drivers = with pkgs; [
epson-escpr
];
};
hardware.sane = {
enable = true;
extraBackends = with pkgs; [
epsonscan2
];
};
};
}

25
modules/base/programs.nix Normal file
View file

@ -0,0 +1,25 @@
{
flake.modules.nixos.base = {
programs = {
fish.enable = true;
atuin = {
enable = true;
settings = {
sync_address = "https://api.atuin.sh";
enter_accept = true;
};
};
git = {
enable = true;
config = {
init.defaultBranch = "main";
advice.defaultBranchName = false;
gpg.format = "ssh";
commit.gpgSign = true;
};
};
};
};
}

21
modules/base/services.nix Normal file
View file

@ -0,0 +1,21 @@
{
flake.modules.nixos.base = {
services = {
fwupd.enable = true;
locate.enable = true;
openssh.enable = false;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
security.rtkit.enable = true;
# ssh-agent user service (SSH_AUTH_SOCK=%t/ssh-agent)
programs.ssh.startAgent = true;
};
}

View file

@ -0,0 +1,39 @@
{
flake.modules.nixos.base = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
nh
alejandra
git
python315
# system utils
file
firmware-updater
mtr
gnupg
ddate
testdisk
tree
wget
btop
plocate
traceroute
rlwrap
entr
unzip
ffmpeg
imagemagick
gnome-disk-utility
# oxidised utils
fd
bat
xh
tlrc
dysk
dust
hyperfine
ripgrep
fzf
eza
];
};
}

7
modules/base/users.nix Normal file
View file

@ -0,0 +1,7 @@
{
flake.modules.nixos.base = {pkgs, ...}: {
users = {
mutableUsers = true;
};
};
}

View file

@ -0,0 +1,24 @@
{
flake.modules.nixos.kdePlasma = {pkgs, ...}: {
services.desktopManager.plasma6.enable = true;
environment = {
plasma6.excludePackages = with pkgs.kdePackages; [
discover
];
systemPackages = with pkgs.kdePackages; [
kate
elisa
bluez-qt
kalk
filelight
kamoso
konversation
kmail
ktorrent
kclock
];
};
};
}

5
modules/gui/sddm.nix Normal file
View file

@ -0,0 +1,5 @@
{
flake.modules.nixos.sddm = {
services.displayManager.sddm.enable = true;
};
}

Some files were not shown because too many files have changed in this diff Show more