summaryrefslogtreecommitdiff
path: root/home/environ.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-12-03 21:19:39 -0600
committerAlejandro Soto <alejandro@34project.org>2024-12-03 21:49:54 -0600
commit61f3db56410f41d5249c88e44db60d9713dae26d (patch)
tree49c2d5d5e4da331d139cfdc6034c0dba5980271b /home/environ.nix
parent854f5ee287eb66db5a0713e2f4fac56794e3d735 (diff)
home: big refactor
Diffstat (limited to 'home/environ.nix')
-rw-r--r--home/environ.nix73
1 files changed, 0 insertions, 73 deletions
diff --git a/home/environ.nix b/home/environ.nix
deleted file mode 100644
index 60d618a..0000000
--- a/home/environ.nix
+++ /dev/null
@@ -1,73 +0,0 @@
-{ config, lib, pkgs, ... }:
-with lib; let
- symlink = config.lib.file.mkOutOfStoreSymlink;
-
- #TODO: No sirve, creo que por readline
- devNull = symlink "/dev/null";
-in
-{
- config = {
- xdg.enable = true;
-
- systemd.user = {
- tmpfiles.rules = [
- "d %t/vtmp 0700"
- ];
-
- timers = {
- units-cur = {
- Install.WantedBy = [ "timers.target" ];
- Timer.OnCalendar = "daily";
- Unit.Description = "Update currency information for 'units'";
- };
- };
-
- services = {
- units-cur = {
- Unit.Description = "Update currency information for 'units'";
-
- Service = {
- Type = "exec";
- ExecStart = "${pkgs.units}/bin/units_cur .units";
- };
- };
- };
- };
-
- home.file = {
- #TODO: .calc_history
- "vtmp".source = symlink "/run/user/${toString config.local.uid}/vtmp";
- ".units_history".source = devNull;
- };
-
- programs = {
- zsh = {
- enable = true;
- autosuggestion.enable = true;
- syntaxHighlighting.enable = true;
- initExtra = import ./zshrc.nix pkgs;
- };
-
- neovim = {
- enable = true;
-
- viAlias = true;
- vimAlias = true;
- withRuby = false;
- withPython3 = false;
-
- extraConfig = ''
- set number " Enable line numbering
- set relativenumber " Enable relative line numbering
- set tabstop=4 " Set tap stop to 4
- set shiftwidth=4 " Set shift width to 4 (same as tabstop)
- set viminfo= " No tracking
- '';
- };
- };
-
- xdg.configFile."home-manager" = mkIf (!config.home.isolation.active) {
- source = symlink "${config.home.homeDirectory}/nix";
- };
- };
-}