mirror of
https://github.com/Alexandre1a/NixOSDots.git
synced 2026-03-10 00:09:46 +01:00
Changed the way of importing HM
This commit is contained in:
parent
94e6185c35
commit
1f9a3f6869
@ -1,10 +1,6 @@
|
|||||||
{ config, pkgs, inputs, username, homeDir, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home = {
|
|
||||||
username = username;
|
|
||||||
homeDirectory = homeDir;
|
|
||||||
};
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.spicetify-nix.homeManagerModules.spicetify
|
inputs.spicetify-nix.homeManagerModules.spicetify
|
||||||
@ -74,6 +70,4 @@
|
|||||||
python312 # The main interpreter
|
python312 # The main interpreter
|
||||||
#pip # The package manager
|
#pip # The package manager
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
commonHome = import ../common/home.nix {
|
|
||||||
inherit config pkgs inputs;
|
|
||||||
username = "alex";
|
|
||||||
homeDir = "/Users/alex";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
commonHome // {
|
commonHome // {
|
||||||
# Refer to the nixOS host for info about home-manager
|
# Refer to the nixOS host for info about home-manager
|
||||||
# inherit commonHome;
|
# inherit commonHome;
|
||||||
@ -15,10 +8,10 @@ commonHome // {
|
|||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
home.packages = commonHome.home.packages ++ (with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Window management (maybe configure it with home-manager)
|
# Window management (maybe configure it with home-manager)
|
||||||
yabai
|
yabai
|
||||||
skhd
|
skhd
|
||||||
#borders
|
#borders
|
||||||
]);
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -66,6 +66,9 @@
|
|||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
|
sharedModules = [
|
||||||
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
|
];
|
||||||
users = {
|
users = {
|
||||||
"alex" = import ./home.nix;
|
"alex" = import ./home.nix;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,16 +1,10 @@
|
|||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let
|
{
|
||||||
commonHome = import ../common/home.nix {
|
|
||||||
inherit config pkgs inputs;
|
|
||||||
username = "alex";
|
|
||||||
homeDir = "/home/alex";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
commonHome // {
|
|
||||||
# Home Manager needs a bit of information about you and the paths it should
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
# manage.
|
# manage.
|
||||||
imports = [
|
imports = [
|
||||||
|
../common/home.nix
|
||||||
../../modules/home-manager/hyprland.nix
|
../../modules/home-manager/hyprland.nix
|
||||||
];
|
];
|
||||||
# This value determines the Home Manager release that your configuration is
|
# This value determines the Home Manager release that your configuration is
|
||||||
@ -24,7 +18,7 @@ commonHome // {
|
|||||||
|
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
# environment.
|
# environment.
|
||||||
home.packages = commonHome.home.packages ++ ( with pkgs;[
|
home.packages = with pkgs; [
|
||||||
# # Adds the 'hello' command to your environment. It prints a friendly
|
# # Adds the 'hello' command to your environment. It prints a friendly
|
||||||
# # "Hello, world!" when run.
|
# # "Hello, world!" when run.
|
||||||
|
|
||||||
@ -51,7 +45,7 @@ commonHome // {
|
|||||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
||||||
# echo "Hello, ${config.home.username}!"
|
# echo "Hello, ${config.home.username}!"
|
||||||
# '')
|
# '')
|
||||||
]);
|
];
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
# plain files is through 'home.file'.
|
# plain files is through 'home.file'.
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
../../modules/nixos/secrets.nix # Sops
|
../../modules/nixos/secrets.nix # Sops
|
||||||
../../modules/nixos/wireless.nix # For the wifi
|
../../modules/nixos/wireless.nix # For the wifi
|
||||||
../../modules/nixos/locale.nix # For localisation options
|
../../modules/nixos/locale.nix # For localisation options
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.programs.zed-ai;
|
cfg = config.programs.zed-custom;
|
||||||
|
|
||||||
# Zed configuration
|
# Zed configuration
|
||||||
zedSettings = {
|
zedSettings = {
|
||||||
@ -390,7 +390,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Configure default MCP servers
|
# Configure default MCP servers
|
||||||
programs.zed-ai.mcpServers = lib.mkDefault {
|
programs.zed-custom.mcpServers = lib.mkDefault {
|
||||||
filesystem = {
|
filesystem = {
|
||||||
command = "npx";
|
command = "npx";
|
||||||
args = [
|
args = [
|
||||||
@ -447,7 +447,7 @@ in
|
|||||||
# Helper Scripts
|
# Helper Scripts
|
||||||
home.packages = [
|
home.packages = [
|
||||||
# Main test script
|
# Main test script
|
||||||
(pkgs.writeShellScriptBin "zed-ai-test" ''
|
(pkgs.writeShellScriptBin "zed-custom-test" ''
|
||||||
echo "🔍 Testing Zed AI Configuration with Chain of Thought..."
|
echo "🔍 Testing Zed AI Configuration with Chain of Thought..."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user