refactor(home): adjust nixpkgs config

This commit is contained in:
Felix Schröter 2025-06-06 15:27:16 +02:00
parent 649893358c
commit 80808acdd8
Signed by: felschr
GPG key ID: 671E39E6744C807D
6 changed files with 14 additions and 10 deletions

5
home/base.nix Normal file
View file

@ -0,0 +1,5 @@
_:
{
imports = [ ./nixpkgs.nix ];
}

View file

@ -7,6 +7,7 @@
{
imports = [
./base.nix
./shell
./editors/lsp.nix
./editors/helix

View file

@ -3,6 +3,7 @@
with pkgs;
{
imports = [
./base.nix
./shell
./tailscale.nix
./editors

View file

@ -2,6 +2,7 @@
{
imports = [
./base.nix
./shell
./tailscale.nix
./editors

View file

@ -16,15 +16,12 @@ let
pkgs = self.pkgsFor system;
extraSpecialArgs = { inherit inputs; };
modules =
(with self.homeModules; [ nixpkgs ])
++ [
{
home.username = user;
home.homeDirectory = "/home/${user}";
}
]
++ modules;
modules = [
{
home.username = user;
home.homeDirectory = "/home/${user}";
}
] ++ modules;
};
in
{
@ -32,7 +29,6 @@ in
flake = {
homeModules = {
nixpkgs = import ./modules/nixpkgs.nix;
git = import ./modules/git.nix;
firefox = import ./modules/firefox/firefox.nix;
tor-browser = import ./modules/firefox/tor-browser.nix;