-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosmc.nix
65 lines (60 loc) · 1.25 KB
/
osmc.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
{ pkgs
, inputs
# home-manager meta
, lib
, config
, ...
}:
let
args = import ./args { inherit config pkgs lib inputs; };
inherit (args) pubkey zsh git ssh helix lsd;
in rec {
targets.genericLinux.enable = true;
nixpkgs.config = {
allowUnfree = true;
allowBroken = true;
};
programs.home-manager.enable = true;
home.stateVersion = "24.05";
home.homeDirectory = "/home/osmc";
home.username = "osmc";
home.sessionVariables = {
EDITOR = "hx";
SUDO_EDITOR = "hx";
};
# Link extra configuration files
home.file = {
sshAllowedSigners = {
target = ".ssh/allowed_signers";
text = programs.git.userEmail + " " + pubkey;
};
};
# Enable fc-cache to find nix fonts
fonts.fontconfig.enable = true;
home.packages = with pkgs;
[
# utils
btop
unzip
ncdu
glow
xclip
bat
# fonts
fontconfig
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
fira-code
font-awesome_4
];
programs = {
inherit zsh ssh lsd;
helix = helix.program;
git = git {
allowedSignersFile = home.file.sshAllowedSigners.target;
};
keychain.enable = true;
jq.enable = true;
fzf.enable = true;
ripgrep.enable = true;
};
}