diff --git a/nix/configuration.nix b/nix/configuration.nix index 6db0524..6e802f2 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -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; } diff --git a/nix/flake.lock b/nix/flake.lock index 1720cb2..ed92882 100644 --- a/nix/flake.lock +++ b/nix/flake.lock @@ -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": { diff --git a/nix/flake.nix b/nix/flake.nix index d80694c..fc8653b 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -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 }: diff --git a/nixpkgs/config.nix b/nixpkgs/config.nix new file mode 100644 index 0000000..69baf10 --- /dev/null +++ b/nixpkgs/config.nix @@ -0,0 +1 @@ +{ allowUnfree = true; }