diff --git a/hosts/legion/configuration.nix b/hosts/legion/configuration.nix index 6e26afb..e54a7ba 100644 --- a/hosts/legion/configuration.nix +++ b/hosts/legion/configuration.nix @@ -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"; + }; + } + ] + ); } diff --git a/hosts/legion/host.toml b/hosts/legion/host.toml new file mode 100644 index 0000000..bf762e6 --- /dev/null +++ b/hosts/legion/host.toml @@ -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