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
|
2024-03-05 20:59:17 +01:00
|
|
|
./arion
|
2024-03-02 17:17:52 +01:00
|
|
|
];
|
|
|
|
|
2024-03-02 17:48:50 +01:00
|
|
|
users.mutableUsers = true;
|
2024-03-17 15:18:23 +01:00
|
|
|
users.users.${vars.user} = {
|
|
|
|
password = "changeme";
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
#Desktop
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJd6Gut34abkwlZ4tZVBO4Qt7CkIpPm/Z8R6JCisjnYy openpgp:0xBD0CFCA0"
|
2024-03-02 17:48:50 +01:00
|
|
|
|
2024-03-17 15:18:23 +01:00
|
|
|
#Convertible
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFlRsnLqm6Ap3yKEEhtFiWavo72df/X5Il1ZCmENUqev openpgp:0xDE189CA5"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
security.pam.enableSSHAgentAuth = true;
|
|
|
|
|
|
|
|
fileSystems."/drives/hdd" = {
|
|
|
|
device = "/dev/disk/by-uuid/7d5eaff7-c17d-4fac-b7d7-7aa3c35b9a29";
|
|
|
|
};
|
2024-03-02 17:17:52 +01:00
|
|
|
|
|
|
|
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";
|
|
|
|
}
|