checkpoint

This commit is contained in:
Fabian Montero 2024-04-06 12:10:20 -06:00
parent 64689eb7ca
commit 2aa388c2d4
12 changed files with 74 additions and 164 deletions

View file

@ -34,20 +34,19 @@
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ]
"utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1679067101, "lastModified": 1712386041,
"narHash": "sha256-tMI1inGT9u4KWQml0w30dhWqQPlth1e9K/68sfDkEQA=", "narHash": "sha256-dA82pOMQNnCJMAsPG7AXG35VmCSMZsJHTFlTHizpKWQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "9154cd519a8942728038819682d6b3ff33f321bb", "rev": "d6bb9f934f2870e5cbc5b94c79e9db22246141ff",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-22.11", "ref": "release-23.11",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -88,16 +87,16 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1679318992, "lastModified": 1712310679,
"narHash": "sha256-uoj5Oy6hruIHuxzfQZtcalObe5kPrX9v+ClUMFEOzmE=", "narHash": "sha256-XgC/a/giEeNkhme/AV1ToipoZ/IVm1MV2ntiK4Tm+pw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e2c97799da5f5cd87adfa5017fba971771e123ef", "rev": "72da83d9515b43550436891f538ff41d68eecc7f",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-22.11", "ref": "nixos-23.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -142,21 +141,6 @@
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
},
"utils": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -1,13 +1,13 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11"; # actualizar esto para actualizar nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; # actualizar esto para actualizar
unstable.url = "github:nixos/nixpkgs/master"; unstable.url = "github:nixos/nixpkgs/master";
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";
hm-isolation.url = "github:3442/hm-isolation"; hm-isolation.url = "github:3442/hm-isolation";
nixGL.url = "github:guibou/nixGL"; nixGL.url = "github:guibou/nixGL";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-22.11"; # actualizar esto para actualizar url = "github:nix-community/home-manager/release-23.11"; # actualizar esto para actualizar
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };

View file

@ -11,7 +11,6 @@ with lib;
"steam" "steam"
"steam-original" "steam-original"
"steam-run" "steam-run"
"teams"
"vscode-extension-ms-vscode-cpptools" "vscode-extension-ms-vscode-cpptools"
"vmware-horizon-client" "vmware-horizon-client"
"zoom" "zoom"

View file

@ -10,7 +10,6 @@ in
discord discord
signal-desktop signal-desktop
tdesktop tdesktop
teams
thunderbird thunderbird
zoom-us zoom-us
]; ];

View file

@ -8,6 +8,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
deluge deluge
lapce
mpv mpv
obs-studio obs-studio
pavucontrol pavucontrol

View file

@ -4,7 +4,7 @@ with lib;
programs = { programs = {
zsh = { zsh = {
enable = true; enable = true;
enableSyntaxHighlighting = true; syntaxHighlighting.enable = true;
initExtra = import ./zshrc.nix pkgs; initExtra = import ./zshrc.nix pkgs;
}; };
git = { git = {
@ -14,6 +14,60 @@ with lib;
signing.key = "E77A808BF9A955D668EEEA6473FA9C9CB5F0249B"; signing.key = "E77A808BF9A955D668EEEA6473FA9C9CB5F0249B";
extraConfig.init.defaultBranch = "main"; extraConfig.init.defaultBranch = "main";
}; };
helix = {
enable = true;
settings = {
# theme = "onedark";
editor = {
mouse = true;
line-number = "absolute";
cursorline = true;
cursorcolumn = true;
gutters = [ "diagnostics" "spacer" "line-numbers" "diff" ];
auto-completion = true;
auto-format = true;
auto-save = true;
bufferline = "multiple";
rulers = [ 80 ];
true-color = true;
lsp.display-messages = true;
auto-pairs = false;
whitespace = {
render = {
space = "all";
nbsp = "all";
tab = "all";
newline = "none";
};
};
indent-guides = {
character = "";
render = true;
};
cursor-shape = {
select = "block";
insert = "block";
normal = "block";
};
statusline = {
left = [ "mode" "spinner" "version-control" "file-name" "file-modification-indicator" "total-line-numbers" ];
};
file-picker = {
hidden = false;
follow-symlinks = false;
deduplicate-links = false;
};
};
keys.normal = {
space.space = "file_picker";
space.w = ":w";
space.q = ":q";
esc = [ "collapse_selection" "keep_primary_selection" ];
};
};
};
}; };
home.packages = with pkgs; home.packages = with pkgs;

