Only install omarchy on desktop machines.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
networking = {
|
networking = {
|
||||||
useDHCP = true;
|
useDHCP = true;
|
||||||
|
|||||||
59
flake.nix
59
flake.nix
@@ -88,32 +88,41 @@
|
|||||||
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
|
||||||
{
|
(
|
||||||
omarchy = {
|
{ lib, ... }:
|
||||||
full_name = "Petru Paler";
|
lib.mkMerge [
|
||||||
email_address = "petru@paler.net";
|
{
|
||||||
theme = "tokyo-night";
|
home-manager = {
|
||||||
monitors = [ "DP-1,preferred,auto,1.5" ];
|
useGlobalPkgs = true;
|
||||||
};
|
useUserPackages = true;
|
||||||
home-manager = {
|
users.ppetru = {
|
||||||
useGlobalPkgs = true;
|
imports = [
|
||||||
useUserPackages = true;
|
(inputs.impermanence + "/home-manager.nix")
|
||||||
users.ppetru = {
|
inputs.nix-index-database.homeModules.nix-index
|
||||||
imports = [
|
inputs.nixvim.homeModules.nixvim
|
||||||
(inputs.impermanence + "/home-manager.nix")
|
./home
|
||||||
inputs.nix-index-database.homeModules.nix-index
|
] ++ lib.optionals (profile == "desktop") [
|
||||||
inputs.nixvim.homeModules.nixvim
|
omarchy-nix.homeManagerModules.default
|
||||||
omarchy-nix.homeManagerModules.default
|
];
|
||||||
./home
|
};
|
||||||
];
|
extraSpecialArgs = {
|
||||||
};
|
inherit profile;
|
||||||
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;
|
] ++ modules;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs self;
|
inherit inputs self;
|
||||||
|
|||||||
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user