mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
make sure desktops apps only install on desktops
This commit is contained in:
parent
c2fa267fac
commit
63aefa9edf
2 changed files with 42 additions and 38 deletions
|
@ -1,7 +1,7 @@
|
||||||
{ lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
config = (pkgs.formats.toml { }).generate "alacritty.toml"
|
aconfig = (pkgs.formats.toml { }).generate "alacritty.toml"
|
||||||
{
|
{
|
||||||
env.TERM = "xterm-256color";
|
env.TERM = "xterm-256color";
|
||||||
font.size = 12;
|
font.size = 12;
|
||||||
|
@ -32,9 +32,11 @@ let
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.etc."xdg/alacritty.toml".source = config;
|
config = lib.mkIf (config.sconfig.desktop.enable) {
|
||||||
environment.systemPackages = [
|
environment.etc."xdg/alacritty.toml".source = aconfig;
|
||||||
(lib.hiPrio notify-fix)
|
environment.systemPackages = [
|
||||||
pkgs.alacritty
|
(lib.hiPrio notify-fix)
|
||||||
];
|
pkgs.alacritty
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,35 +1,37 @@
|
||||||
{ pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
config = lib.mkIf (config.sconfig.desktop.enable) {
|
||||||
(vscode-with-extensions.override {
|
environment.systemPackages = with pkgs; [
|
||||||
vscodeExtensions = with pkgs.vscode-extensions; [
|
(vscode-with-extensions.override {
|
||||||
esbenp.prettier-vscode
|
vscodeExtensions = with pkgs.vscode-extensions; [
|
||||||
jnoortheen.nix-ide
|
esbenp.prettier-vscode
|
||||||
ms-azuretools.vscode-docker
|
jnoortheen.nix-ide
|
||||||
ms-python.python
|
ms-azuretools.vscode-docker
|
||||||
redhat.vscode-yaml
|
ms-python.python
|
||||||
shardulm94.trailing-spaces
|
redhat.vscode-yaml
|
||||||
];
|
shardulm94.trailing-spaces
|
||||||
})
|
];
|
||||||
];
|
})
|
||||||
|
];
|
||||||
|
|
||||||
environment.etc."bck-settings.sh".text = ''
|
environment.etc."bck-settings.sh".text = ''
|
||||||
mkdir -p ~/.config/Code/User
|
mkdir -p ~/.config/Code/User
|
||||||
ln -sf /etc/vscode-settings.json ~/.config/Code/User/settings.json
|
ln -sf /etc/vscode-settings.json ~/.config/Code/User/settings.json
|
||||||
ln -sf /etc/vscode-keybindings.json ~/.config/Code/User/keybindings.json
|
ln -sf /etc/vscode-keybindings.json ~/.config/Code/User/keybindings.json
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.etc."vscode-keybindings.json".source = ./vscode-keybindings.json;
|
environment.etc."vscode-keybindings.json".source = ./vscode-keybindings.json;
|
||||||
environment.etc."vscode-settings.json".text = builtins.toJSON (
|
environment.etc."vscode-settings.json".text = builtins.toJSON (
|
||||||
(
|
(
|
||||||
builtins.fromJSON (builtins.readFile ./vscode-settings.json)
|
builtins.fromJSON (builtins.readFile ./vscode-settings.json)
|
||||||
) // {
|
) // {
|
||||||
# NixOS-specific vscode settings:
|
# NixOS-specific vscode settings:
|
||||||
"extensions.autoCheckUpdates" = false;
|
"extensions.autoCheckUpdates" = false;
|
||||||
"extensions.autoUpdate" = false;
|
"extensions.autoUpdate" = false;
|
||||||
"terminal.external.linuxExec" = "x-terminal-emulator";
|
"terminal.external.linuxExec" = "x-terminal-emulator";
|
||||||
"terminal.integrated.fontFamily" = "DejaVuSansM Nerd Font";
|
"terminal.integrated.fontFamily" = "DejaVuSansM Nerd Font";
|
||||||
"update.mode" = "none";
|
"update.mode" = "none";
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue