mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-14 12:23:58 +01:00
Make home.nix a proper module
This commit is contained in:
parent
4012f0a381
commit
a2d6373232
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, lib, stylix, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
@ -24,6 +24,7 @@
|
||||
./modules/timezone
|
||||
./modules/nix
|
||||
./modules/npm
|
||||
./modules/home-manager
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
@ -37,7 +38,6 @@
|
||||
NODE_OPTIONS = "--max_old_space_size=16384";
|
||||
};
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
pinentry-curses
|
||||
wget
|
||||
|
@ -27,7 +27,6 @@
|
||||
specialArgs = attrs;
|
||||
modules = [
|
||||
./configuration.nix
|
||||
./home.nix
|
||||
./home-manager
|
||||
hyprland.nixosModules.default
|
||||
stylix.nixosModules.stylix
|
||||
|
7
home.nix
7
home.nix
@ -1,7 +0,0 @@
|
||||
{ home-manager, ... }: {
|
||||
imports = [ home-manager.nixosModule ];
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.sharedModules = [{
|
||||
home.stateVersion = "22.11";
|
||||
}];
|
||||
}
|
9
modules/home-manager/default.nix
Normal file
9
modules/home-manager/default.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
|
||||
sharedModules = [{
|
||||
home.stateVersion = "22.11";
|
||||
}];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user