2024-05-07 19:09:01 +02:00
|
|
|
{ pkgs, config, ... }:
|
2022-12-16 13:43:56 +01:00
|
|
|
let
|
2024-05-07 19:09:01 +02:00
|
|
|
consoleFont = hiDPI: if hiDPI then "Lat2-Terminus16" else "Lat2-Terminus20";
|
2022-12-16 13:43:56 +01:00
|
|
|
in
|
|
|
|
{
|
2022-02-07 00:00:41 +01:00
|
|
|
imports = [
|
|
|
|
../home-manager/default.nix
|
2022-06-05 02:16:30 +02:00
|
|
|
|
2022-02-20 00:40:00 +01:00
|
|
|
../modules/avahi.nix
|
2022-06-05 02:16:30 +02:00
|
|
|
../modules/cups.nix
|
2022-03-07 14:28:42 +01:00
|
|
|
../modules/docker.nix
|
2022-02-07 00:00:41 +01:00
|
|
|
../modules/earlyoom.nix
|
|
|
|
../modules/fonts.nix
|
|
|
|
../modules/opengl.nix
|
|
|
|
../modules/sound.nix
|
|
|
|
../modules/ssh.nix
|
2022-03-21 17:47:04 +01:00
|
|
|
../modules/steam.nix
|
2022-05-16 15:31:21 +02:00
|
|
|
../modules/via.nix
|
2022-05-11 13:46:39 +02:00
|
|
|
../modules/borgbackup.nix
|
2023-01-04 15:18:39 +01:00
|
|
|
../modules/udisks2.nix
|
2023-02-22 23:48:11 +01:00
|
|
|
../modules/samba.nix
|
2023-06-25 01:08:10 +02:00
|
|
|
../modules/gc.nix
|
2023-10-13 18:45:12 +02:00
|
|
|
../modules/sway.nix
|
2023-11-21 23:38:49 +01:00
|
|
|
../modules/nixld.nix
|
2024-05-07 19:09:01 +02:00
|
|
|
../modules/fwupd.nix
|
2024-07-15 18:39:42 +02:00
|
|
|
../modules/lix.nix
|
2022-06-05 02:16:30 +02:00
|
|
|
|
2022-06-04 23:56:13 +00:00
|
|
|
../secrets/remote-builder.nix
|
2022-02-07 00:00:41 +01:00
|
|
|
../users/fleaz.nix
|
2022-09-13 10:38:10 +02:00
|
|
|
../customOptions.nix
|
2022-02-07 00:00:41 +01:00
|
|
|
];
|
2022-02-23 21:41:46 +01:00
|
|
|
|
2022-06-05 02:12:55 +02:00
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
2022-10-25 15:29:08 +02:00
|
|
|
# Locale
|
|
|
|
i18n.defaultLocale = "en_DK.UTF-8";
|
|
|
|
|
2022-05-16 15:31:21 +02:00
|
|
|
# needed for Steam and VIA
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
2022-04-19 21:44:30 +02:00
|
|
|
# GTK settings stuff for e.g. themes
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
2023-11-21 23:38:49 +01:00
|
|
|
# List packages installed in system profile
|
2022-06-05 02:16:30 +02:00
|
|
|
environment.systemPackages = with pkgs; [ vim wget curl git ];
|
2022-06-21 15:34:34 +02:00
|
|
|
|
2022-09-09 16:21:17 +02:00
|
|
|
environment.variables = {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
PATH = "$PATH:/home/fleaz/bin";
|
|
|
|
XDG_SCREENSHOTS_DIR = "/home/fleaz/screenshots/";
|
|
|
|
DEFAULT_BROWSER = "${pkgs.firefox}/bin/firefox";
|
|
|
|
};
|
|
|
|
|
2022-12-16 13:43:56 +01:00
|
|
|
console.font = consoleFont config.my.highDPI;
|
|
|
|
|
2023-06-25 01:06:46 +02:00
|
|
|
# weekly trim
|
|
|
|
services.fstrim.enable = true;
|
|
|
|
|
2024-04-04 20:57:37 +02:00
|
|
|
# Look mum, I'm using all the new shiny stuff!
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
2023-06-25 01:08:10 +02:00
|
|
|
|
2024-07-15 18:39:42 +02:00
|
|
|
# Enable proprietary firmware
|
|
|
|
hardware.enableAllFirmware = true;
|
|
|
|
|
2024-05-07 19:09:01 +02:00
|
|
|
# TMP
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 3000 ];
|
|
|
|
};
|
|
|
|
|
2022-06-21 15:34:34 +02:00
|
|
|
networking.extraHosts = ''
|
|
|
|
'';
|
2022-02-07 00:01:27 +01:00
|
|
|
}
|