hosts/legion: initial structure change

This commit is contained in:
2025-12-31 14:56:17 +02:00
parent 5bff12d7e3
commit c93c93a810
2 changed files with 59 additions and 31 deletions
+45 -31
View File
@@ -1,41 +1,55 @@
{inputs, ...}: {
imports = with inputs; [
self.modules.shared.nixos
self.nixosModules.desktop
self.nixosModules.system
./disko
./hardware
./misc
];
{
flake,
inputs,
pkgs,
lib,
...
}: {
imports = with flake;
[
modules.shared.nixos
nixosModules.desktop
# nixosModules.system
]
++ (with inputs; [
nix-bwrapper.nixosModules.default
])
++ (with inputs.self.modules.programs-nixos; [
# opentabletdriver
# qmk-vial
libvirt
podman
])
++ [
./disko
./hardware
./misc
];
networking = {
hostId = "45b00123";
hostName = "legion";
};
# overlays = [
# nix-bwrapper.overlays.default # provides `mkBwrapper`
# ];
system.stateVersion = "25.11";
time.timeZone = "Europe/Kyiv";
# time.hardwareClockInLocalTime = true;
desktop.niri.enable = true;
desktop.dms.enable = true;
services.displayManager.autoLogin = {
enable = true;
user = "user";
};
module = {
config = {
laptop.homeRowMods = true;
powerSave = true;
secureBoot = true;
tpmDiskUnlock = true;
vaapi = "nvidia";
};
stylix = {
enable = true;
theme = "sandcastle";
};
locale = "uk_UA.UTF-8";
virt.libvirt.enable = true;
};
module.virt.libvirt.enable = true;
unexplrd = (
lib.mkMerge [
(builtins.fromTOML (builtins.readFile ./host.toml))
{
stylix = {
enable = true;
theme = "sandcastle";
};
}
]
);
}
+14
View File
@@ -0,0 +1,14 @@
[host]
name = "legion"
id = "45b00123"
type = "laptop"
stateVersion = "25.11"
[config]
locale = "uk_UA.UTF-8"
timeZone = "Europe/Kyiv"
secureBoot = true
tpmDiskUnlock = true
vaapi = "nvidia"
# laptop.homeRowMods = true
powerSave = true