mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-25 22:35:03 +01:00
pin firefox and inellij to gnome dash
This commit is contained in:
parent
274d24fe58
commit
8aa4fb89b4
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
users.users.yoda = {
|
users.users.yoda = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
@ -7,11 +7,20 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Touch input with Firefox under X11.
|
# Touch input with Firefox under X11.
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = lib.mkIf (! config.services.xserver.displayManager.gdm.wayland) {
|
||||||
MOZ_USE_XINPUT2 = "1";
|
MOZ_USE_XINPUT2 = "1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Required for dconf.settings
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
||||||
|
dconf.settings = {
|
||||||
|
"org/gnome/shell" = {
|
||||||
|
favorite-apps = ["firefox.desktop"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
version = (
|
||||||
|
if (config.nixpkgs.config.allowUnfree)
|
||||||
|
then "idea-ultimate"
|
||||||
|
else "idea-community"
|
||||||
|
);
|
||||||
|
in
|
||||||
{
|
{
|
||||||
# Integrated Development Environment (IDE).
|
# Integrated Development Environment (IDE).
|
||||||
|
|
||||||
@ -15,11 +22,16 @@
|
|||||||
|
|
||||||
users.users.yoda = {
|
users.users.yoda = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
(
|
jetbrains."${version}"
|
||||||
if (config.nixpkgs.config.allowUnfree)
|
|
||||||
then jetbrains.idea-ultimate
|
|
||||||
else jetbrains.idea-community
|
|
||||||
)
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
home-manager.users.yoda = { osConfig, config, pkgs, lib, ... }: {
|
||||||
|
dconf.settings = {
|
||||||
|
"org/gnome/shell" = {
|
||||||
|
favorite-apps = ["${version}.desktop"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user