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
+37 -23
View File
@@ -1,41 +1,55 @@
{inputs, ...}: { {
imports = with inputs; [ flake,
self.modules.shared.nixos inputs,
self.nixosModules.desktop pkgs,
self.nixosModules.system 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 ./disko
./hardware ./hardware
./misc ./misc
]; ];
networking = { # overlays = [
hostId = "45b00123"; # nix-bwrapper.overlays.default # provides `mkBwrapper`
hostName = "legion"; # ];
};
system.stateVersion = "25.11"; # time.hardwareClockInLocalTime = true;
time.timeZone = "Europe/Kyiv";
desktop.niri.enable = true; desktop.dms.enable = true;
services.displayManager.autoLogin = { services.displayManager.autoLogin = {
enable = true; enable = true;
user = "user"; user = "user";
}; };
module = { module.virt.libvirt.enable = true;
config = {
laptop.homeRowMods = true; unexplrd = (
powerSave = true; lib.mkMerge [
secureBoot = true; (builtins.fromTOML (builtins.readFile ./host.toml))
tpmDiskUnlock = true; {
vaapi = "nvidia";
};
stylix = { stylix = {
enable = true; enable = true;
theme = "sandcastle"; theme = "sandcastle";
}; };
locale = "uk_UA.UTF-8"; }
virt.libvirt.enable = true; ]
}; );
} }
+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