Files
nixos-blueprint/hosts/dunamis/configuration.nix
2025-05-24 23:04:03 +03:00

61 lines
1.2 KiB
Nix

{
config,
inputs,
pkgs,
...
}: {
imports = with inputs; [
self.nixosModules.config
self.nixosModules.desktop
self.nixosModules.system
./disko
./misc
];
networking = {
networkmanager.enable = true;
hostId = "c7f6c4a1";
hostName = "dunamis";
};
environment.memoryAllocator.provider = "mimalloc";
system.stateVersion = "25.11";
time.timeZone = "Europe/Kyiv";
desktop.niri.enable = true;
# TODO: make a module for autologin
services.greetd.settings.initial_session = {
user = "user";
command = "${pkgs.niri}/bin/niri-session";
};
module = {
config = {
secureBoot = true;
tpmDiskUnlock = true;
vaapi = "intel-media-driver";
};
stylix = {
enable = true;
theme = "rose-pine-moon";
};
};
locale.ukrainian.enable = true;
opentabletdriver.enable = false;
qmk-vial.enable = true;
virtual.libvirt.enable = true;
nix = let
inherit (builtins) readFile;
inherit (config.users.users) user;
in {
settings.trusted-users = ["nix-ssh"];
sshServe = {
enable = true;
write = true;
keys = map (f: readFile f) user.openssh.authorizedKeys.keyFiles;
};
};
}