From 61f3db56410f41d5249c88e44db60d9713dae26d Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 3 Dec 2024 21:19:39 -0600 Subject: home: big refactor --- home/default.nix | 67 +++++--------------------------------------------------- 1 file changed, 6 insertions(+), 61 deletions(-) (limited to 'home/default.nix') 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; - }; } -- cgit v1.2.3