flakes: Migrate the config and miku to flakes
This commit is contained in:
1 parent
09d385806a
commit
1d8f2f8053
64 files changed
+2612
-1739
No files matched your search
@@ -1,12 +1,21 @@
|
||||
{
|
||||
config
|
||||
, mako
|
||||
, lib
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ mako ];
|
||||
|
||||
home-manager.users."${config.system.singleUser}".programs.mako = {
|
||||
enable = true;
|
||||
let
|
||||
cfg = config.ptw.services.mako;
|
||||
in {
|
||||
options.ptw.services.mako = {
|
||||
enable = lib.mkEnableOption "Enable and configure mako using HomeManager";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ mako ];
|
||||
|
||||
home-manager.users."${config.ptw.system.singleUser}".programs.mako = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user