use thunar

This commit is contained in:
Cy Pokhrel 2024-11-22 20:46:58 -05:00
parent 53f77c222e
commit 2b7f0e6108
No known key found for this signature in database
GPG key ID: 1200FBE36C2ADE2E
4 changed files with 31 additions and 7 deletions

View file

@ -51,6 +51,11 @@
nwg-look
element-desktop-wayland
kdePackages.gwenview
kdePackages.okular
kdePackages.qtwayland
mpv
yt-dlp
anki-bin
];
};
@ -76,7 +81,6 @@
alsa-utils
nixd
veracrypt
kdePackages.dolphin
bluetuith
libimobiledevice
networkmanagerapplet
@ -164,4 +168,24 @@
lidSwitch = "hibernate";
suspendKey = "hibernate";
};
xdg.mime.defaultApplications = {
"application/pdf" = "okular.desktop";
"image/*" = "gwenview.desktop";
"*/html" = "librewolf.desktop";
};
programs.thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
# preference changes don't work in thunar without this
programs.xfconf.enable = true;
# mount, trash and stuff in thunar
services.gvfs.enable = true;
# thumbnails in thunar
services.tumbler.enable =true;
}

7
nix/flake.lock generated
View file

@ -4,16 +4,15 @@
"locked": {
"lastModified": 1732014248,
"narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=",
"owner": "nixos",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367",
"type": "github"
},
"original": {
"owner": "nixos",
"id": "nixpkgs",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
"type": "indirect"
}
},
"root": {

View file

@ -1,8 +1,8 @@
{
description = "A very basic flake";
description = "cy's flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:

1
nixpkgs/config.nix Normal file
View file

@ -0,0 +1 @@
{ allowUnfree = true; }