Skip to content

Commit

Permalink
improve structure
Browse files Browse the repository at this point in the history
  • Loading branch information
solidsnakedev committed Nov 23, 2023
1 parent cbddcd1 commit f7e1999
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 21 deletions.
25 changes: 9 additions & 16 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,25 @@
nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/nixos/configuration.nix
vscode-server.nixosModule
({ config, pkgs, ... }: {
services.vscode-server.enable = true;
})
./nixos/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.homeserver = import ./home-manager/server/home.nix;

# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
({ config, pkgs, ... }: { services.vscode-server.enable = true; })
];
};
};

# Available through 'home-manager --flake .#your-username@your-hostname'
homeConfigurations = {
# FIXME replace with your username@hostname
"homeserver@nixos" = home-manager.lib.homeManagerConfiguration {
modules = [ ./home-manager/homeserver/home.nix ];
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
};

"jonathan" = home-manager.lib.homeManagerConfiguration {
modules = [ ./home-manager/mac/home.nix ];
pkgs = nixpkgs.legacyPackages.aarch64-darwin; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs; }; # Pass flake inputs to our config
# > Our main home-manager configuration file <
modules = [ ./home-manager/mac/home.nix ];
};
};
};
Expand Down
19 changes: 14 additions & 5 deletions home-manager/server/home.nix → home-manager/homeserver/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,21 @@
gnumake
];

programs.starship = {
enable = true;
enableFishIntegration = true;
enableZshIntegration = false;
settings = {
command_timeout = 1000;
};
};

imports = [
./../common-modules/fish.nix
./../common-modules/direnv.nix
./../common-modules/git.nix
./../common-modules/tmux.nix
./../common-modules/bat.nix
./../../modules/fish.nix
./../../modules/direnv.nix
./../../modules/git.nix
./../../modules/tmux.nix
./../../modules/bat.nix
./local-modules/neovim.nix
];

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f7e1999

Please sign in to comment.