-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhome.nix
More file actions
71 lines (66 loc) · 1.47 KB
/
Copy pathhome.nix
File metadata and controls
71 lines (66 loc) · 1.47 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{ config, pkgs, ... }:
let
dotfiles = "${config.home.homeDirectory}/nixos-dotfiles/config";
create_symlink = path: config.lib.file.mkOutOfStoreSymlink path;
configs = {
hypr = "hypr";
nvim = "nvim";
wofi = "wofi";
rofi = "rofi";
foot = "foot";
waybar = "waybar";
};
in
{
imports = [
./modules/theme.nix
];
home.username = "tony";
home.homeDirectory = "/home/tony";
home.stateVersion = "25.05";
programs.bash = {
enable = true;
shellAliases = {
btw = "echo i use hyprland btw";
nrs = "sudo nixos-rebuild switch --flake ~/nixos-dotfiles#hyprland-btw";
vim = "nvim";
};
initExtra = ''
export PS1='\[\e[38;5;76m\]\u\[\e[0m\] in \[\e[38;5;32m\]\w\[\e[0m\] \\$ '
nitch
'';
profileExtra = ''
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
exec uwsm start -S hyprland-uwsm.desktop
fi
'';
};
home.packages = with pkgs; [
neovim
ripgrep
nil
nixpkgs-fmt
nodejs
gcc
wofi
nitch
rofi
pcmanfm
(pkgs.writeShellApplication {
name = "ns";
runtimeInputs = with pkgs; [
fzf
(nix-search-tv.overrideAttrs {
env.GOEXPERIMENT = "jsonv2";
})
];
text = ''exec "${pkgs.nix-search-tv.src}/nixpkgs.sh" "$@"'';
})
];
xdg.configFile = builtins.mapAttrs
(name: subpath: {
source = create_symlink "${dotfiles}/${subpath}";
recursive = true;
})
configs;
}