diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-12-03 21:19:39 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-12-03 21:49:54 -0600 |
| commit | 61f3db56410f41d5249c88e44db60d9713dae26d (patch) | |
| tree | 49c2d5d5e4da331d139cfdc6034c0dba5980271b /home/default.nix | |
| parent | 854f5ee287eb66db5a0713e2f4fac56794e3d735 (diff) | |
home: big refactor
Diffstat (limited to '')
| -rw-r--r-- | home/default.nix | 67 |
1 files changed, 6 insertions, 61 deletions
diff --git a/home/default.nix b/home/default.nix index 96d6b3f..254cde2 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,66 +1,11 @@ -{ lib, config, pkgs, ... }: -with lib; { +{ flakes, ... }: { imports = [ + flakes.hm-isolation.homeManagerModule ../pki - ./desktop.nix - ./environ.nix - ./git.nix - ./gpg.nix - ./graphics.nix - ./isolation.nix + ./baseline + ./desktop + ./environ + ./isolation ./mail - ./path.nix - ./pass.nix - ./ssh ]; - - options.local = with lib.types; { - hostname = mkOption { - type = str; - }; - - uid = mkOption { - type = int; - }; - - workstation = mkOption { - type = bool; - }; - }; - - config = { - nix.registry."system".to = { - type = "path"; - path = "${config.home.homeDirectory}/nix"; - }; - - home = { - # This value determines the Home Manager release that your - # configuration is compatible with. This helps avoid breakage - # when a new Home Manager release introduces backwards - # incompatible changes. - # - # You can update Home Manager without changing this value. See - # the Home Manager release notes for a list of state version - # changes in each release. - stateVersion = "21.11"; - - homeDirectory = "/home/${config.home.username}"; - - sessionVariables = { - EDITOR = "nvim"; - LESSHISTFILE = "/dev/null"; - - # Usar gtk en aplicaciones de jvm - _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" - ]; - }; - }; - - programs.home-manager.enable = true; - }; } |
