-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
73 lines (64 loc) · 1.75 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
description = "Global Nix configuration with flakes";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
};
outputs = { self, nixpkgs, ... }:
let
system = builtins.currentSystem;
pkgs = import nixpkgs { inherit system; };
in
rec {
packages.${system}.global = pkgs.stdenv.mkDerivation {
name = "global-packages-and-configs";
buildInputs = with pkgs; [
htop
git
gcc
go
deno
fish
tmux
docker
bat
fzf
lazygit
fnm
kitty
chromium
discord
thunderbird
visual-studio-code
vlc
spotify
exa
oh-my-fish
tpm
];
# Fases vacías ya que no estamos compilando código
src = null;
buildPhase = "";
installPhase = ''
mkdir -p $out
# Copiar archivos de configuración al directorio de salida
mkdir -p $out/etc
cp -r ${./config/git/gitconfig} $out/etc/gitconfig
mkdir -p $out/etc/fish
cp -r ${./config/fish/*} $out/etc/fish/
mkdir -p $out/etc/xdg/nvim
cp -r ${./config/nvim/*} $out/etc/xdg/nvim/
# Copiar fuentes
mkdir -p $out/usr/share/fonts
cp -r ${./fonts/*} $out/usr/share/fonts/
# Otros archivos de configuración
# Agrega más copias según sea necesario
'';
# Establecer las variables de entorno necesarias
meta = with pkgs.stdenv.lib; {
description = "Global packages and configurations";
homepage = "https://your-repo-url";
license = licenses.mit;
};
};
};
}