nix-conf/system/configuration.nix
2025-01-19 00:44:22 -05:00

50 lines
1 KiB
Nix

{
config,
pkgs,
lib,
flake-programs-sqlite,
...
}: {
nix.settings = {
experimental-features = ["nix-command" "flakes"];
use-xdg-base-directories = true;
};
nix.channel.enable = false;
environment.pathsToLink = ["/libexec"];
environment.localBinInPath = true;
boot.tmp.useTmpfs = true;
networking.networkmanager.enable = true;
environment.systemPackages = with pkgs; [
(neovim.override {withRuby = false;})
wget
tree
tmux
git
btop
cryptsetup
man-pages
man-pages-posix
home-manager
sops
];
documentation.dev.enable = true;
xdg.terminal-exec = {
enable = config.u.has.graphical;
settings.default = ["Alacritty.desktop"];
};
services.globalprotect.enable = config.u.has.graphical;
environment.etc."ssh/ssh_config".text = lib.mkAfter "Include /home/*/.local/ssh/config";
programs.command-not-found.dbPath = flake-programs-sqlite.packages.${pkgs.system}.programs-sqlite;
programs.ssh.enableAskPassword = false;
system.stateVersion = "24.05";
}