1
0
Fork 0

feat(nix): add nix flakes

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-07-26 21:13:56 -07:00
parent edbd8ce1d2
commit 35e75575f8
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
7 changed files with 496 additions and 0 deletions

75
nix/hosts/common/sys.nix Normal file
View file

@ -0,0 +1,75 @@
{ inputs, config, lib, pkgs, ... }: {
nixpkgs.config.allowUnfree = true;
nix = {
extraOptions = ''
extra-experimental-features = nix-command flakes
build-users-group = nixbld
'';
settings = {
trusted-users = [ "root" "priime" ];
substituters =
[ "https://cache.nixos.org/" "https://nix-community.cachix.org" ];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
sandbox = true;
};
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
};
environment.systemPackages = with pkgs;
let
packages = [
nixos-rebuild
coreutils
git
gnupg
bottom
htop
bat
jq
unzip
wget
curl
libtool
fish
gcc
gnumake
cmake
tldr
emacs
man-pages
gdb
zsh
alsa-utils
killall
feh
xcolor
xclip
xdotool
ripgrep
nix-index
cargo
rustup
rustfmt
clippy
rust-analyzer
python3
nodejs
yarn
racket
jdk8
jdk21
jdk22
nodejs_20
];
in packages;
}