t14_legacy_config/home/default.nix

59 lines
1.1 KiB
Nix
Raw Normal View History

2022-11-30 00:28:53 +01:00
{ self, nixpkgs, unstable, hm-isolation, nixGL }:
2022-08-26 06:50:38 +02:00
{ config, pkgs, lib, ... } :
with lib;
{
2022-08-26 05:43:18 +02:00
imports = [
(hm-isolation.homeManagerModule)
2022-11-30 04:29:21 +01:00
./apps
2022-11-29 20:55:12 +01:00
./allowUnfreeWhitelist.nix
2022-08-26 06:50:38 +02:00
./gui
2022-08-26 05:43:18 +02:00
./isolation.nix
2022-11-30 00:28:53 +01:00
./options.nix
2022-11-30 04:29:21 +01:00
./cli.nix
2022-08-26 05:43:18 +02:00
./systemd
];
2022-03-17 09:00:17 +01:00
2022-11-30 00:28:53 +01:00
nixpkgs.overlays = [ self.overlay nixGL.overlay ];
2022-08-26 06:50:38 +02:00
2022-03-17 09:00:17 +01:00
home = {
stateVersion = "21.11"; # No tocar esto
username = "fabian";
homeDirectory = "/home/fabian";
2022-03-24 07:18:25 +01:00
sessionVariables = {
"EDITOR" = "nvim";
"TERMINAL" = "kitty";
};
2022-08-06 05:15:35 +02:00
keyboard = {
2022-10-18 22:36:17 +02:00
layout = "us";
variant = "altgr-intl";
2022-08-06 05:15:35 +02:00
};
2022-03-17 09:00:17 +01:00
};
2022-08-26 06:50:38 +02:00
nix.registry = {
"system".to = {
type = "path";
path = "/home/fabian/nix";
};
"nixpkgs".flake = nixpkgs;
2022-11-05 05:36:34 +01:00
"unstable".flake = unstable;
2022-04-10 04:38:05 +02:00
};
2022-11-30 04:29:21 +01:00
programs.home-manager.enable = true;
2023-03-23 04:35:09 +01:00
xdg = {
enable = true;
configFile."nixpkgs".source = mkOutOfStoreSymlink config.nix.registry."system".to.path;
};
2022-11-30 04:29:21 +01:00
local = {
apps.enable = mkDefault (!config.home.isolation.active);
2022-11-30 04:47:43 +01:00
2022-11-30 04:29:21 +01:00
gui = {
enable = mkDefault true;
desktop = mkDefault (!config.home.isolation.active);
};
2022-03-17 09:00:17 +01:00
};
}