Fix on modules name and on zsh

This commit is contained in:
2026-02-11 19:15:20 +01:00
parent 6911410f6a
commit 4f10ad35cd
24 changed files with 65 additions and 62 deletions
+1 -3
View File
@@ -70,10 +70,8 @@
++ [ ++ [
./hosts/nixos/overlays.nix ./hosts/nixos/overlays.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
(import-tree ./hosts/common)
(import-tree ./modules/home/common) (import-tree ./hosts/common)
(import-tree ./modules/home/nixos)
(import-tree ./hosts/nixos/home/users) (import-tree ./hosts/nixos/home/users)
]; ];
}; };
-2
View File
@@ -1,7 +1,5 @@
{ ... }: { ... }:
{ {
system.primaryUser = "alistreaza";
nix = { nix = {
settings = { settings = {
experimental-features = "nix-command flakes"; experimental-features = "nix-command flakes";
+5 -5
View File
@@ -11,11 +11,11 @@
}; };
# Shell apps # Shell apps
user.shell.zsh.enable = true; home.shell.zsh.enable = true;
user.shell.git.enable = true; home.shell.git.enable = true;
user.shell.neovim.enable = true; home.shell.neovim.enable = true;
user.shell.nh.enable = true; home.shell.nh.enable = true;
user.shell.devenv.enable = true; home.shell.devenv.enable = true;
# No Home Application Folders # No Home Application Folders
targets.darwin.linkApps.enable = false; targets.darwin.linkApps.enable = false;
+1
View File
@@ -1,5 +1,6 @@
{ ... }: { ... }:
{ {
system.primaryUser = "alistreaza";
nixpkgs.hostPlatform = "aarch64-darwin"; nixpkgs.hostPlatform = "aarch64-darwin";
# Homebrew apps # Homebrew apps
+16 -15
View File
@@ -2,8 +2,8 @@
{ {
home-manager.users.alistreaza = { home-manager.users.alistreaza = {
imports = [ imports = [
(import-tree ../../../modules/home/common) (import-tree ../../../../modules/home/common)
(import-tree ../../../modules/home/nixos) (import-tree ../../../../modules/home/nixos)
(import-tree ../partials) (import-tree ../partials)
]; ];
@@ -13,27 +13,28 @@
}; };
# Shell apps # Shell apps
user.shell.zsh.enable = true; home.shell.zsh.enable = true;
user.shell.git.enable = true; home.shell.git.enable = true;
user.shell.neovim.enable = true; home.shell.neovim.enable = true;
user.shell.nh.enable = true; home.shell.nh.enable = true;
user.shell.devenv.enable = true; home.shell.devenv.enable = true;
# Code editor # Code editor
user.ide.zed.enable = true; home.ide.zed.enable = true;
# IDE Jetbrains # IDE Jetbrains
user.ide.jetbrains.idea.enable = false; home.ide.jetbrains.idea.enable = true;
user.ide.jetbrains.pycharm.enable = false; home.ide.jetbrains.pycharm.enable = true;
user.ide.jetbrains.phpstorm.enable = false; home.ide.jetbrains.phpstorm.enable = true;
user.ide.jetbrains.rustrover.enable = false; home.ide.jetbrains.rustrover.enable = true;
home.ide.jetbrains.goland.enable = true;
# IDE Data Jetbrains # IDE Data Jetbrains
user.ide.jetbrains.datagrip.enable = false; home.ide.jetbrains.datagrip.enable = true;
user.ide.jetbrains.dataspell.enable = false; home.ide.jetbrains.dataspell.enable = true;
# Markdown Editor # Markdown Editor
user.editor.obsidian.enable = false; home.md.obsidian.enable = true;
# The state version is required and should stay at the version you # The state version is required and should stay at the version you
# originally installed. # originally installed.
+6
View File
@@ -0,0 +1,6 @@
{ ... }:
{
programs.zsh = {
enable = true;
};
}
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.shell.devenv; cfg = config.home.shell.devenv;
in in
{ {
options.user.shell.devenv = { options.home.shell.devenv = {
enable = mkEnableOption "System devenv service"; enable = mkEnableOption "System devenv service";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -5,10 +5,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.shell.git; cfg = config.home.shell.git;
in in
{ {
options.user.shell.git = { options.home.shell.git = {
enable = mkEnableOption "Zen Editor options"; enable = mkEnableOption "Zen Editor options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -1,10 +1,10 @@
{ lib, config, ... }: { lib, config, ... }:
with lib; with lib;
let let
cfg = config.user.shell.neovim; cfg = config.home.shell.neovim;
in in
{ {
options.user.shell.neovim = { options.home.shell.neovim = {
enable = mkEnableOption "System neovim service"; enable = mkEnableOption "System neovim service";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -1,10 +1,10 @@
{ lib, config, ... }: { lib, config, ... }:
with lib; with lib;
let let
cfg = config.user.shell.nh; cfg = config.home.shell.nh;
in in
{ {
options.user.shell.nh = { options.home.shell.nh = {
enable = mkEnableOption "System nh service"; enable = mkEnableOption "System nh service";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -3
View File
@@ -1,16 +1,15 @@
{ lib, config, ... }: { lib, config, ... }:
with lib; with lib;
let let
cfg = config.user.shell.zsh; cfg = config.home.shell.zsh;
in in
{ {
options.user.shell.zsh = { options.home.shell.zsh = {
enable = mkEnableOption "System zsh service"; enable = mkEnableOption "System zsh service";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.zsh = { programs.zsh = {
enable = true;
enableCompletion = true; enableCompletion = true;
autosuggestion.enable = true; autosuggestion.enable = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.jetbrains.clion; cfg = config.home.ide.jetbrains.clion;
in in
{ {
options.user.ide.jetbrains.clion = { options.home.ide.jetbrains.clion = {
enable = mkEnableOption "JetBrains options"; enable = mkEnableOption "JetBrains options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.jetbrains.datagrip; cfg = config.home.ide.jetbrains.datagrip;
in in
{ {
options.user.ide.jetbrains.datagrip = { options.home.ide.jetbrains.datagrip = {
enable = mkEnableOption "JetBrains options"; enable = mkEnableOption "JetBrains options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.jetbrains.dataspell; cfg = config.home.ide.jetbrains.dataspell;
in in
{ {
options.user.ide.jetbrains.dataspell = { options.home.ide.jetbrains.dataspell = {
enable = mkEnableOption "JetBrains options"; enable = mkEnableOption "JetBrains options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.jetbrains.goland; cfg = config.home.ide.jetbrains.goland;
in in
{ {
options.user.ide.jetbrains.goland = { options.home.ide.jetbrains.goland = {
enable = mkEnableOption "JetBrains options"; enable = mkEnableOption "JetBrains options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.jetbrains.idea; cfg = config.home.ide.jetbrains.idea;
in in
{ {
options.user.ide.jetbrains.idea = { options.home.ide.jetbrains.idea = {
enable = mkEnableOption "JetBrains options"; enable = mkEnableOption "JetBrains options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.jetbrains.phpstorm; cfg = config.home.ide.jetbrains.phpstorm;
in in
{ {
options.user.ide.jetbrains.phpstorm = { options.home.ide.jetbrains.phpstorm = {
enable = mkEnableOption "JetBrains options"; enable = mkEnableOption "JetBrains options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.jetbrains.pycharm; cfg = config.home.ide.jetbrains.pycharm;
in in
{ {
options.user.ide.jetbrains.pycharm = { options.home.ide.jetbrains.pycharm = {
enable = mkEnableOption "JetBrains options"; enable = mkEnableOption "JetBrains options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.jetbrains.rider; cfg = config.home.ide.jetbrains.rider;
in in
{ {
options.user.ide.jetbrains.rider = { options.home.ide.jetbrains.rider = {
enable = mkEnableOption "JetBrains options"; enable = mkEnableOption "JetBrains options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.jetbrains.rubymine; cfg = config.home.ide.jetbrains.rubymine;
in in
{ {
options.user.ide.jetbrains.rubymine = { options.home.ide.jetbrains.rubymine = {
enable = mkEnableOption "JetBrains options"; enable = mkEnableOption "JetBrains options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.jetbrains.rustrover; cfg = config.home.ide.jetbrains.rustrover;
in in
{ {
options.user.ide.jetbrains.rustrover = { options.home.ide.jetbrains.rustrover = {
enable = mkEnableOption "JetBrains options"; enable = mkEnableOption "JetBrains options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.jetbrains.webstorm; cfg = config.home.ide.jetbrains.webstorm;
in in
{ {
options.user.ide.jetbrains.webstorm = { options.home.ide.jetbrains.webstorm = {
enable = mkEnableOption "JetBrains options"; enable = mkEnableOption "JetBrains options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.editor.obsidian; cfg = config.home.md.obsidian;
in in
{ {
options.user.editor.obsidian = { options.home.md.obsidian = {
enable = mkEnableOption "Obsidian options"; enable = mkEnableOption "Obsidian options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}: }:
with lib; with lib;
let let
cfg = config.user.ide.zed; cfg = config.home.ide.zed;
in in
{ {
options.user.ide.zed = { options.home.ide.zed = {
enable = mkEnableOption "Zen Editor options"; enable = mkEnableOption "Zen Editor options";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {