mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-23 04:32:19 +00:00
gui: add alacritty
also: fix chromeos-related configurations for xdgconfig and nixgl
This commit is contained in:
parent
91b340764d
commit
863252abd6
5 changed files with 22 additions and 15 deletions
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
8
home/modules/gui/alacritty.nix
Normal file
8
home/modules/gui/alacritty.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ config, pkgs, ... }: {
|
||||||
|
programs.alacritty = {
|
||||||
|
enable = true;
|
||||||
|
package = (config.lib.nixGL.wrap pkgs.alacritty);
|
||||||
|
settings = { window = { startup_mode = "Maximized"; }; };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -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 ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,5 +21,4 @@
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nixgl = inputs.nixgl.overlay;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue