Skip to content

Commit

Permalink
feat(modules/nixos): added podman config
Browse files Browse the repository at this point in the history
  • Loading branch information
bddvlpr committed Sep 15, 2024
1 parent 281b326 commit 4ba1bac
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/home/swayidle/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ in {

config = mkIf cfg.enable {
services.swayidle = let
swayidle = lib.getExe config.programs.swaylock.package;
swaylock = lib.getExe config.programs.swaylock.package;
hyprctl = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl";
in {
enable = true;

timeouts = [
{
timeout = 60 * 3;
command = swayidle;
command = "${swaylock} --grace 120";
}
{
timeout = 60 * 5;
Expand Down
25 changes: 25 additions & 0 deletions modules/nixos/podman/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
lib,
config,
...
}: let
inherit (lib) mkIf mkOption types;

cfg = config.sysc.podman;
in {
options.sysc.podman = {
enable = mkOption {
type = types.bool;
default = true;
description = "Whether to enable podman.";
};
};

config = mkIf cfg.enable {
virtualisation.podman.enable = true;

environment.persistence."/persist".directories = [
"/var/lib/containers"
];
};
}
1 change: 0 additions & 1 deletion systems/dissension/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
sysc = {
avahi.enable = true;
docker.enable = true;
libvirtd.enable = true;
};

Expand Down
1 change: 0 additions & 1 deletion systems/solaris/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
sysc = {
avahi.enable = true;
docker.enable = true;
libvirtd.enable = true;
};

Expand Down

0 comments on commit 4ba1bac

Please sign in to comment.