-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlocal.nix
108 lines (104 loc) · 2.87 KB
/
local.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{pkgs, config, options, ...}:
let
mainUser = config.environment.sysConf.mainUser;
in
{
environment.sysConf = {
git = {
userName = "Rick Sanchez";
email = "[email protected]";
};
mainUser = {
name = "username";
pkgs = with pkgs; [
brave
git
htop
obs-studio
onlyoffice-desktopeditors
tmux
vscodium
];
};
systemWidePkgs = with pkgs; [
ansible
openssl
vim
wget
];
timeZone = "Europe/Amsterdam";
};
programs.chromium = {
enable = true;
extensions = [
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
];
};
programs.firefox = {
enable = true;
policies = {
OfferToSaveLogins = false;
PasswordManagerEnabled = false;
DisableTelemetry = true;
DisableFirefoxStudies = true;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
DisablePocket = true;
DisableFirefoxAccounts = true;
DisableAccounts = true;
DisableFirefoxScreenshots = true;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "newtab";
DisplayMenuBar = "default-off";
SearchBar = "unified";
ExtensionSettings = {
# Blocks installing new extensions
"*".installation_mode = "blocked";
# uBlock Origin
# https://addons.mozilla.org/api/v5/addons/addon/ublock-origin/
"[email protected]" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed";
};
# Startpage
# https://addons.mozilla.org/en-US/firefox/addon/startpage-private-search/
"{20fc2e06-e3e4-4b2b-812b-ab431220cada}" = {
install_url = "https://addons.mozilla.org/firefox/downloads/file/4362482/startpage_private_search-2.0.2.xpi";
installation_mode = "force_installed";
};
};
};
};
# fix issues with running ruff being dynamically linked
programs.nix-ld.enable = true;
programs.nix-ld.libraries = options.programs.nix-ld.libraries.default;
# Enable zsh in case you want to use it
programs.zsh.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users."${mainUser.name}" = {
isNormalUser = true;
shell = pkgs.zsh;
extraGroups = [
"docker" # Run docker without ‘sudo’
"wheel" # Enable ‘sudo’ for the user.
];
packages = config.environment.sysConf.mainUser.pkgs;
};
virtualisation = {
libvirtd = {
enable = true;
};
podman = {
enable = true;
dockerCompat = false;
defaultNetwork.settings.dns_enabled = true;
};
docker.enable = true;
};
}