2023-11-19 23:12:21 +01:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
outputs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-11-20 11:51:01 +01:00
|
|
|
imports = [
|
|
|
|
# If you want to use modules your own flake exports (from modules/home-manager):
|
|
|
|
# outputs.homeManagerModules.example
|
2023-11-20 11:53:42 +01:00
|
|
|
inputs.home-manager.nixosModules.home-manager
|
2023-11-20 11:51:01 +01:00
|
|
|
# Or modules exported from other flakes (such as nix-colors):
|
|
|
|
# inputs.nix-colors.homeManagerModules.default
|
|
|
|
|
|
|
|
# You can also split up your configuration and import pieces of it here:
|
|
|
|
# ./nvim.nix
|
2023-11-20 11:52:32 +01:00
|
|
|
./hardware-configuration.nix
|
2023-11-27 15:06:57 +01:00
|
|
|
./postgres.nix
|
2023-11-20 11:51:01 +01:00
|
|
|
./nextcloud.nix
|
2023-11-25 00:50:11 +01:00
|
|
|
./mail-server.nix
|
2023-12-17 17:20:19 +01:00
|
|
|
./webmail.nix
|
2023-11-27 14:08:32 +01:00
|
|
|
./gotosocial.nix
|
2023-12-21 20:38:49 +01:00
|
|
|
../upgrade/postgresql.nix
|
2023-12-26 16:35:33 +01:00
|
|
|
./akkoma.nix
|
2023-11-20 11:51:01 +01:00
|
|
|
];
|
2023-11-20 12:01:14 +01:00
|
|
|
|
2023-11-21 18:35:54 +01:00
|
|
|
boot.tmp.cleanOnBoot = true;
|
2023-11-21 14:55:19 +01:00
|
|
|
zramSwap.enable = false;
|
|
|
|
networking.domain = "";
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
2023-11-20 12:01:14 +01:00
|
|
|
nixpkgs = {
|
|
|
|
# You can add overlays here
|
|
|
|
overlays = [
|
|
|
|
# Add overlays your own flake exports (from overlays and pkgs dir):
|
|
|
|
outputs.overlays.additions
|
|
|
|
outputs.overlays.modifications
|
|
|
|
outputs.overlays.unstable-packages
|
|
|
|
|
|
|
|
# You can also add overlays exported from other flakes:
|
|
|
|
# neovim-nightly-overlay.overlays.default
|
|
|
|
|
|
|
|
# Or define it inline, for example:
|
|
|
|
# (final: prev: {
|
|
|
|
# hi = final.hello.overrideAttrs (oldAttrs: {
|
|
|
|
# patches = [ ./change-hello-to-hi.patch ];
|
|
|
|
# });
|
|
|
|
# })
|
|
|
|
];
|
|
|
|
# Configure your nixpkgs instance
|
|
|
|
config = {
|
|
|
|
# Disable if you don't want unfree packages
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-11-20 16:44:23 +01:00
|
|
|
#Set up sops config, and configure where the keyfile is, then set the mode for the unencrypted keys
|
2023-11-20 16:21:36 +01:00
|
|
|
sops.defaultSopsFile = ../../secrets/queen-Lillian.yaml;
|
2023-11-21 18:41:53 +01:00
|
|
|
sops.age.keyFile = ./keys.txt;
|
2023-11-20 16:17:34 +01:00
|
|
|
|
2023-11-19 23:12:21 +01:00
|
|
|
nix = {
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
# This will add each flake input as a registry
|
|
|
|
# To make nix3 commands consistent with your flake
|
|
|
|
registry = lib.mapAttrs (_: value: {flake = value;}) inputs;
|
|
|
|
|
|
|
|
# This will additionally add your inputs to the system's legacy channels
|
|
|
|
# Making legacy nix commands consistent as well, awesome!
|
|
|
|
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
# Enable flakes and new 'nix' command
|
|
|
|
experimental-features = "nix-command flakes";
|
|
|
|
# Deduplicate and optimize nix store
|
|
|
|
auto-optimise-store = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-11-24 21:44:59 +01:00
|
|
|
akkoma
|
2023-11-19 23:12:21 +01:00
|
|
|
age
|
2023-11-23 14:24:44 +01:00
|
|
|
fzf
|
2023-11-24 13:07:39 +01:00
|
|
|
docker
|
|
|
|
docker-compose
|
2023-11-22 17:46:20 +01:00
|
|
|
git
|
2023-12-26 16:35:33 +01:00
|
|
|
gitea
|
2023-11-27 14:42:44 +01:00
|
|
|
gotosocial
|
2023-11-19 23:12:21 +01:00
|
|
|
alejandra
|
2023-11-24 21:44:59 +01:00
|
|
|
exiftool
|
|
|
|
imagemagick
|
2023-11-23 17:00:05 +01:00
|
|
|
ffmpeg
|
|
|
|
aria2
|
2023-11-19 23:12:21 +01:00
|
|
|
git-filter-repo
|
|
|
|
home-manager
|
2023-12-20 10:04:24 +01:00
|
|
|
nextcloud28
|
2023-11-20 11:51:01 +01:00
|
|
|
nginx
|
2023-11-19 23:12:21 +01:00
|
|
|
noto-fonts
|
|
|
|
noto-fonts-emoji-blob-bin
|
|
|
|
noto-fonts-emoji
|
|
|
|
oh-my-zsh
|
2023-11-23 19:26:52 +01:00
|
|
|
onlyoffice-documentserver
|
2023-12-21 20:57:21 +01:00
|
|
|
postgresql_16
|
2023-11-23 17:01:37 +01:00
|
|
|
python3
|
2023-11-19 23:12:21 +01:00
|
|
|
rsync
|
2023-11-24 21:44:59 +01:00
|
|
|
rabbitmq-server
|
2023-12-17 22:27:04 +01:00
|
|
|
roundcube
|
2023-12-21 23:38:01 +01:00
|
|
|
roundcubePlugins.contextmenu
|
|
|
|
roundcubePlugins.carddav
|
|
|
|
roundcubePlugins.custom_from
|
|
|
|
roundcubePlugins.persistent_login
|
|
|
|
roundcubePlugins.thunderbird_labels
|
2023-11-23 17:06:20 +01:00
|
|
|
youtube-dl
|
2023-11-19 23:12:21 +01:00
|
|
|
wget
|
|
|
|
zsh
|
|
|
|
];
|
|
|
|
|
|
|
|
# Enable networking
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
2023-12-05 14:30:54 +01:00
|
|
|
networking.firewall.enable = true;
|
|
|
|
|
2023-12-18 21:39:33 +01:00
|
|
|
networking.firewall.allowedTCPPorts = [22 80 443];
|
2023-11-19 23:20:16 +01:00
|
|
|
|
2023-11-19 23:12:21 +01:00
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "nl_NL.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "nl_NL.UTF-8";
|
|
|
|
LC_MEASUREMENT = "nl_NL.UTF-8";
|
|
|
|
LC_MONETARY = "nl_NL.UTF-8";
|
|
|
|
LC_NAME = "nl_NL.UTF-8";
|
|
|
|
LC_NUMERIC = "nl_NL.UTF-8";
|
|
|
|
LC_PAPER = "nl_NL.UTF-8";
|
|
|
|
LC_TELEPHONE = "nl_NL.UTF-8";
|
|
|
|
LC_TIME = "nl_NL.UTF-8";
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2023-11-22 17:46:20 +01:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2023-11-19 23:20:16 +01:00
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
2023-11-21 18:40:55 +01:00
|
|
|
defaults.email = "letsencrypt@gladtherescake.eu";
|
2023-11-19 23:20:16 +01:00
|
|
|
};
|
|
|
|
|
2023-12-19 11:19:29 +01:00
|
|
|
# users.groups.virtualMail = {};
|
2023-11-25 00:48:47 +01:00
|
|
|
|
2023-11-19 23:12:21 +01:00
|
|
|
users.users = {
|
|
|
|
lillian = {
|
2023-11-23 16:27:23 +01:00
|
|
|
openssh.authorizedKeys.keys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCnYgErCnva8fvLvsmTMC6dHJp2Fvwja0BYL8K/58ugDxNA0PVGj5PpEMar5yhi4AFGGYL4EgD75tRgI/WQU87ZiKjJ6HFIhgX9curncB2kIJ0JoA+FIQMNOT72GFuhjcO4svanrobsMrRmcn193suXY/N6m6F+3pitxBfHPWuPKKjlZqVBzpqCdz9pXoGOk48OSYv7Zyw8roVsUw3fqJqs68LRLM/winWVhVSPabXGyX7PAAW51Nbv6M64REs+V1a+wGvK5sGhRy7lIBAIuD22tuL4/PZojST1hasKN+7cSp7F1QTi4u0yeQ2+gIclQNuhfvghzl6zcVEpOycFouSIJaJjo8jyuHkbm4I2XfALVTFHe7sLpYNNS7Mf6E6i5rHvAvtXI4UBx/LjgPOj7RWZFaotxQRk1D+N0y2xNrO4ft6mS+hrJ/+ybp1XTGdtlkpUDKjiTZkV7Z4fq9J0jtijvtxRfcPhjia50IIHtZ28wVBMCCwYzh5pR15F/XbvKCc= lillian@EDI"];
|
2023-11-19 23:12:21 +01:00
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = ["sudo" "networkmanager" "wheel" "vboxsf"];
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable completion of system packages by zsh
|
|
|
|
environment.pathsToLink = ["/share/zsh"];
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
extraSpecialArgs = {inherit inputs outputs;};
|
|
|
|
users = {
|
|
|
|
# Import your home-manager configuration
|
|
|
|
lillian = import ../../home-manager/queen-Lillian.nix;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "queen";
|
|
|
|
|
2023-11-21 15:30:15 +01:00
|
|
|
boot.loader.grub.enable = true;
|
2023-12-18 22:17:37 +01:00
|
|
|
boot.loader.grub.configurationLimit = 3;
|
2023-11-20 12:01:14 +01:00
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
2023-11-19 23:12:21 +01:00
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
2023-12-18 22:00:31 +01:00
|
|
|
system.stateVersion = "23.11";
|
2023-11-19 23:12:21 +01:00
|
|
|
}
|