mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
Init
This commit is contained in:
Executable
+41
@@ -0,0 +1,41 @@
|
||||
{ inputs, ... }@flakeContext:
|
||||
let
|
||||
homeModule =
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = with inputs; [
|
||||
self.homeModules.default
|
||||
self.homeModules.plasma-manager
|
||||
];
|
||||
home = {
|
||||
username = "root";
|
||||
homeDirectory = "/${config.home.username}";
|
||||
};
|
||||
};
|
||||
nixosModule =
|
||||
{ ... }:
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.root = homeModule;
|
||||
sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
||||
};
|
||||
};
|
||||
in
|
||||
(
|
||||
(inputs.home-manager.lib.homeManagerConfiguration {
|
||||
modules = [
|
||||
homeModule
|
||||
];
|
||||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
||||
})
|
||||
// {
|
||||
inherit nixosModule;
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user