Compare commits

..

No commits in common. "333fef22974145d315075dd16fe2414974cadaf4" and "56dc8655f81d2dae08727805257e9b373048efcf" have entirely different histories.

7 changed files with 39 additions and 65 deletions

View file

@ -9,5 +9,4 @@
home.username = "ahnwuoa";
xresources.properties."Xft.dpi" = 120;
u.has.activitywatch = true;
}

View file

@ -9,5 +9,16 @@
];
home.username = "ahnwuoa";
u.has.activitywatch = true;
services.activitywatch = {
enable = true;
watchers = {
aw-watcher-afk.package = pkgs.activitywatch;
aw-watcher-window.package = pkgs.activitywatch;
};
};
systemd.user.targets.activitywatch = {
Unit.Requires = lib.mkForce ["autostart.target"];
Unit.After = lib.mkForce ["autostart.target"];
Install.WantedBy = lib.mkForce ["autostart.target"];
};
}

View file

@ -1,15 +1,11 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];

View file

@ -1,25 +0,0 @@
{
config,
lib,
pkgs,
...
}:
lib.mkIf config.u.has.activitywatch {
services.activitywatch = {
enable = true;
watchers = {
aw-watcher-afk.package = pkgs.activitywatch;
aw-watcher-window.package = pkgs.activitywatch;
};
};
systemd.user.targets.activitywatch = {
Unit.Requires = lib.mkForce ["autostart.target"];
Unit.After = lib.mkForce ["autostart.target"];
Install.WantedBy = lib.mkForce ["autostart.target"];
};
home.packages = with pkgs; [
activitywatch
python312Packages.aw-client
python312Packages.aw-core
];
}

View file

@ -1,8 +1,4 @@
{
config,
lib,
...
}: {
{config, lib, ...}: {
programs.starship = {
enable = true;
settings = lib.mkDefault {

View file

@ -4,7 +4,6 @@
...
}: {
imports = [
./activitywatch.nix
./autostart.nix
./bin
./config

View file

@ -43,24 +43,22 @@
});
description = "list of file manager bookmarks";
};
has = let
mkOpt = name:
lib.mkOption {
has = {
graphical = lib.mkOption {
type = lib.types.bool;
description = "enable ${name}";
description = "enable graphical settings";
default = true;
};
mkOptF = name:
lib.mkOption {
wine = lib.mkOption {
type = lib.types.bool;
description = "enable ${name}";
default = false;
description = "enable wine settings";
default = true;
};
prog = lib.mkOption {
type = lib.types.bool;
description = "enable prog settings";
default = true;
};
in {
graphical = mkOpt "graphical";
wine = mkOpt "wine";
prog = mkOpt "prog";
activitywatch = mkOptF "activitywatch";
};
lib = lib.mkOption {
type = lib.types.attrs;