refactor(gaming): move home-managed config into home manager module
check / lint (push) Successful in 14s
check / lint (push) Successful in 14s
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
browser.enable = true;
|
browser.enable = true;
|
||||||
browser.primary = "librewolf";
|
browser.primary = "librewolf";
|
||||||
cloud.hetzner.enable = true;
|
cloud.hetzner.enable = true;
|
||||||
|
gaming.enable = true;
|
||||||
comms.signal.enable = true;
|
comms.signal.enable = true;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
git.github.enable = true;
|
git.github.enable = true;
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.gaming.enable = lib.mkEnableOption "gaming";
|
||||||
|
|
||||||
|
config = lib.mkIf config.gaming.enable {
|
||||||
|
xdg.configFile."lutris/system.yml".text = lib.generators.toJSON { } {
|
||||||
|
system.game_path = "${config.home.homeDirectory}/games";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -38,12 +38,6 @@ in
|
|||||||
mangohud
|
mangohud
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.${config.host.username} = {
|
|
||||||
xdg.configFile."lutris/system.yml".text = lib.generators.toJSON { } {
|
|
||||||
system.game_path = "/home/${config.host.username}/games";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
security.pam.loginLimits = [
|
security.pam.loginLimits = [
|
||||||
{
|
{
|
||||||
domain = config.host.username;
|
domain = config.host.username;
|
||||||
|
|||||||
Reference in New Issue
Block a user