migra a version nueva de shenvs
This commit is contained in:
parent
177659997f
commit
8f48524a76
13 changed files with 61 additions and 80 deletions
|
|
@ -1,11 +1,17 @@
|
|||
# man page: https://rycee.gitlab.io/home-manager/options.html
|
||||
|
||||
{ nixpkgs, self }:
|
||||
{ nixpkgs, self, hm-isolation }:
|
||||
{ config, pkgs, lib, ... }: with lib; {
|
||||
|
||||
nixpkgs.overlays = [ self.overlay ];
|
||||
|
||||
imports = [ ./desktop ./steam ./systemd ];
|
||||
imports = [
|
||||
(hm-isolation.homeManagerModule)
|
||||
./desktop
|
||||
./isolation.nix
|
||||
./steam
|
||||
./systemd
|
||||
];
|
||||
|
||||
home = {
|
||||
stateVersion = "21.11"; # No tocar esto
|
||||
|
|
@ -16,11 +22,6 @@
|
|||
"EDITOR" = "nvim";
|
||||
"TERMINAL" = "kitty";
|
||||
};
|
||||
file = {
|
||||
".shenvs".text = let
|
||||
keeps = { gcKeep ? [] }: concatStringsSep "\n" (map toString gcKeep);
|
||||
in keeps (import ../shenvs/config.nix pkgs.local.shenvs);
|
||||
};
|
||||
keyboard = {
|
||||
layout = "us,latam";
|
||||
options = [ "grp:alt_shift_toggle" ];
|
||||
|
|
|
|||
18
home/isolation.nix
Normal file
18
home/isolation.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{pkgs, config, lib, ...} :
|
||||
with lib;
|
||||
{
|
||||
home.isolation = {
|
||||
enable = true;
|
||||
btrfsSupport = true;
|
||||
defaults = {
|
||||
static = true;
|
||||
bindHome = "home/";
|
||||
persist = {
|
||||
base = "shenvs";
|
||||
btrfs = true;
|
||||
};
|
||||
};
|
||||
|
||||
modulesUnder = ./shenvs;
|
||||
};
|
||||
}
|
||||
13
home/shenvs/c.nix
Normal file
13
home/shenvs/c.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{pkgs, ...} :
|
||||
{
|
||||
packages = with pkgs; [
|
||||
binutils
|
||||
gdb
|
||||
gcc-arm-embedded
|
||||
gnumake
|
||||
lldb
|
||||
openocd
|
||||
qemu
|
||||
valgrind
|
||||
];
|
||||
}
|
||||
15
home/shenvs/octave.nix
Normal file
15
home/shenvs/octave.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{pkgs, ...}:
|
||||
{
|
||||
packages = with pkgs; [
|
||||
(octave.withPackages (packages: with packages; [
|
||||
symbolic
|
||||
]))
|
||||
pipenv
|
||||
(python39.withPackages (packages: with packages; [
|
||||
numpy
|
||||
scipy
|
||||
sympy
|
||||
matplotlib
|
||||
]))
|
||||
];
|
||||
}
|
||||
12
home/shenvs/proba.nix
Normal file
12
home/shenvs/proba.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{pkgs, ...}:
|
||||
{
|
||||
packages = with pkgs; [
|
||||
pipenv
|
||||
(python310.withPackages ( packages: with packages; [
|
||||
matplotlib
|
||||
numpy
|
||||
pandas
|
||||
scipy
|
||||
]))
|
||||
];
|
||||
}
|
||||
9
home/shenvs/tcrb.nix
Normal file
9
home/shenvs/tcrb.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{pkgs, ... }:
|
||||
{
|
||||
packages = with pkgs; [
|
||||
pipenv
|
||||
(python310.withPackages ( packages: with packages; [
|
||||
setuptools
|
||||
]))
|
||||
];
|
||||
}
|
||||
|
|
@ -86,11 +86,6 @@
|
|||
bindkey ";5C" forward-word
|
||||
bindkey "\e[3~" delete-char
|
||||
|
||||
|
||||
function shenv() {
|
||||
NIXPKGS_ALLOW_UNFREE=1 nix shell 'system#shenvs.'"$1" --impure
|
||||
}
|
||||
|
||||
function use() {
|
||||
nix shell "nixpkgs#$1"
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue