refactor(nix): port homes to homemanager module

This commit is contained in:
Mohammad Rafiq 2025-07-09 00:53:00 +08:00
parent 2c6cd776ce
commit 2d90d32144
No known key found for this signature in database
5 changed files with 4 additions and 8 deletions

View file

@ -14,7 +14,7 @@ let
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
sharedModules = [ cfg.modules.homeManager.default ]; sharedModules = [ cfg.modules.homeManager.default ];
users = forAllUsers' (name: _: cfg.homes.${name}); users = forAllUsers' (name: _: cfg.modules.homeManager.${name});
}; };
hosts = cfg.manifest.hosts or { }; hosts = cfg.manifest.hosts or { };
mkConfigurations = mkConfigurations =

View file

@ -3,7 +3,7 @@ let
inherit (lib.strings) concatStrings; inherit (lib.strings) concatStrings;
in in
{ {
flake.homes.rafiq = flake.modules.homeManager.rafiq =
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ imports = [

View file

@ -4,7 +4,7 @@
"stremio-shell" "stremio-shell"
"stremio-server" "stremio-server"
]; ];
flake.homes.rafiq = flake.modules.homeManager.rafiq =
{ pkgs, config, ... }: { pkgs, config, ... }:
let let
inherit (lib.modules) mkMerge mkIf; inherit (lib.modules) mkMerge mkIf;

View file

@ -1,5 +1,5 @@
{ {
flake.homes.rafiq = { flake.modules.homeManager.rafiq = {
home.shellAliases = { home.shellAliases = {
gs = "git status"; gs = "git status";
gc = "git commit"; gc = "git commit";

View file

@ -66,10 +66,6 @@ in
readOnly = true; readOnly = true;
}; };
}; };
homes = mkOption {
type = lazyAttrsOf deferredModule;
default = { };
};
manifest = mkOption { manifest = mkOption {
type = submodule { type = submodule {
options = { options = {