oizys/modules/essentials.nix

68 lines
1.4 KiB
Nix
Raw Normal View History

2024-06-10 11:55:14 -05:00
{
2025-01-16 17:12:11 -06:00
inputs,
2024-06-10 11:55:14 -05:00
pkgs,
self,
2025-01-16 17:12:11 -06:00
flake,
2024-06-10 11:55:14 -05:00
enabled,
...
}:
2024-01-23 11:51:13 -06:00
{
2024-05-06 14:32:00 -05:00
imports = with self.nixosModules; [ git ];
2024-06-10 11:55:14 -05:00
programs.zsh = enabled;
2024-01-23 11:51:13 -06:00
environment.systemPackages = with pkgs; [
tmux
unzip
2024-05-16 11:56:55 -05:00
zip
2024-01-23 11:51:13 -06:00
less
gnumake
gcc
2024-06-10 11:55:14 -05:00
file
2024-01-23 11:51:13 -06:00
wget
curl
htop
2025-01-16 17:12:11 -06:00
(flake.pkg "self")
pkgs.nix-output-monitor
2024-01-23 11:51:13 -06:00
];
2025-01-16 17:12:11 -06:00
nixpkgs.config.allowUnfree = true;
nix = {
optimise.automatic = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
# use the same nixpkgs for nix run "nixpkgs#hello" style commands
registry.nixpkgs.flake = inputs.nixpkgs;
};
nix = {
settings = {
experimental-features = [
"nix-command"
"flakes"
"pipe-operator"
];
use-xdg-base-directories = true;
trusted-users = [ "@wheel" ];
accept-flake-config = true;
extra-substituters = [
"https://attic.dayl.in/oizys"
"https://nixpkgs-wayland.cachix.org"
# "https://hyprland.cachix.org"
# "https://daylin.cachix.org"
];
extra-trusted-public-keys = [
"oizys:DSw3mwVMM/Y+PXSVpkDlU5dLwlORuiJRGPkwr5INSMc="
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
# "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
# "daylin.cachix.org-1:fLdSnbhKjtOVea6H9KqXeir+PyhO+sDSPhEW66ClE/k="
];
};
};
2024-01-23 11:51:13 -06:00
}