summaryrefslogtreecommitdiff
path: root/home/default.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-08-25 20:31:22 -0600
committerAlejandro Soto <alejandro@34project.org>2022-08-25 20:33:12 -0600
commit4b0efbd66f36634c7ddeef6308a528838c923f68 (patch)
tree8fe81cd8ed82a66ff4bb7d8bba024e0bcd631ea4 /home/default.nix
parent82766c2755693f325cc25e2e7585b1648502f636 (diff)
home: split up default.nix
Diffstat (limited to '')
-rw-r--r--home/default.nix145
1 files changed, 4 insertions, 141 deletions
diff --git a/home/default.nix b/home/default.nix
index 355291d..80984a3 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -3,9 +3,11 @@
with lib; {
imports = [
hm-isolation.homeManagerModule
+ ./desktop.nix
+ ./environ.nix
+ ./graphics.nix
./isolation.nix
./path.nix
- ./unfree.nix
];
options.local.workstation = with lib.types; mkOption {
@@ -46,147 +48,8 @@ with lib; {
};
language.base = "es_CR.UTF-8";
-
- file = let
- symlink = path: { source = config.lib.file.mkOutOfStoreSymlink path; };
- #TODO: No sirve, creo que por readline
- devNull = symlink "/dev/null";
- in {
- "vtmp" = symlink "/run/user/1000/vtmp";
- ".calc_history" = devNull;
- ".units_history" = devNull;
- };
- };
-
- fonts.fontconfig.enable = true;
-
- gtk = {
- enable = true;
- gtk3.bookmarks = [ "file:///home/ale/vtmp" "file:///home/ale/tmp" ];
-
- 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";
- };
-
- xdg = {
- enable = true;
- configFile = {
- "i3/config".text = import ./i3-config.nix {
- inherit (pkgs) i3lock-color xautolock;
- inherit (pkgs.xorg) setxkbmap;
- inherit (pkgs.local) st tmux-lift;
-
- i3status-rust = config.programs.i3status-rust.package;
- rofi = config.programs.rofi.finalPackage;
- };
- };
- };
-
- systemd.user.tmpfiles.rules = [
- "d %t/vtmp 0700"
- ];
-
- xsession = {
- enable = true;
- # Cambiar po windowManager.i3.enable al migrar
- windowManager.command = "${pkgs.i3-gaps}/bin/i3";
};
- programs = {
- home-manager.enable = true;
-
- zsh = {
- enable = true;
- enableAutosuggestions = true;
- enableSyntaxHighlighting = true;
- initExtra = import ./zshrc.nix pkgs;
- };
-
- firefox = {
- enable = true;
-
- profiles."main.profile" = {
- id = 0;
- name = "default";
- };
-
- extensions = with pkgs.nur.repos.rycee.firefox-addons; [
- decentraleyes
- darkreader
- keepassxc-browser
- old-reddit-redirect
- privacy-badger
- ublock-origin
- umatrix
- ];
- };
-
- git = {
- enable = true;
- userName = "Alejandro Soto";
- userEmail = "alejandro@34project.org";
- };
-
- i3status-rust = {
- enable = true;
- };
-
- neovim = {
- enable = 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
- '';
- };
-
- rofi = {
- enable = true;
- theme = "DarkBlue";
- };
-
- tmux = {
- enable = true;
- aggressiveResize = true;
- clock24 = true;
- escapeTime = 10;
- terminal = "xterm-256color";
- keyMode = "vi";
-
- 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"
- bind-key X set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
- '';
- };
- };
+ programs.home-manager.enable = true;
};
}