nix-config/hosts/franz/default.nix

61 lines
1.1 KiB
Nix
Raw Normal View History

2024-03-02 17:17:52 +01:00
{
inputs,
outputs,
lib,
config,
pkgs,
...
2024-03-02 17:48:50 +01:00
}: let
vars = import ../../vars.nix;
in {
2024-03-02 17:17:52 +01:00
imports = [
inputs.hardware.nixosModules.common-pc-ssd
inputs.disko.nixosModules.default
./hardware-configuration.nix
2024-03-03 12:15:40 +01:00
(import ../../disko/btrfs-swap.nix {device = "/dev/nvme0n1";})
2024-03-02 17:17:52 +01:00
../common/global
../common/optional/systemd-boot.nix
../common/optional/gnome-keyring.nix
../common/optional/docker.nix
2024-03-03 12:31:16 +01:00
../common/optional/vsftpd.nix
2024-03-03 20:04:13 +01:00
./sops.nix
./arion
2024-03-02 17:17:52 +01:00
];
2024-03-02 17:48:50 +01:00
users.mutableUsers = true;
users.users.${vars.user}.password = "changeme";
2024-03-02 17:17:52 +01:00
nix.extraOptions = ''
download-speed = 4000
'';
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
];
config = {
allowUnfree = true;
};
};
networking.hostName = "franz";
programs = {
dconf.enable = true;
};
2024-03-02 17:41:16 +01:00
services.openssh = {
enable = true;
2024-03-03 13:08:46 +01:00
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
2024-03-02 17:41:16 +01:00
};
2024-03-02 17:17:52 +01:00
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.11";
}