-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.nix
79 lines (66 loc) · 1.93 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{ config,lib, pkgs, ... }:
{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "fjs";
home.homeDirectory = "/home/fjs";
home.stateVersion = "23.11"; # Please read the comment before changing.
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = [
# pkgs.vim
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
# '';
# i3 config
".config/i3/config".source = ./i3/i3.config;
".config/i3status/config".source = ./i3/i3status.config;
# rofi config
".config/rofi/config.rasi".source = ./rofi/config.rasi;
"/home/fjs/.local/share/rofi/themes/catppuccin-mocha.rasi".source = ./rofi/catppuccin-mocha.rasi;
};
# Program configs
programs.alacritty = {
enable = true;
settings = lib.attrsets.recursiveUpdate (import ~/nixos-config/alacritty/default-settings.nix) {};
};
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
ls = "lsd";
ll = "lsd -l";
pydev = "nix-shell -p python3 pipenv";
};
oh-my-zsh = {
enable = true;
theme = "robbyrussell";
plugins = [ "git" ];
};
};
programs.git = {
enable = true;
userName = "Andreas Løfsgaard";
userEmail = "[email protected]";
extraConfig = {
init.defaultBranch = "main";
};
};
# Configure virt-manager settings
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
# Home Manager can also manage your environment variables
home.sessionVariables = {
EDITOR = "nvim";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}