moved home-manager options to the "home" namespace

this frees up the "host" namespace for host-wide options.
This commit is contained in:
Gabe Venberg 2024-04-23 16:56:34 -05:00
parent ec2a7506a3
commit 9eb783a3e8
17 changed files with 64 additions and 55 deletions

View file

@ -28,7 +28,7 @@
BreakBeforeBinaryOperators: NonAssignment
...
'';
"work/.clang-format" = lib.mkIf config.host.git.workProfile.enable {
"work/.clang-format" = lib.mkIf config.home.git.workProfile.enable {
text = ''
---
#this syncronizes with settings used by neovims treesitters so that the lsp formatting and treesitter formatting do not fight eatch other.

View file

@ -5,13 +5,13 @@
...
}: {
options = {
host.nvim.enable-lsp = lib.mkEnableOption "nvim lsp";
home.nvim.enable-lsp = lib.mkEnableOption "nvim lsp";
};
config =
lib.mkIf config.host.nvim.enable-lsp
lib.mkIf config.home.nvim.enable-lsp
{
host.nvim.enable-completions = true;
home.nvim.enable-completions = true;
programs.nixvim = {
plugins.lsp = {
enable = true;

View file

@ -5,7 +5,7 @@
...
}: {
config =
lib.mkIf config.host.nvim.enable-lsp
lib.mkIf config.home.nvim.enable-lsp
{
programs.nixvim = {
plugins.rust-tools = {