-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
74 lines (63 loc) · 2.02 KB
/
configuration.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
# Common file for _all_ systems.
{ config, pkgs, inputs, ... }:
{
# Networking
networking.networkmanager.enable = true;
networking.useDHCP = false;
services.tailscale.enable = true;
# Time
time.timeZone = "Europe/Lisbon";
time.hardwareClockInLocalTime = true;
# Virtualisation
virtualisation.docker.enable = true;
virtualisation.libvirtd.enable = true;
# Shells
programs.fish.enable = true;
environment.shells = with pkgs; [ bash fish ];
# Misc.
documentation.dev.enable = true;
# User
users.users.pta2002 = {
isNormalUser = true;
shell = pkgs.fish;
extraGroups = [ "wheel" "docker" "audio" "video" "networkmanager" "wireshark" "adbusers" "libvirtd" ];
openssh.authorizedKeys.keys = import ./ssh-keys.nix;
};
# Security
security.sudo.extraConfig = ''
Defaults pwfeedback
'';
environment.systemPackages = [ pkgs.blender ];
# Nix
nixpkgs.config.allowUnfree = true;
nixpkgs.config.cudaSupport = true;
nixpkgs.config.permittedInsecurePackages = [ "zotero-6.0.27" ];
nix = {
registry = {
nixpkgs.flake = inputs.nixpkgs;
n.flake = inputs.nixpkgs;
};
settings = {
substituters = [
"https://cache.nixos.org/"
"https://cuda-maintainers.cachix.org"
"https://nix-community.cachix.org"
"https://nixpkgs-unfree.cachix.org"
"https://numtide.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixpkgs-unfree.cachix.org-1:hqvoInulhbV4nJ9yJOEr+4wxhDV4xq2d1DK7S6Nj6rs="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
];
trusted-users = [ "root" "pta2002" ];
};
extraOptions = ''
experimental-features = nix-command flakes
'';
};
systemd.extraConfig = "DefaultLimitNOFILE=524288";
system.stateVersion = "21.11";
}