Compare commits
No commits in common. "333fef22974145d315075dd16fe2414974cadaf4" and "56dc8655f81d2dae08727805257e9b373048efcf" have entirely different histories.
333fef2297
...
56dc8655f8
|
|
@ -9,5 +9,4 @@
|
||||||
|
|
||||||
home.username = "ahnwuoa";
|
home.username = "ahnwuoa";
|
||||||
xresources.properties."Xft.dpi" = 120;
|
xresources.properties."Xft.dpi" = 120;
|
||||||
u.has.activitywatch = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,16 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
home.username = "ahnwuoa";
|
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"];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,17 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
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 = [];
|
imports =
|
||||||
boot.kernelModules = ["kvm-amd"];
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
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
|
# 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
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{config, lib, ...}: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = lib.mkDefault {
|
settings = lib.mkDefault {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./activitywatch.nix
|
|
||||||
./autostart.nix
|
./autostart.nix
|
||||||
./bin
|
./bin
|
||||||
./config
|
./config
|
||||||
|
|
|
||||||
|
|
@ -43,24 +43,22 @@
|
||||||
});
|
});
|
||||||
description = "list of file manager bookmarks";
|
description = "list of file manager bookmarks";
|
||||||
};
|
};
|
||||||
has = let
|
has = {
|
||||||
mkOpt = name:
|
graphical = lib.mkOption {
|
||||||
lib.mkOption {
|
type = lib.types.bool;
|
||||||
type = lib.types.bool;
|
description = "enable graphical settings";
|
||||||
description = "enable ${name}";
|
default = true;
|
||||||
default = true;
|
};
|
||||||
};
|
wine = lib.mkOption {
|
||||||
mkOptF = name:
|
type = lib.types.bool;
|
||||||
lib.mkOption {
|
description = "enable wine settings";
|
||||||
type = lib.types.bool;
|
default = true;
|
||||||
description = "enable ${name}";
|
};
|
||||||
default = false;
|
prog = lib.mkOption {
|
||||||
};
|
type = lib.types.bool;
|
||||||
in {
|
description = "enable prog settings";
|
||||||
graphical = mkOpt "graphical";
|
default = true;
|
||||||
wine = mkOpt "wine";
|
};
|
||||||
prog = mkOpt "prog";
|
|
||||||
activitywatch = mkOptF "activitywatch";
|
|
||||||
};
|
};
|
||||||
lib = lib.mkOption {
|
lib = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue