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 = [
|
||||
inputs.spicetify-nix.homeManagerModules.spicetify
|
||||
@ -74,6 +70,4 @@
|
||||
python312 # The main interpreter
|
||||
#pip # The package manager
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -1,12 +1,5 @@
|
||||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
commonHome = import ../common/home.nix {
|
||||
inherit config pkgs inputs;
|
||||
username = "alex";
|
||||
homeDir = "/Users/alex";
|
||||
};
|
||||
in
|
||||
commonHome // {
|
||||
# Refer to the nixOS host for info about home-manager
|
||||
# inherit commonHome;
|
||||
@ -15,10 +8,10 @@ commonHome // {
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
home.packages = commonHome.home.packages ++ (with pkgs; [
|
||||
home.packages = with pkgs; [
|
||||
# Window management (maybe configure it with home-manager)
|
||||
yabai
|
||||
skhd
|
||||
#borders
|
||||
]);
|
||||
];
|
||||
}
|
||||
|
||||
@ -66,6 +66,9 @@
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
backupFileExtension = "backup";
|
||||
sharedModules = [
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
];
|
||||
users = {
|
||||
"alex" = import ./home.nix;
|
||||
};
|
||||
|
||||
@ -1,16 +1,10 @@
|
||||
{ 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
|
||||
# manage.
|
||||
imports = [
|
||||
../common/home.nix
|
||||
../../modules/home-manager/hyprland.nix
|
||||
];
|
||||
# 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
|
||||
# environment.
|
||||
home.packages = commonHome.home.packages ++ ( with pkgs;[
|
||||
home.packages = with pkgs; [
|
||||
# # Adds the 'hello' command to your environment. It prints a friendly
|
||||
# # "Hello, world!" when run.
|
||||
|
||||
@ -51,7 +45,7 @@ commonHome // {
|
||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
||||
# echo "Hello, ${config.home.username}!"
|
||||
# '')
|
||||
]);
|
||||
];
|
||||
|
||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||
# plain files is through 'home.file'.
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
imports =
|
||||
[
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
../../modules/nixos/secrets.nix # Sops
|
||||
../../modules/nixos/wireless.nix # For the wifi
|
||||
../../modules/nixos/locale.nix # For localisation options
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.programs.zed-ai;
|
||||
cfg = config.programs.zed-custom;
|
||||
|
||||
# Zed configuration
|
||||
zedSettings = {
|
||||
@ -390,7 +390,7 @@ in
|
||||
};
|
||||
|
||||
# Configure default MCP servers
|
||||
programs.zed-ai.mcpServers = lib.mkDefault {
|
||||
programs.zed-custom.mcpServers = lib.mkDefault {
|
||||
filesystem = {
|
||||
command = "npx";
|
||||
args = [
|
||||
@ -447,7 +447,7 @@ in
|
||||
# Helper Scripts
|
||||
home.packages = [
|
||||
# Main test script
|
||||
(pkgs.writeShellScriptBin "zed-ai-test" ''
|
||||
(pkgs.writeShellScriptBin "zed-custom-test" ''
|
||||
echo "🔍 Testing Zed AI Configuration with Chain of Thought..."
|
||||
echo ""
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user