Only install omarchy on desktop machines.

This commit is contained in:
2025-10-25 11:45:41 +01:00
parent bd473d1ad2
commit 5ce0e0e1df
4 changed files with 40 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, lib, ... }:
{ {
# Desktop profile: Graphical desktop with Hyprland # Desktop profile: Graphical desktop with Hyprland
# Extends workstation-node with desktop environment # Extends workstation-node with desktop environment
@@ -6,6 +6,9 @@
./workstation-node.nix ./workstation-node.nix
]; ];
# omarchy-nix enables NetworkManager, but we use useDHCP globally
networking.networkmanager.enable = lib.mkForce false;
# Enable Hyprland (Wayland compositor) # Enable Hyprland (Wayland compositor)
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;

View File

@@ -1,3 +1,4 @@
{ lib, ... }:
{ {
networking = { networking = {
useDHCP = true; useDHCP = true;

View File

@@ -88,15 +88,11 @@
disko.nixosModules.disko disko.nixosModules.disko
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
impermanence.nixosModules.impermanence impermanence.nixosModules.impermanence
omarchy-nix.nixosModules.default
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
(
{ lib, ... }:
lib.mkMerge [
{ {
omarchy = {
full_name = "Petru Paler";
email_address = "petru@paler.net";
theme = "tokyo-night";
monitors = [ "DP-1,preferred,auto,1.5" ];
};
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
@@ -105,8 +101,9 @@
(inputs.impermanence + "/home-manager.nix") (inputs.impermanence + "/home-manager.nix")
inputs.nix-index-database.homeModules.nix-index inputs.nix-index-database.homeModules.nix-index
inputs.nixvim.homeModules.nixvim inputs.nixvim.homeModules.nixvim
omarchy-nix.homeManagerModules.default
./home ./home
] ++ lib.optionals (profile == "desktop") [
omarchy-nix.homeManagerModules.default
]; ];
}; };
extraSpecialArgs = { extraSpecialArgs = {
@@ -114,6 +111,18 @@
}; };
}; };
} }
(lib.optionalAttrs (profile == "desktop") {
omarchy = {
full_name = "Petru Paler";
email_address = "petru@paler.net";
theme = "tokyo-night";
monitors = [ "DP-1,preferred,auto,1.5" ];
};
})
]
)
] ++ nixpkgs.lib.optionals (profile == "desktop") [
omarchy-nix.nixosModules.default
] ++ modules; ] ++ modules;
specialArgs = { specialArgs = {
inherit inputs self; inherit inputs self;

View File

@@ -1,4 +1,4 @@
{ pkgs, inputs, lib, ... }: { pkgs, inputs, ... }:
{ {
imports = [ imports = [
../../common/encrypted-btrfs-layout.nix ../../common/encrypted-btrfs-layout.nix
@@ -16,7 +16,5 @@
}; };
networking.hostName = "sparky"; networking.hostName = "sparky";
# enabled by omarchy-nix, conflicts with useDHCP
networking.networkmanager.enable = lib.mkForce false;
services.tailscaleAutoconnect.authkey = "tskey-auth-kBCKN7QNv411CNTRL-n5Td7Jw7h3TAjubEeLmy1THy33JvD9JnM"; services.tailscaleAutoconnect.authkey = "tskey-auth-kBCKN7QNv411CNTRL-n5Td7Jw7h3TAjubEeLmy1THy33JvD9JnM";
} }