nixos/users/marie/home.nix

84 lines
1.8 KiB
Nix

{
pkgs,
lib,
...
}: let
inherit (lib.hm.gvariant) mkTuple;
bg = pkgs.fetchurl {
url = "https://images.pexels.com/photos/2559941/pexels-photo-2559941.jpeg";
hash = (builtins.import ../../hashes.nix).pexel-bg.hash;
};
operaFixed = lib.warn "Has opera been fixed yet? (https://github.com/NixOS/nixpkgs/pull/120891)" (pkgs.opera.overrideAttrs (old: {
buildInputs =
old.buildInputs
++ [
pkgs.libdrm
pkgs.mesa
];
}));
in {
imports = [
../modules/restic-backup.nix
../modules/profiles-cleanup.nix
];
config = {
home.packages = with pkgs; [
bitwarden
element-desktop
fd
firefox-wayland
git
gnome.gnome-sound-recorder
libreoffice
okular
operaFixed
shotwell
signal-desktop
skypeforlinux
sshfs
tdesktop
texlive.combined.scheme-full
texmaker
ungoogled-chromium
unzip
];
# TODO: Improve
programs.broot.enable = true;
programs.fish.enable = true;
xdg.enable = true;
services.restic = {
enable = true;
paths = ["/home/marie/Uni" "/home/marie/Bilder" "/home/marie/Promotion"];
};
programs.mpv = {
enable = true;
package = pkgs.mpv;
};
dconf.settings = {
"org/gnome/desktop/peripherals/touchpad" = {
tap-to-click = true;
two-finger-scrolling-enabled = true;
};
"org/gnome/desktop/input-sources" = {
per-window = false;
sources = [(mkTuple ["xkb" "de"]) (mkTuple ["xkb" "us+workman"])];
xkb-options = ["compose:rctrl"];
};
"org/gnome/desktop/interface" = {
enable-hot-corners = false;
show-battery-percentage = true;
};
"org/gnome/desktop/background" = {picture-uri = "file://${bg}";};
};
home.stateVersion = "18.09";
};
}