t14_legacy_config/home/default.nix

110 lines
2.5 KiB
Nix
Raw Normal View History

2022-03-17 09:00:17 +01:00
# man page: https://rycee.gitlab.io/home-manager/options.html
{ nixpkgs, self }:
{ config, pkgs, lib, ... }: with lib; {
2022-03-24 07:18:25 +01:00
nixpkgs.overlays = [ self.overlay ];
2022-08-13 04:10:14 +02:00
imports = [ ./desktop ./steam ./systemd ];
2022-03-17 09:00:17 +01:00
home = {
stateVersion = "21.11"; # No tocar esto
username = "fabian";
homeDirectory = "/home/fabian";
packages = import ./path.nix pkgs;
2022-03-24 07:18:25 +01:00
sessionVariables = {
"EDITOR" = "nvim";
"TERMINAL" = "kitty";
};
file = {
".shenvs".text = let
keeps = { gcKeep ? [] }: concatStringsSep "\n" (map toString gcKeep);
in keeps (import ../shenvs/config.nix pkgs.local.shenvs);
};
2022-08-06 05:15:35 +02:00
keyboard = {
layout = "us,latam";
options = [ "grp:alt_shift_toggle" ];
};
2022-03-17 09:00:17 +01:00
};
systemd.user.tmpfiles.rules = [
"d %t/tmp 0700 fabian fabian 24h"
];
nix.registry."system".to = {
type = "path";
path = "/home/fabian/nix";
};
nix.registry."nixpkgs".flake = nixpkgs;
2022-03-17 11:02:21 +01:00
2022-03-17 09:00:17 +01:00
nixpkgs.config.allowUnfree = true;
2022-03-22 06:05:56 +01:00
2022-03-17 09:56:03 +01:00
programs.home-manager.enable = true;
2022-03-17 09:59:38 +01:00
programs.neovim.enable = true;
2022-03-17 10:33:21 +01:00
programs.zsh = {
enable = true;
enableSyntaxHighlighting = true;
initExtra = import ./zshrc.nix pkgs;
};
2022-03-22 06:28:52 +01:00
programs.kitty = {
2022-03-22 06:33:08 +01:00
enable = true;
extraConfig = import ./kitty.conf.nix;
2022-03-22 06:28:52 +01:00
};
2022-04-10 04:38:05 +02:00
programs.tmux = {
enable = true;
aggressiveResize = true;
clock24 = true;
escapeTime = 10;
terminal = "xterm-256color";
keyMode = "emacs";
2022-04-10 04:38:05 +02:00
extraConfig = ''
set -g mouse on
set -ga update-environment " LIFT_PID"
set -g set-titles on
set -g renumber-windows on
set -sa terminal-overrides ',xterm-termite:RGB'
set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,} %H:%M %d-%b-%y"
'';
};
2022-03-22 06:28:52 +01:00
# configurable = [ neovim keyboardlayout pulsaudio rofi ];
2022-03-22 06:05:56 +01:00
2022-03-18 20:43:54 +01:00
programs.vscode = {
enable = true;
package = pkgs.vscodium;
userSettings = import ./codium.nix;
haskell = {
enable = true;
hie.enable = false;
};
mutableExtensionsDir = false;
extensions = (with pkgs.vscode-extensions; [
bbenoist.nix
# justusadam.language-haskell
ms-toolsai.jupyter
ms-vscode.cpptools
2022-07-13 18:16:42 +02:00
# github.copilot
]) ++ (with pkgs.local.vscode-extensions; [
laurenttreguier.vscode-simple-icons
rust-lang.rust
sirtori.indenticator
2022-08-23 12:39:35 +02:00
puorc.awesome-vhdl
]);
2022-03-18 20:43:54 +01:00
};
2022-03-17 09:00:17 +01:00
programs.git = {
enable = true;
userEmail = "fabian@cluster451.org";
userName = "Fabián Montero";
2022-03-18 20:46:15 +01:00
signing.key = "E77A808BF9A955D668EEEA6473FA9C9CB5F0249B";
2022-03-17 09:00:17 +01:00
};
2022-03-24 07:18:25 +01:00
programs.steam.enable = true;
2022-03-17 09:00:17 +01:00
}