gui: add alacritty

also: fix chromeos-related configurations for xdgconfig and nixgl
This commit is contained in:
John Bowdre 2024-12-20 14:53:12 -06:00
parent 91b340764d
commit 863252abd6
Signed by: john
SSH key fingerprint: SHA256:cZYnOxaLdo+MhBNMX38ihO/p2Kek6fBykSFoJwHBhUo
5 changed files with 22 additions and 15 deletions

View file

@ -40,7 +40,7 @@
}; };
}; };
outputs = { self, nixpkgs, home-manager, nixgl, nixvim, ... }@inputs: outputs = { self, nixpkgs, home-manager, ... }@inputs:
let let
inherit (self) outputs; inherit (self) outputs;
lib = nixpkgs.lib // home-manager.lib; lib = nixpkgs.lib // home-manager.lib;

View file

@ -1,15 +1,15 @@
{ pkgs, ... }: { inputs, ... }: {
let path = "config/systemd/user/cros-garcon.service.d/override.conf";
in {
xdg.enable = true; xdg.enable = true;
xdg.mime.enable = true; xdg.mime.enable = true;
xdg.configFile.${path} = { xdg.configFile."systemd/user/cros-garcon.service.d/override.conf".text = ''
text = '' [Service]
[Service] Environment="PATH=%h/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/local/games:/usr/sbin:/usr/bin:/usr/games:/sbin:/bin"
Environment="PATH=%h/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/local/games:/usr/sbin:/usr/bin:/usr/games:/sbin:/bin" Environment="XDG_DATA_DIRS=/nix/var/nix/profiles/default/share:%h/.nix-profile/share:%h/.local/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop:%h/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share"
Environment="XDG_DATA_DIRS=/nix/var/nix/profiles/default/share:%h/.nix-profile/share:%h/.local/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop:%h/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share" '';
'';
}; # activate NixGL wrapper for Crostini
home.packages = with pkgs; [ nixgl.nixGLMesa ]; nixGL.packages = inputs.nixgl.packages;
nixGL.defaultWrapper = "mesa";
} }

View file

@ -0,0 +1,8 @@
{ config, pkgs, ... }: {
programs.alacritty = {
enable = true;
package = (config.lib.nixGL.wrap pkgs.alacritty);
settings = { window = { startup_mode = "Maximized"; }; };
};
}

View file

@ -1,6 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
# Common GUI apps # Common GUI apps
imports = [ ./firefox.nix ./vscode.nix ]; imports = [ ./alacritty.nix ./firefox.nix ./vscode.nix ];
home.packages = with pkgs; [ gimp-with-plugins lagrange qFlipper remmina ]; home.packages = with pkgs; [ gimp-with-plugins qFlipper remmina ];
} }

View file

@ -21,5 +21,4 @@
config.allowUnfree = true; config.allowUnfree = true;
}; };
}; };
nixgl = inputs.nixgl.overlay;
} }