View file

@ -41,6 +41,7 @@ in
betterlockscreen = { betterlockscreen = {
enable = true; enable = true;
inactiveInterval = 60;
}; };
}; };

View file

@ -1,83 +0,0 @@
{ lib, pkgs, ... }:
with lib; {
static = false; # !!!!
namespaced = true;
packages = with pkgs; [
(quartus-prime-lite.override { supportedDevices = [ "Cyclone V" ]; })
binutils
gcc
gnumake
gtkwave
verilator
];
hm = {
# QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.
home.sessionVariables.LD_LIBRARY_PATH = "${pkgs.gtk2}/lib";
# Evita GC
xdg.configFile."quartus-inputs".text = let
inherit (pkgs) requireFile;
homepage = "https://fpgasoftware.intel.com";
version = "20.1.1.720";
url = "${homepage}/${versions.majorMinor version}/?edition=lite&platform=linux";
inputs = [
(requireFile {
name = "QuartusLiteSetup-${version}-linux.run";
sha256 = "0mjp1rg312dipr7q95pb4nf4b8fwvxgflnd1vafi3g9cshbb1c3k";
inherit url;
})
(requireFile {
name = "ModelSimSetup-${version}-linux.run";
sha256 = "1cqgv8x6vqga8s4v19yhmgrr886rb6p7sbx80528df5n4rpr2k4i";
inherit url;
})
(requireFile {
name = "cyclonev-${version}.qdz";
sha256 = "11baa9zpmmfkmyv33w1r57ipf490gnd3dpi2daripf38wld8lgak";
inherit url;
})
];
in concatStringsSep "\n" inputs;
# dice soto que ponga esto globalmente si quiero nightmode en todo
# Usar gtk en aplicaciones de jvm
home.sessionVariables._JAVA_OPTIONS = concatStringsSep " " [
"-Dawt.useSystemAAFontSettings=on"
"-Dswing.aatext=true"
"-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
"-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
];
gtk = {
enable = true;
gtk2.extraConfig = ''
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-menu-images=1
gtk-button-images=1
'';
font = {
package = pkgs.noto-fonts;
name = "Noto Sans Regular";
#size = 14; <- caga layout de páginas
};
theme = {
package = pkgs.materia-theme;
name = "Materia-dark";
};
};
qt = {
enable = true;
platformTheme = "gtk";
};
};
}

View file

@ -5,12 +5,12 @@
packages = with pkgs; [ packages = with pkgs; [
binutils binutils
cmake cmake
gdb #gdb
gcc-arm-embedded #gcc-arm-embedded
gnumake gnumake
lldb #lldb
openocd #openocd
qemu #qemu
valgrind #valgrind
]; ];
} }

View file

@ -1,18 +0,0 @@
{pkgs, ...}:
{
static = true;
packages = with pkgs; [
(octave.withPackages (packages: with packages; [
symbolic
signal
]))
(python39.withPackages (packages: with packages; [
numpy
pipenv
scipy
sympy
matplotlib
]))
];
}

View file

@ -5,12 +5,7 @@
packages = with pkgs; [ packages = with pkgs; [
pipenv pipenv
(python310.withPackages ( packages: with packages; [ (python310.withPackages ( packages: with packages; [
matplotlib
numpy
pandas
requests requests
scipy
setuptools
])) ]))
]; ];
} }

View file

@ -1,22 +0,0 @@
{ pkgs, ... }:
{
static = true;
packages = with pkgs; [
biber
(texlive.combine {
inherit (texlive)
appendix
scheme-medium
biblatex
biblatex-ieee
cleveref
csquotes
enumitem
ieeetran
titlesec
titling
zref;
})
];
}