2023-04-04 12:08:13 +02:00
|
|
|
{ inputs, lib, config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-04-11 14:53:19 +02:00
|
|
|
imports = [
|
|
|
|
./apps
|
|
|
|
./shells
|
|
|
|
./utils
|
|
|
|
];
|
|
|
|
|
|
|
|
# Nix Flakes
|
|
|
|
nix.package = pkgs.nixFlakes;
|
|
|
|
nix.extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
'';
|
|
|
|
|
|
|
|
users.users.tdpeuter = {
|
|
|
|
description = "Tibo De Peuter";
|
|
|
|
isNormalUser = true;
|
2023-09-10 22:46:34 +02:00
|
|
|
extraGroups = [
|
|
|
|
config.users.groups.keys.name
|
|
|
|
config.users.groups.networkmanager.name
|
|
|
|
config.users.groups.wheel.name
|
|
|
|
];
|
2023-04-11 14:53:19 +02:00
|
|
|
initialPassword = "ChangeMe";
|
|
|
|
packages = with pkgs; [
|
|
|
|
home-manager
|
2023-04-04 12:08:13 +02:00
|
|
|
];
|
2023-04-11 14:53:19 +02:00
|
|
|
};
|
2023-04-04 12:08:13 +02:00
|
|
|
|
2023-10-01 16:56:12 +02:00
|
|
|
# Select internationalisation properties.
|
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
|
|
|
console = {
|
|
|
|
# font = "Lat2-Terminus16";
|
|
|
|
useXkbConfig = true; # use xkbOptions in tty.
|
|
|
|
};
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
layout = "us";
|
|
|
|
xkbVariant = "altgr-intl";
|
|
|
|
};
|
|
|
|
|
2023-04-11 14:53:19 +02:00
|
|
|
home-manager.useGlobalPkgs = true;
|
2023-04-04 12:08:13 +02:00
|
|
|
|
2023-04-11 14:53:19 +02:00
|
|
|
home-manager.users.tdpeuter = { pkgs, ... }: {
|
|
|
|
home = {
|
|
|
|
username = "tdpeuter";
|
|
|
|
homeDirectory = "/home/tdpeuter";
|
2023-06-17 10:01:00 +02:00
|
|
|
stateVersion = "23.05";
|
2023-04-11 14:53:19 +02:00
|
|
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
gnupg
|
2023-04-04 12:08:13 +02:00
|
|
|
|
2023-04-11 14:53:19 +02:00
|
|
|
# Fonts
|
|
|
|
corefonts # Calibri for Uni
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
gpg.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
pinentryFlavor = "qt";
|
|
|
|
};
|
|
|
|
|
2023-04-04 12:08:13 +02:00
|
|
|
};
|
2023-09-15 09:55:49 +02:00
|
|
|
|
|
|
|
xdg.mimeApps =
|
|
|
|
let
|
|
|
|
browser = "firefox.desktop";
|
|
|
|
image-viewer = "nsxiv.desktop";
|
|
|
|
in {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
defaultApplications = {
|
2023-09-19 19:57:50 +02:00
|
|
|
"application/pdf" = "org.pwmt.zathura-pdf-mupdf.desktop";
|
2023-09-15 09:55:49 +02:00
|
|
|
"application/x-extension-htm" = browser;
|
|
|
|
"application/x-extension-html" = browser;
|
|
|
|
"application/x-extension-shtml" = browser;
|
|
|
|
"application/x-extension-xht" = browser;
|
2023-09-19 19:57:50 +02:00
|
|
|
"application/x-extension-xhtml" = browser;
|
|
|
|
"application/xhtml+xml" = browser;
|
2023-09-15 09:55:49 +02:00
|
|
|
"image/jpeg" = image-viewer;
|
|
|
|
"image/png" = image-viewer;
|
2023-09-19 19:57:50 +02:00
|
|
|
"text/html" = browser;
|
|
|
|
"x-scheme-handler/chrome" = browser;
|
|
|
|
"x-scheme-handler/http" = browser;
|
|
|
|
"x-scheme-handler/https" = browser;
|
2023-09-15 09:55:49 +02:00
|
|
|
};
|
|
|
|
};
|
2023-04-11 14:53:19 +02:00
|
|
|
};
|
2023-04-04 12:08:13 +02:00
|
|
|
|
|
|
|
}
|