Make home.nix a proper module

This commit is contained in:
Donovan Glover 2023-05-17 11:44:08 -04:00
parent 4012f0a381
commit a2d6373232
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
4 changed files with 11 additions and 10 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, stylix, ... }: { pkgs, ... }:
{ {
imports = [ imports = [
@ -24,6 +24,7 @@
./modules/timezone ./modules/timezone
./modules/nix ./modules/nix
./modules/npm ./modules/npm
./modules/home-manager
]; ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
@ -37,7 +38,6 @@
NODE_OPTIONS = "--max_old_space_size=16384"; NODE_OPTIONS = "--max_old_space_size=16384";
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
pinentry-curses pinentry-curses
wget wget

View File

@ -27,7 +27,6 @@
specialArgs = attrs; specialArgs = attrs;
modules = [ modules = [
./configuration.nix ./configuration.nix
./home.nix
./home-manager ./home-manager
hyprland.nixosModules.default hyprland.nixosModules.default
stylix.nixosModules.stylix stylix.nixosModules.stylix

View File

@ -1,7 +0,0 @@
{ home-manager, ... }: {
imports = [ home-manager.nixosModule ];
home-manager.useGlobalPkgs = true;
home-manager.sharedModules = [{
home.stateVersion = "22.11";
}];
}

View File

@ -0,0 +1,9 @@
{
home-manager = {
useGlobalPkgs = true;
sharedModules = [{
home.stateVersion = "22.11";
}];
};
}