refactor(nix): port homes to homemanager module
This commit is contained in:
parent
2c6cd776ce
commit
2d90d32144
5 changed files with 4 additions and 8 deletions
|
@ -14,7 +14,7 @@ let
|
|||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
sharedModules = [ cfg.modules.homeManager.default ];
|
||||
users = forAllUsers' (name: _: cfg.homes.${name});
|
||||
users = forAllUsers' (name: _: cfg.modules.homeManager.${name});
|
||||
};
|
||||
hosts = cfg.manifest.hosts or { };
|
||||
mkConfigurations =
|
||||
|
|
|
@ -3,7 +3,7 @@ let
|
|||
inherit (lib.strings) concatStrings;
|
||||
in
|
||||
{
|
||||
flake.homes.rafiq =
|
||||
flake.modules.homeManager.rafiq =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"stremio-shell"
|
||||
"stremio-server"
|
||||
];
|
||||
flake.homes.rafiq =
|
||||
flake.modules.homeManager.rafiq =
|
||||
{ pkgs, config, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkMerge mkIf;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
flake.homes.rafiq = {
|
||||
flake.modules.homeManager.rafiq = {
|
||||
home.shellAliases = {
|
||||
gs = "git status";
|
||||
gc = "git commit";
|
||||
|
|
|
@ -66,10 +66,6 @@ in
|
|||
readOnly = true;
|
||||
};
|
||||
};
|
||||
homes = mkOption {
|
||||
type = lazyAttrsOf deferredModule;
|
||||
default = { };
|
||||
};
|
||||
manifest = mkOption {
|
||||
type = submodule {
|
||||
options = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue