2022-11-22 04:51:03 +00:00
|
|
|
{ pkgs, ... }:
|
2022-06-07 00:51:35 +00:00
|
|
|
{
|
|
|
|
imports = [
|
2023-01-11 08:56:06 +00:00
|
|
|
./cross.nix
|
2023-01-08 05:24:56 +00:00
|
|
|
./feeds.nix
|
2022-11-22 04:29:17 +00:00
|
|
|
./fs.nix
|
2023-01-19 23:23:41 +00:00
|
|
|
./hardware.nix
|
2023-01-27 07:01:23 +00:00
|
|
|
./home
|
2022-12-16 22:15:19 +00:00
|
|
|
./i2p.nix
|
2023-01-08 06:46:07 +00:00
|
|
|
./ids.nix
|
2022-11-22 04:29:17 +00:00
|
|
|
./machine-id.nix
|
|
|
|
./net.nix
|
2023-01-31 03:28:59 +00:00
|
|
|
./persist.nix
|
2023-02-02 12:31:13 +00:00
|
|
|
./programs.nix
|
2022-11-22 03:37:57 +00:00
|
|
|
./secrets.nix
|
2022-11-22 04:29:17 +00:00
|
|
|
./ssh.nix
|
|
|
|
./users.nix
|
2022-11-22 03:46:25 +00:00
|
|
|
./vpn.nix
|
2022-06-07 00:51:35 +00:00
|
|
|
];
|
2022-11-22 03:07:11 +00:00
|
|
|
|
|
|
|
sane.nixcache.enable-trusted-keys = true;
|
2023-02-03 03:58:23 +00:00
|
|
|
sane.programs.sysadminUtils.enableFor.system = true;
|
2023-02-03 04:23:26 +00:00
|
|
|
sane.programs.consoleUtils.enableFor.user.colin = true;
|
2022-11-22 03:09:41 +00:00
|
|
|
|
2023-01-16 11:43:43 +00:00
|
|
|
# some services which use private directories error if the parent (/var/lib/private) isn't 700.
|
|
|
|
sane.fs."/var/lib/private".dir.acl.mode = "0700";
|
|
|
|
|
2022-11-22 03:09:41 +00:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2022-11-22 04:51:03 +00:00
|
|
|
|
|
|
|
# time.timeZone = "America/Los_Angeles";
|
|
|
|
time.timeZone = "Etc/UTC"; # DST is too confusing for me => use a stable timezone
|
|
|
|
|
|
|
|
# allow `nix flake ...` command
|
|
|
|
nix.extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2023-01-13 07:47:10 +00:00
|
|
|
# allow `nix-shell` (and probably nix-index?) to locate our patched and custom packages
|
|
|
|
nix.nixPath = [
|
|
|
|
"nixpkgs=${pkgs.path}"
|
|
|
|
"nixpkgs-overlays=${../..}/overlays"
|
|
|
|
];
|
2022-11-22 04:51:03 +00:00
|
|
|
|
|
|
|
fonts = {
|
|
|
|
enableDefaultFonts = true;
|
|
|
|
fonts = with pkgs; [ font-awesome twitter-color-emoji hack-font ];
|
|
|
|
fontconfig.enable = true;
|
|
|
|
fontconfig.defaultFonts = {
|
|
|
|
emoji = [ "Font Awesome 6 Free" "Twitter Color Emoji" ];
|
|
|
|
monospace = [ "Hack" ];
|
|
|
|
serif = [ "DejaVu Serif" ];
|
|
|
|
sansSerif = [ "DejaVu Sans" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# disable non-required packages like nano, perl, rsync, strace
|
|
|
|
environment.defaultPackages = [];
|
|
|
|
|
|
|
|
# programs.vim.defaultEditor = true;
|
|
|
|
environment.variables = {
|
|
|
|
EDITOR = "vim";
|
|
|
|
# git claims it should use EDITOR, but it doesn't!
|
|
|
|
GIT_EDITOR = "vim";
|
|
|
|
# TODO: these should be moved to `home.sessionVariables` (home-manager)
|
|
|
|
# Electron apps should use native wayland backend:
|
|
|
|
# https://nixos.wiki/wiki/Slack#Wayland
|
|
|
|
# Discord under sway crashes with this.
|
|
|
|
# NIXOS_OZONE_WL = "1";
|
|
|
|
# LIBGL_ALWAYS_SOFTWARE = "1";
|
|
|
|
};
|
|
|
|
|
2023-01-30 03:00:55 +00:00
|
|
|
# dconf docs: <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/desktop_migration_and_administration_guide/profiles>
|
2023-01-30 03:02:22 +00:00
|
|
|
# find keys/values with `dconf dump /`
|
2023-01-30 03:00:55 +00:00
|
|
|
programs.dconf.enable = true;
|
|
|
|
programs.dconf.packages = [
|
|
|
|
(pkgs.writeTextFile {
|
|
|
|
name = "dconf-user-profile";
|
|
|
|
destination = "/etc/dconf/profile/user";
|
|
|
|
text = ''
|
|
|
|
user-db:user
|
|
|
|
system-db:site
|
|
|
|
'';
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-11-22 04:51:03 +00:00
|
|
|
# link debug symbols into /run/current-system/sw/lib/debug
|
|
|
|
# hopefully picked up by gdb automatically?
|
|
|
|
environment.enableDebugInfo = true;
|
2022-06-07 00:51:35 +00:00
|
|
|
}
|