-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathhome.nix
More file actions
51 lines (45 loc) · 1.02 KB
/
home.nix
File metadata and controls
51 lines (45 loc) · 1.02 KB
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
{ config, pkgs, ... }:
let
dotfiles = "${config.home.homeDirectory}/nixos-dotfiles/config";
create_symlink = path: config.lib.file.mkOutOfStoreSymlink path;
# Standard .config/directory
configs = {
qtile = "qtile";
nvim = "nvim";
rofi = "rofi";
alacritty = "alacritty";
picom = "picom";
};
in
{
home.username = "tony";
home.homeDirectory = "/home/tony";
programs.git.enable = true;
home.stateVersion = "25.05";
programs.bash = {
enable = true;
shellAliases = {
btw = "echo i use nixos-btw";
nrs = "sudo nixos-rebuild switch --flake ~/nixos-dotfiles#nixos-btw";
};
initExtra = ''
export PS1="\[\e[38;5;75m\]\u@\h \[\e[38;5;113m\]\w \[\e[38;5;189m\]\$ \[\e[0m\]"
'';
};
xdg.configFile = builtins.mapAttrs
(name: subpath: {
source = create_symlink "${dotfiles}/${subpath}";
recursive = true;
})
configs;
home.packages = with pkgs; [
neovim
ripgrep
nil
nixpkgs-fmt
nodejs
gcc
rofi
xwallpaper
];
}