-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
68 lines (61 loc) · 1.51 KB
/
default.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
{
inputs,
lib,
config,
pkgs,
hostname,
...
}: {
imports = [
(import ./${hostname})
];
nixpkgs = {
config = {
allowUnfree = true;
allowUnfreePredicate = _: true;
};
};
nix = {
settings = {
trusted-users = ["rsmyth"];
experimental-features = "nix-command flakes";
flake-registry = "";
nix-path = config.nix.nixPath;
accept-flake-config = true;
auto-optimise-store = true;
trusted-substituters = [
"https://helix.cachix.org"
];
trusted-public-keys = [
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
];
};
channel.enable = false;
gc = {
automatic = true;
options = "--delete-older-than 7d";
};
};
networking.hostName = hostname;
time.timeZone = "America/Detroit";
systemd.coredump.enable = true;
programs.fish.enable = true;
users.defaultUserShell = pkgs.fish;
environment.pathsToLink = ["/share/fish"];
environment.shells = [pkgs.fish];
environment.enableAllTerminfo = true;
programs.ssh.ciphers = ["[email protected]" "[email protected]"];
programs.ssh.kexAlgorithms = ["[email protected]" "curve25519-sha256"];
users.users = {
rsmyth = {
useDefaultShell = true;
hashedPassword = "$y$j9T$pANX.P1IbyQB2xriv3ncp/$AnA0t/0WrMitJYBivHKlcdp0d8lqbCuR0yN1zvOnDFA";
isNormalUser = true;
extraGroups = ["wheel"];
};
};
fileSystems."/tmp" = {
device = "none";
fsType = "tmpfs";
};
}