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;
|
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 =
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue