Last fix on darwin new structure
This commit is contained in:
@@ -54,23 +54,27 @@
|
||||
nixosConfigurations = {
|
||||
nixos = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
self = self;
|
||||
import-tree = import-tree;
|
||||
home-manager = home-manager;
|
||||
nixpkgs = nixpkgs;
|
||||
nixpkgs-unstable = nixpkgs-unstable;
|
||||
};
|
||||
modules = [
|
||||
./hosts/nixos/overlays.nix
|
||||
(import-tree ./hosts/common)
|
||||
(import ./hosts/nixos/overlays.nix { inherit nixpkgs nixpkgs-unstable; })
|
||||
|
||||
(import-tree ./modules/system/nixos)
|
||||
(import-tree ./hosts/nixos/system)
|
||||
]
|
||||
++ [
|
||||
(import-tree ./hosts/common)
|
||||
./hosts/nixos/overlays.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
(import ./hosts/nixos/overlays.nix { inherit nixpkgs nixpkgs-unstable; })
|
||||
(import-tree ./hosts/common)
|
||||
|
||||
(import-tree ./modules/home/common)
|
||||
(import-tree ./modules/home/nixos)
|
||||
(import-tree ./hosts/darwin/home)
|
||||
(import-tree ./hosts/nixos/home)
|
||||
];
|
||||
};
|
||||
};
|
||||
@@ -84,18 +88,16 @@
|
||||
homebrew-cask = homebrew-cask;
|
||||
};
|
||||
modules = [
|
||||
(import-tree ./hosts/common)
|
||||
nix-homebrew.darwinModules.nix-homebrew
|
||||
(import ./hosts/nixos/overlays.nix { inherit nixpkgs nixpkgs-unstable; })
|
||||
|
||||
(import-tree ./modules/system/darwin)
|
||||
|
||||
(import-tree ./hosts/common)
|
||||
(import-tree ./hosts/darwin/system)
|
||||
]
|
||||
++ [
|
||||
(import-tree ./hosts/common)
|
||||
home-manager.darwinModules.home-manager
|
||||
(import ./hosts/nixos/overlays.nix { inherit nixpkgs nixpkgs-unstable; })
|
||||
|
||||
(import-tree ./modules/home/darwin)
|
||||
|
||||
(import-tree ./hosts/common)
|
||||
(import-tree ./hosts/darwin/home)
|
||||
];
|
||||
};
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{ import-tree, ... }:
|
||||
{
|
||||
home-manager.users.alistreaza = {
|
||||
|
||||
imports = [
|
||||
(import-tree ../../common)
|
||||
(import-tree ../../../modules/home/common)
|
||||
(import-tree ../../../modules/home/darwin)
|
||||
];
|
||||
|
||||
home = {
|
||||
@@ -12,21 +12,11 @@
|
||||
};
|
||||
|
||||
# Shell apps
|
||||
home.shell.zsh = true;
|
||||
home.shell.git = true;
|
||||
home.shell.neovim = true;
|
||||
home.shell.nh.enable = true;
|
||||
home.shell.devenv.enable = true;
|
||||
|
||||
# Homebrew apps
|
||||
home.homebrew.iterm = true;
|
||||
home.homebrew.zed = true;
|
||||
home.homebrew.jetbrain = true;
|
||||
home.homebrew.iina = true;
|
||||
home.homebrew.zen = true;
|
||||
home.homebrew.obsidian = true;
|
||||
home.homebrew.microsoft = true;
|
||||
home.homebrew.keka = true;
|
||||
user.shell.zsh.enable = true;
|
||||
user.shell.git.enable = true;
|
||||
user.shell.neovim.enable = true;
|
||||
user.shell.nh.enable = true;
|
||||
user.shell.devenv.enable = true;
|
||||
|
||||
# No Home Application Folders
|
||||
targets.darwin.linkApps.enable = false;
|
||||
|
||||
@@ -2,6 +2,16 @@
|
||||
{
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
|
||||
# Homebrew apps
|
||||
os.homebrew.iterm.enable = true;
|
||||
os.homebrew.zed.enable = true;
|
||||
os.homebrew.jetbrain.enable = true;
|
||||
os.homebrew.iina.enable = true;
|
||||
os.homebrew.zen.enable = true;
|
||||
os.homebrew.obsidian.enable = true;
|
||||
os.homebrew.microsoft.enable = true;
|
||||
os.homebrew.keka.enable = true;
|
||||
|
||||
# System version
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{ import-tree, ... }:
|
||||
{
|
||||
home-manager.users.alistreaza = {
|
||||
|
||||
imports = [
|
||||
(import-tree ../../common)
|
||||
(import-tree ../../../modules/home/common)
|
||||
(import-tree ../../../modules/home/nixos)
|
||||
];
|
||||
|
||||
home = {
|
||||
@@ -12,27 +12,27 @@
|
||||
};
|
||||
|
||||
# Shell apps
|
||||
home.shell.zsh = true;
|
||||
home.shell.git = true;
|
||||
home.shell.neovim = true;
|
||||
home.shell.nh.enable = true;
|
||||
home.shell.devenv.enable = true;
|
||||
user.shell.zsh.enable = true;
|
||||
user.shell.git.enable = true;
|
||||
user.shell.neovim.enable = true;
|
||||
user.shell.nh.enable = true;
|
||||
user.shell.devenv.enable = true;
|
||||
|
||||
# Code editor
|
||||
home.ide.zed.enable = true;
|
||||
user.ide.zed.enable = true;
|
||||
|
||||
# IDE Jetbrains
|
||||
home.ide.jetbrains.idea.enable = false;
|
||||
home.ide.jetbrains.pycharm.enable = false;
|
||||
home.ide.jetbrains.phpstorm.enable = false;
|
||||
home.ide.jetbrains.rustrover.enable = false;
|
||||
user.ide.jetbrains.idea.enable = false;
|
||||
user.ide.jetbrains.pycharm.enable = false;
|
||||
user.ide.jetbrains.phpstorm.enable = false;
|
||||
user.ide.jetbrains.rustrover.enable = false;
|
||||
|
||||
# IDE Data Jetbrains
|
||||
home.ide.jetbrains.datagrip.enable = false;
|
||||
home.ide.jetbrains.dataspell.enable = false;
|
||||
user.ide.jetbrains.datagrip.enable = false;
|
||||
user.ide.jetbrains.dataspell.enable = false;
|
||||
|
||||
# Markdown Editor
|
||||
home.editor.obsidian.enable = false;
|
||||
user.editor.obsidian.enable = false;
|
||||
|
||||
# The state version is required and should stay at the version you
|
||||
# originally installed.
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.shell.devenv;
|
||||
cfg = config.user.shell.devenv;
|
||||
in
|
||||
{
|
||||
options.home.shell.devenv = {
|
||||
options.user.shell.devenv = {
|
||||
enable = mkEnableOption "System devenv service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -5,16 +5,15 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.shell.git;
|
||||
cfg = config.user.shell.git;
|
||||
in
|
||||
{
|
||||
options.home.shell.git = {
|
||||
options.user.shell.git = {
|
||||
enable = mkEnableOption "Zen Editor options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
config.init.defaultBranch = "main";
|
||||
settings = {
|
||||
user = {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.shell.neovim;
|
||||
cfg = config.user.shell.neovim;
|
||||
in
|
||||
{
|
||||
options.home.shell.neovim = {
|
||||
options.user.shell.neovim = {
|
||||
enable = mkEnableOption "System neovim service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.shell.nh;
|
||||
cfg = config.user.shell.nh;
|
||||
in
|
||||
{
|
||||
options.home.shell.nh = {
|
||||
options.user.shell.nh = {
|
||||
enable = mkEnableOption "System nh service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.shell.zsh;
|
||||
cfg = config.user.shell.zsh;
|
||||
in
|
||||
{
|
||||
options.home.shell.zsh = {
|
||||
options.user.shell.zsh = {
|
||||
enable = mkEnableOption "System zsh service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.jetbrains.clion;
|
||||
cfg = config.user.ide.jetbrains.clion;
|
||||
in
|
||||
{
|
||||
options.home.ide.jetbrains.clion = {
|
||||
options.user.ide.jetbrains.clion = {
|
||||
enable = mkEnableOption "JetBrains options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.jetbrains.datagrip;
|
||||
cfg = config.user.ide.jetbrains.datagrip;
|
||||
in
|
||||
{
|
||||
options.home.ide.jetbrains.datagrip = {
|
||||
options.user.ide.jetbrains.datagrip = {
|
||||
enable = mkEnableOption "JetBrains options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.jetbrains.dataspell;
|
||||
cfg = config.user.ide.jetbrains.dataspell;
|
||||
in
|
||||
{
|
||||
options.home.ide.jetbrains.dataspell = {
|
||||
options.user.ide.jetbrains.dataspell = {
|
||||
enable = mkEnableOption "JetBrains options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.jetbrains.goland;
|
||||
cfg = config.user.ide.jetbrains.goland;
|
||||
in
|
||||
{
|
||||
options.home.ide.jetbrains.goland = {
|
||||
options.user.ide.jetbrains.goland = {
|
||||
enable = mkEnableOption "JetBrains options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.jetbrains.idea;
|
||||
cfg = config.user.ide.jetbrains.idea;
|
||||
in
|
||||
{
|
||||
options.home.ide.jetbrains.idea = {
|
||||
options.user.ide.jetbrains.idea = {
|
||||
enable = mkEnableOption "JetBrains options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.jetbrains.phpstorm;
|
||||
cfg = config.user.ide.jetbrains.phpstorm;
|
||||
in
|
||||
{
|
||||
options.home.ide.jetbrains.phpstorm = {
|
||||
options.user.ide.jetbrains.phpstorm = {
|
||||
enable = mkEnableOption "JetBrains options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.jetbrains.pycharm;
|
||||
cfg = config.user.ide.jetbrains.pycharm;
|
||||
in
|
||||
{
|
||||
options.home.ide.jetbrains.pycharm = {
|
||||
options.user.ide.jetbrains.pycharm = {
|
||||
enable = mkEnableOption "JetBrains options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.jetbrains.rider;
|
||||
cfg = config.user.ide.jetbrains.rider;
|
||||
in
|
||||
{
|
||||
options.home.ide.jetbrains.rider = {
|
||||
options.user.ide.jetbrains.rider = {
|
||||
enable = mkEnableOption "JetBrains options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.jetbrains.rubymine;
|
||||
cfg = config.user.ide.jetbrains.rubymine;
|
||||
in
|
||||
{
|
||||
options.home.ide.jetbrains.rubymine = {
|
||||
options.user.ide.jetbrains.rubymine = {
|
||||
enable = mkEnableOption "JetBrains options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.jetbrains.rustrover;
|
||||
cfg = config.user.ide.jetbrains.rustrover;
|
||||
in
|
||||
{
|
||||
options.home.ide.jetbrains.rustrover = {
|
||||
options.user.ide.jetbrains.rustrover = {
|
||||
enable = mkEnableOption "JetBrains options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.jetbrains.webstorm;
|
||||
cfg = config.user.ide.jetbrains.webstorm;
|
||||
in
|
||||
{
|
||||
options.home.ide.jetbrains.webstorm = {
|
||||
options.user.ide.jetbrains.webstorm = {
|
||||
enable = mkEnableOption "JetBrains options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.editor.obsidian;
|
||||
cfg = config.user.editor.obsidian;
|
||||
in
|
||||
{
|
||||
options.home.editor.obsidian = {
|
||||
options.user.editor.obsidian = {
|
||||
enable = mkEnableOption "Obsidian options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.ide.zed;
|
||||
cfg = config.user.ide.zed;
|
||||
in
|
||||
{
|
||||
options.home.ide.zed = {
|
||||
options.user.ide.zed = {
|
||||
enable = mkEnableOption "Zen Editor options";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.homebrew.iina;
|
||||
cfg = config.os.homebrew.iina;
|
||||
in
|
||||
{
|
||||
options.home.homebrew.iina = {
|
||||
options.os.homebrew.iina = {
|
||||
enable = mkEnableOption "System iina homebrew service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.homebrew.iterm;
|
||||
cfg = config.os.homebrew.iterm;
|
||||
in
|
||||
{
|
||||
options.home.homebrew.iterm = {
|
||||
options.os.homebrew.iterm = {
|
||||
enable = mkEnableOption "System iterm homebrew service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.homebrew.jetbrain;
|
||||
cfg = config.os.homebrew.jetbrain;
|
||||
in
|
||||
{
|
||||
options.home.homebrew.jetbrain = {
|
||||
options.os.homebrew.jetbrain = {
|
||||
enable = mkEnableOption "System jetbrain homebrew service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.homebrew.keka;
|
||||
cfg = config.os.homebrew.keka;
|
||||
in
|
||||
{
|
||||
options.home.homebrew.keka = {
|
||||
options.os.homebrew.keka = {
|
||||
enable = mkEnableOption "System keka homebrew service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.homebrew.microsoft;
|
||||
cfg = config.os.homebrew.microsoft;
|
||||
in
|
||||
{
|
||||
options.home.homebrew.microsoft = {
|
||||
options.os.homebrew.microsoft = {
|
||||
enable = mkEnableOption "System microsoft homebrew service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.homebrew.obsidian;
|
||||
cfg = config.os.homebrew.obsidian;
|
||||
in
|
||||
{
|
||||
options.home.homebrew.obsidian = {
|
||||
options.os.homebrew.obsidian = {
|
||||
enable = mkEnableOption "System obsidian homebrew service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.homebrew.zed;
|
||||
cfg = config.os.homebrew.zed;
|
||||
in
|
||||
{
|
||||
options.home.homebrew.zed = {
|
||||
options.os.homebrew.zed = {
|
||||
enable = mkEnableOption "System zed homebrew service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.home.homebrew.zen;
|
||||
cfg = config.os.homebrew.zen;
|
||||
in
|
||||
{
|
||||
options.home.homebrew.zen = {
|
||||
options.os.homebrew.zen = {
|
||||
enable = mkEnableOption "System zen homebrew service";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
Reference in New Issue
Block a user