feat(users/transcaffeine): configure darkman using home-manager from dotfiles
This commit is contained in:
26
users/transcaffeine/home-manager/darkman.nix
Normal file
26
users/transcaffeine/home-manager/darkman.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
genAttrs' = xs: f: lib.listToAttrs(lib.map f xs);
|
||||
in {
|
||||
services.darkman = {
|
||||
enable = true;
|
||||
settings = {
|
||||
lat = 49.0800;
|
||||
lng = 8.23300;
|
||||
portal = true;
|
||||
dbusserver = true;
|
||||
};
|
||||
};
|
||||
|
||||
home.file = genAttrs' [ "local/share/light-mode.d" "local/share/dark-mode.d" ] (
|
||||
path:
|
||||
lib.nameValuePair (".${path}") {
|
||||
source = lib.concatStringsSep "/" [ inputs.dotfiles path ];
|
||||
target = ".${path}";
|
||||
}
|
||||
);
|
||||
}
|
@@ -1,18 +1,10 @@
|
||||
{ lib, pkgs, ... }: {
|
||||
imports = [
|
||||
./darkman.nix
|
||||
./git.nix
|
||||
./gnupg.nix
|
||||
];
|
||||
home.stateVersion = "24.11";
|
||||
services.darkman = {
|
||||
enable = true;
|
||||
settings = {
|
||||
lat = 49.0800;
|
||||
lng = 8.23300;
|
||||
portal = true;
|
||||
dbusserver = true;
|
||||
};
|
||||
};
|
||||
|
||||
home.preferXdgDirectories = true;
|
||||
programs.firefox = import ./firefox.nix { inherit lib; };
|
||||
|
Reference in New Issue
Block a user