Add fish to home-manager

This commit is contained in:
Artemis Tosini 2023-04-30 06:59:00 +00:00
parent b496da2a55
commit 4c6294026d
Signed by: artemist
GPG key ID: EE5227935FE3FF18
6 changed files with 28 additions and 12 deletions

View file

@ -24,11 +24,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1680876084, "lastModified": 1682836095,
"narHash": "sha256-eP9yxP0wc7XuVaODugh+ajgbFGaile2O1ihxiLxOuvU=", "narHash": "sha256-PdzpJhuXBz71AgWNWMMYLbB8GMMce6QguhQY/6HOOcc=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "3006d2860a6ed5e01b0c3e7ffb730e9b293116e2", "rev": "e4a21ddcb45ee5f5c85a5d9e9698debf77fb98c3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -39,11 +39,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1682538316, "lastModified": 1682669017,
"narHash": "sha256-YuHgVsR7S9zxJWHo7lo2ugd+uDC4ESWg1hA4bEZQv3Y=", "narHash": "sha256-Vi+p4y3wnl0/4gcwTdmCO398kKlDaUrNROtf3GOD2NY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "15b75800dce80225b44f067c9012b09de37dfad2", "rev": "7449971a3ecf857b4a554cf79b1d9dcc1a4647d8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -55,11 +55,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1682526928, "lastModified": 1682692304,
"narHash": "sha256-2cKh4O6t1rQ8Ok+v16URynmb0rV7oZPEbXkU0owNLQs=", "narHash": "sha256-9/lyXN2BpHw+1xE+D2ySBSLMCHWqiWu5tPHBMRDib8M=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d6b863fd9b7bb962e6f9fdf292419a775e772891", "rev": "937a9d1ee7b1351d8c55fff6611a8edf6e7c1c37",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -7,6 +7,7 @@
}; };
home-manager.users.artemis = { home-manager.users.artemis = {
imports = [ imports = [
./fish.nix
./gtk.nix ./gtk.nix
./git.nix ./git.nix
./mpv.nix ./mpv.nix

12
home/fish.nix Normal file
View file

@ -0,0 +1,12 @@
{ ... }:
{
programs.fish = {
enable = true;
interactiveShellInit = "set -g -x GPG_TTY (tty)";
shellAliases = {
cat = "bat";
cp = "cp --reflink=auto --sparse=always";
nix-fish = "nix-shell --command fish";
};
};
}

View file

@ -1,10 +1,11 @@
{ ... }: { ... }:
let let
common-gtk = { common-gtk = {
gtk-application-prefer-dark-theme = 1; gtk-application-prefer-dark-theme = true;
}; };
in in
{ {
home.sessionVariables.GTK_THEME = "Adwaita:dark";
gtk = { gtk = {
enable = true; enable = true;
gtk3.extraConfig = common-gtk; gtk3.extraConfig = common-gtk;

View file

@ -44,7 +44,10 @@ in
]; ];
}; };
home.sessionVariables.EDITOR = "nvim"; home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
};
home.packages = with pkgs; [ home.packages = with pkgs; [
nixpkgs-fmt nixpkgs-fmt
python3 python3

View file

@ -35,7 +35,6 @@ in
home.sessionVariables = { home.sessionVariables = {
MOZ_USE_XINPUT2 = 1; MOZ_USE_XINPUT2 = 1;
_JAVA_AWT_WM_NONREPARENTING = 1; _JAVA_AWT_WM_NONREPARENTING = 1;
GTK_THEME = "Adwaita-dark";
NIXOS_OZONE_WL = 1; NIXOS_OZONE_WL = 1;
}; };
wayland.windowManager.sway = { wayland.windowManager.sway = {