Compare commits
2 commits
56dc8655f8
...
333fef2297
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
333fef2297 | ||
|
|
881eae6894 |
|
|
@ -9,4 +9,5 @@
|
|||
|
||||
home.username = "ahnwuoa";
|
||||
xresources.properties."Xft.dpi" = 120;
|
||||
u.has.activitywatch = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,16 +9,5 @@
|
|||
];
|
||||
|
||||
home.username = "ahnwuoa";
|
||||
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"];
|
||||
};
|
||||
u.has.activitywatch = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,21 @@
|
|||
# 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, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = ["kvm-amd"];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
|
|
|||
25
user/activitywatch.nix
Normal file
25
user/activitywatch.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
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
|
||||
];
|
||||
}
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
{config, lib, ...}: {
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = lib.mkDefault {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
./activitywatch.nix
|
||||
./autostart.nix
|
||||
./bin
|
||||
./config
|
||||
|
|
|
|||
|
|
@ -43,22 +43,24 @@
|
|||
});
|
||||
description = "list of file manager bookmarks";
|
||||
};
|
||||
has = {
|
||||
graphical = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = "enable graphical settings";
|
||||
default = true;
|
||||
};
|
||||
wine = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = "enable wine settings";
|
||||
default = true;
|
||||
};
|
||||
prog = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = "enable prog settings";
|
||||
default = true;
|
||||
};
|
||||
has = let
|
||||
mkOpt = name:
|
||||
lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = "enable ${name}";
|
||||
default = true;
|
||||
};
|
||||
mkOptF = name:
|
||||
lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = "enable ${name}";
|
||||
default = false;
|
||||
};
|
||||
in {
|
||||
graphical = mkOpt "graphical";
|
||||
wine = mkOpt "wine";
|
||||
prog = mkOpt "prog";
|
||||
activitywatch = mkOptF "activitywatch";
|
||||
};
|
||||
lib = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
|
|
|
|||
Loading…
Reference in a new issue