started new config

This commit is contained in:
2025-12-28 14:48:30 +09:00
commit a743f2c943
17 changed files with 661 additions and 0 deletions

109
profiles/base.nix Normal file
View File

@@ -0,0 +1,109 @@
{ config, lib, pkgs, ... }:
{
networking.networkmanager.enable = lib.mkDefault true;
time.timeZone = "Asia/Tokyo";
i18n = {
defaultLocale = "en_US.UTF-8";
defaultCharset = "UTF-8";
extraLocales = [
"ja_JP.UTF-8/UTF-8"
"ja_JP.EUC-JP/EUC-JP"
];
};
services.pipewire = {
enable = true;
pulse.enable = true;
};
services.openssh = {
enable = true;
};
programs.mtr.enable = true;
programs.gnupg = {
agent = {
enable = true;
enableSSHSupport = true;
};
};
hardware.gpgSmartcards.enable = true;
users.users.bitbang = {
isNormalUser = true;
extraGroups = [ "wheel" "video" "audio" "nix" "dialout" "networkmanager" ];
};
programs.zoxide = {
enable = true;
enableBashIntegration = false;
enableZshIntegration = true;
};
programs.tmux = {
enable = true;
clock24 = true;
baseIndex = 1;
keyMode = "vi";
customPaneNavigationAndResize = true;
newSession = true;
historyLimit = 10000;
terminal = "tmux-direct";
};
programs.bat = {
enable = true;
};
programs.nix-ld = {
enable = true;
libraries = with pkgs; [
zlib
zstd
stdenv.cc.cc
curl
openssl
attr
libssh
bzip2
libxml2
acl
libsodium
util-linux
xz
systemd
ffmpeg
];
};
nix.gc = {
automatic = true;
dates = "monthly";
persistent = true;
};
nix.settings = {
cores = 4;
sandbox = true;
allowed-users = [ "@wheel" ];
trusted-users = [ "@wheel" ];
log-lines = 50;
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ];
substituters = [
"https://cache.nixos.org"
];
accept-flake-config = true;
};
environment.systemPackages = with pkgs; [
micro
wget
git
btop
fastfetch
stow
];
}