From 81a021edc9cf3fc50940b456829bfa164b79efe9 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sat, 2 Sep 2023 15:38:49 +0200 Subject: [PATCH] refactor: base --- hosts/yodaTab/home-manager.nix | 29 +---------------------------- modules/base.home.nix | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 28 deletions(-) create mode 100644 modules/base.home.nix diff --git a/hosts/yodaTab/home-manager.nix b/hosts/yodaTab/home-manager.nix index aa635c3..b491396 100644 --- a/hosts/yodaTab/home-manager.nix +++ b/hosts/yodaTab/home-manager.nix @@ -6,37 +6,10 @@ in { imports = [ (import "${home-manager}/nixos") + ../../modules/base.home.nix ../../modules/git.home.nix ../../modules/zsh.home.nix # TODO #../../modules/nitrokey-ssh-gpg.home.nix ]; - - /* Enable home-manager to configure GNOME */ - programs.dconf.enable = true; - - home-manager.users.yoda = { - /* The home.stateVersion option does not have a default and must be set */ - /* https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion */ - home.stateVersion = "23.05"; - - /* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */ - - #home.username = "yoda"; - #home.homeDirectory = "/home/yoda"; - - #services.gpg-agent = { - # enable = true; - # enableSshSupport = true; - # defaultCacheTtl = 1800; - #}; - -# TODO: See history.path below. -# xdg = { -# enable = true; -# #dataHome = "${config.xdg.home.homeDirectory}/.local/share"; -# }; - - - }; } diff --git a/modules/base.home.nix b/modules/base.home.nix new file mode 100644 index 0000000..24e8d5e --- /dev/null +++ b/modules/base.home.nix @@ -0,0 +1,24 @@ +{ config, pkgs, ... }: + +{ + /* Enable home-manager to configure GNOME */ + programs.dconf.enable = true; + + home-manager.users.yoda = { + /* The home.stateVersion option does not have a default and must be set */ + /* https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion */ + home.stateVersion = "23.05"; + + /* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */ + + #home.username = "yoda"; + #home.homeDirectory = "/home/yoda"; + +# TODO: See history.path in zsh module. +# xdg = { +# enable = true; +# #dataHome = "${config.xdg.home.homeDirectory}/.local/share"; +# }; + + }; +}