Add home manager compatibility to flake rather than just nixos module

This commit is contained in:
Tyler Beckman 2024-11-24 21:38:00 -07:00
parent de5f6ca3cd
commit ec92f3bc5f
Signed by: Ty
GPG key ID: 2813440C772555A4
3 changed files with 25 additions and 5 deletions

View file

@ -44,9 +44,11 @@
};
};
outputs = inputs@{ nixpkgs, home-manager, sddm-sugar-candy-nix, ... }: {
outputs = inputs@{ nixpkgs, home-manager, plasma-manager, ... }: let
system = "x86_64-linux";
in {
nixosConfigurations.ty-nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
inherit system;
modules = [
./hosts/laptop
@ -57,8 +59,23 @@
];
specialArgs = {
inherit inputs;
system = "x86_64-linux";
inherit inputs system;
};
};
# Add home manager configuration compatibility to the main flake
homeConfigurations."ty" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
plasma-manager.homeManagerModules.plasma-manager
./home-manager/home.nix
];
extraSpecialArgs = {
inherit inputs system;
};
};
};

View file

@ -1,7 +1,9 @@
{ ... }:
{
home.stateVersion = "24.05";
home.username = "ty";
home.homeDirectory = "/home/ty";
imports = [
./modules/packages.nix
./modules/plasma.nix

View file

@ -6,6 +6,7 @@
wget
curl
neovim
home-manager
# VCS
git
jujutsu