Moved user modules

This commit is contained in:
Jan-Bulthuis committed 2025-01-24 00:50:13 +01:00
1 parent 9352fa2649
commit 0932432e11
80 files changed
+64 -6

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
{ ... }:
{
imports = [
# Import systemwide configuration files.
./docker.nix
./river.nix
./steam.nix
./waylock.nix
];
}
+17
View File
@@ -0,0 +1,17 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
enabled = any (user: user.modules.docker.enable) (attrValues config.home-manager.users);
in
{
config = mkIf enabled {
virtualisation.docker.enable = true;
machine.sudo-groups = [ "docker" ];
};
}
+14
View File
@@ -0,0 +1,14 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
enabled = any (user: user.modules.river.enable) (attrValues config.home-manager.users);
in
{
config = mkIf enabled { programs.river.enable = true; };
}
+21
View File
@@ -0,0 +1,21 @@
{
lib,
config,
...
}:
with lib;
let
enabled = any (user: user.modules.steam.enable) (attrValues config.home-manager.users);
in
{
config = mkIf enabled {
modules.unfree.allowedPackages = [
"steam"
"steam-original"
"steam-unwrapped"
];
programs.steam.enable = true;
};
}
+14
View File
@@ -0,0 +1,14 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
enabled = any (user: user.modules.waylock.enable) (attrValues config.home-manager.users);
in
{
config = mkIf enabled { security.pam.services.waylock = { }; };
}