Add home manager compatibility to flake rather than just nixos module
This commit is contained in:
parent
de5f6ca3cd
commit
ec92f3bc5f
3 changed files with 25 additions and 5 deletions
25
flake.nix
25
flake.nix
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
home.stateVersion = "24.05";
|
||||
|
||||
home.username = "ty";
|
||||
home.homeDirectory = "/home/ty";
|
||||
|
||||
imports = [
|
||||
./modules/packages.nix
|
||||
./modules/plasma.nix
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
wget
|
||||
curl
|
||||
neovim
|
||||
home-manager
|
||||
# VCS
|
||||
git
|
||||
jujutsu
|
||||
|
|
Loading…
Reference in a new issue