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 = [ imports = [
./base.nix
./shell ./shell
./editors/lsp.nix ./editors/lsp.nix
./editors/helix ./editors/helix

View file

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

View file

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

View file

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