hosts: housekeeping

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2025-08-31 19:33:29 +05:30
parent cd52be2620
commit 7e4a6ac8fe
15 changed files with 32 additions and 29 deletions

View File

@@ -0,0 +1,4 @@
{ ... }:
{
programs.adb.enable = true;
}

View File

@@ -0,0 +1,4 @@
{ ... }:
{
programs.dconf.enable = true;
}

View File

@@ -0,0 +1,16 @@
{ ... }:
{
security = {
doas = {
enable = true;
extraRules = [
{
groups = [ "wheel" ];
keepEnv = true;
persist = true;
setEnv = [ "PATH" ];
}
];
};
};
}

View File

@@ -0,0 +1,4 @@
{ ... }:
{
programs.git.enable = true;
}

View File

@@ -0,0 +1,9 @@
{ ... }:
{
programs.gnupg = {
agent = {
enableSSHSupport = true;
enable = true;
};
};
}

View File

@@ -0,0 +1,7 @@
{ inputs, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
(nattovim.override { nvimPackage = inputs.nvim-overlay.packages.${pkgs.system}.neovim; })
];
}

View File

@@ -0,0 +1,32 @@
{ self, ... }:
{
nixpkgs = {
config = {
allowBroken = true;
allowUnfree = true;
};
overlays = [
self.overlays.default
];
};
nix = {
extraOptions = ''
experimental-features = nix-command flakes
'';
settings = {
auto-optimise-store = true;
trusted-users = [
"root"
"@wheel"
];
substituters = [
"https://nix-community.cachix.org"
"https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
};
}

View File

@@ -0,0 +1,13 @@
{ ... }:
{
programs.zsh = {
enable = true;
histSize = 30000;
enableBashCompletion = true;
enableCompletion = true;
autosuggestions = {
enable = true;
highlightStyle = "fg=yellow,bold";
};
};
}