Only install omarchy on desktop machines.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
# Desktop profile: Graphical desktop with Hyprland
|
||||
# Extends workstation-node with desktop environment
|
||||
@@ -6,6 +6,9 @@
|
||||
./workstation-node.nix
|
||||
];
|
||||
|
||||
# omarchy-nix enables NetworkManager, but we use useDHCP globally
|
||||
networking.networkmanager.enable = lib.mkForce false;
|
||||
|
||||
# Enable Hyprland (Wayland compositor)
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
networking = {
|
||||
useDHCP = true;
|
||||
|
||||
59
flake.nix
59
flake.nix
@@ -88,32 +88,41 @@
|
||||
disko.nixosModules.disko
|
||||
sops-nix.nixosModules.sops
|
||||
impermanence.nixosModules.impermanence
|
||||
omarchy-nix.nixosModules.default
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
omarchy = {
|
||||
full_name = "Petru Paler";
|
||||
email_address = "petru@paler.net";
|
||||
theme = "tokyo-night";
|
||||
monitors = [ "DP-1,preferred,auto,1.5" ];
|
||||
};
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.ppetru = {
|
||||
imports = [
|
||||
(inputs.impermanence + "/home-manager.nix")
|
||||
inputs.nix-index-database.homeModules.nix-index
|
||||
inputs.nixvim.homeModules.nixvim
|
||||
omarchy-nix.homeManagerModules.default
|
||||
./home
|
||||
];
|
||||
};
|
||||
extraSpecialArgs = {
|
||||
inherit profile;
|
||||
};
|
||||
};
|
||||
}
|
||||
(
|
||||
{ lib, ... }:
|
||||
lib.mkMerge [
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.ppetru = {
|
||||
imports = [
|
||||
(inputs.impermanence + "/home-manager.nix")
|
||||
inputs.nix-index-database.homeModules.nix-index
|
||||
inputs.nixvim.homeModules.nixvim
|
||||
./home
|
||||
] ++ lib.optionals (profile == "desktop") [
|
||||
omarchy-nix.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
extraSpecialArgs = {
|
||||
inherit profile;
|
||||
};
|
||||
};
|
||||
}
|
||||
(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;
|
||||
specialArgs = {
|
||||
inherit inputs self;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, inputs, lib, ... }:
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../common/encrypted-btrfs-layout.nix
|
||||
@@ -16,7 +16,5 @@
|
||||
};
|
||||
|
||||
networking.hostName = "sparky";
|
||||
# enabled by omarchy-nix, conflicts with useDHCP
|
||||
networking.networkmanager.enable = lib.mkForce false;
|
||||
services.tailscaleAutoconnect.authkey = "tskey-auth-kBCKN7QNv411CNTRL-n5Td7Jw7h3TAjubEeLmy1THy33JvD9JnM";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user