mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +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
|
||||
config = (pkgs.formats.toml { }).generate "alacritty.toml"
|
||||
aconfig = (pkgs.formats.toml { }).generate "alacritty.toml"
|
||||
{
|
||||
env.TERM = "xterm-256color";
|
||||
font.size = 12;
|
||||
|
@ -32,9 +32,11 @@ let
|
|||
|
||||
in
|
||||
{
|
||||
environment.etc."xdg/alacritty.toml".source = config;
|
||||
config = lib.mkIf (config.sconfig.desktop.enable) {
|
||||
environment.etc."xdg/alacritty.toml".source = aconfig;
|
||||
environment.systemPackages = [
|
||||
(lib.hiPrio notify-fix)
|
||||
pkgs.alacritty
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config = lib.mkIf (config.sconfig.desktop.enable) {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(vscode-with-extensions.override {
|
||||
vscodeExtensions = with pkgs.vscode-extensions; [
|
||||
|
@ -32,4 +33,5 @@
|
|||
"update.mode" = "none";
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue