-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.nix
63 lines (55 loc) · 1.85 KB
/
home.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{ config, pkgs, specialArgs, lib, ... }:
{
targets.genericLinux.enable = true;
# Home Manager needs a bit of information about you and the paths it should manage.
home.username = "mnaveau";
home.homeDirectory = "/home/mnaveau";
# This value determines the Home Manager release that your configuration is compatible with.
home.stateVersion = "24.05"; # Please read the comment before changing.
# Importing other configurations.
imports = [ ./programs.nix ./files.nix ];
# Home Manager can also manage your environment variables through 'home.sessionVariables'.
home.sessionVariables = {
EDITOR = "emacs";
BROWSER = "firefox";
TERMINAL = "kitty";
};
# Shell aliases:
home.shellAliases = {
gitl = "git plog";
gits = "git status";
};
programs.fish = {
enable = true;
# interactiveShellInit = ''
# set fish_greeting # Disable greeting
# '';
# plugins = [
# # Enable a plugin (here grc for colorized command output) from nixpkgs
# { name = "grc"; src = pkgs.fishPlugins.grc.src; }
# { name = "done"; src = pkgs.fishPlugins.done.src; }
# { name = "fzf-fish"; src = pkgs.fishPlugins.fzf-fish.src; }
# { name = "forgit"; src = pkgs.fishPlugins.forgit.src; }
# { name = "hydro"; src = pkgs.fishPlugins.hydro.src; }
# # Manually packaging and enable a plugin
# {
# name = "z";
# src = pkgs.fetchFromGitHub {
# owner = "jethrokuan";
# repo = "z";
# rev = "e0e1b9dfdba362f8ab1ae8c1afc7ccf62b89f7eb";
# sha256 = "0dbnir6jbwjpjalz14snzd3cgdysgcs3raznsijd6savad3qhijc";
# };
# }
# ];
};
# Activate the fish terminal emulator.
programs.kitty = {
enable = true;
settings = {
shell = "fish";
};
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}