Refactoring so that device-specific homes would work

This commit is contained in:
2026-04-15 17:01:35 +02:00
parent 6c3733c50c
commit d254fbd6b4
5 changed files with 25 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
{ lib, { lib,
config, config,
pkgs, pkgs,
hostName,
hyprland-toggle-tiling, hyprland-toggle-tiling,
legacy-launcher, legacy-launcher,
pass-autotype, pass-autotype,
@@ -8,8 +9,10 @@
{ {
imports = [ imports = [
./modules/hyprland.nix ../modules/hyprland.nix
./hosts/${hostName}.nix
]; ];
home = { home = {
username = "typo"; username = "typo";
homeDirectory = "/home/typo"; homeDirectory = "/home/typo";

5
home/hosts/Heracles.nix Normal file
View File

@@ -0,0 +1,5 @@
{
wayland.windowManager.hyprland.settings = {
monitor=",preferred,auto,1.0";
};
}

View File

@@ -1,9 +1,10 @@
{ pkgs, { pkgs,
pkgs-unstable, pkgs-unstable,
lib,
config,
hyprland-toggle-tiling, hyprland-toggle-tiling,
legacy-launcher, legacy-launcher,
pass-autotype, pass-autotype,
lib,
... }: ... }:
{ {
@@ -46,7 +47,7 @@
loader.timeout = lib.mkForce 1; loader.timeout = lib.mkForce 1;
}; };
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
time.timeZone = "Europe/Budapest"; time.timeZone = "Europe/Budapest";
@@ -69,18 +70,20 @@
}; };
}; };
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
extraSpecialArgs = { extraSpecialArgs = {
inherit inherit
hyprland-toggle-tiling hyprland-toggle-tiling
legacy-launcher legacy-launcher
pass-autotype; pass-autotype;
};
hostName = config.networking.hostName;
};
users.typo = import ../home.nix; users.typo = ../home/common.nix;
}; };
programs = { programs = {
# firefox.enable = true; # firefox.enable = true;

View File

@@ -12,7 +12,6 @@
../hyprland/hypr/autostart.nix ../hyprland/hypr/autostart.nix
../hyprland/hypr/input.nix ../hyprland/hypr/input.nix
../hyprland/hypr/appearance.nix ../hyprland/hypr/appearance.nix
../hyprland/hypr/monitors.nix
../hyprland/hypr/permissions.nix ../hyprland/hypr/permissions.nix
../hyprland/raw/kitty.nix ../hyprland/raw/kitty.nix
../hyprland/raw/fuzzel.nix ../hyprland/raw/fuzzel.nix