Incorporate omarchy-nix.
This commit is contained in:
52
flake.nix
52
flake.nix
@@ -33,11 +33,7 @@
|
||||
url = "github:nix-community/browser-previews";
|
||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
};
|
||||
omarchy-nix = {
|
||||
url = "github:henrysipp/omarchy-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.home-manager.follows = "home-manager";
|
||||
};
|
||||
nix-colors.url = "github:misterio77/nix-colors";
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
};
|
||||
|
||||
@@ -53,7 +49,7 @@
|
||||
impermanence,
|
||||
sops-nix,
|
||||
browser-previews,
|
||||
omarchy-nix,
|
||||
nix-colors,
|
||||
nixos-hardware,
|
||||
...
|
||||
}@inputs:
|
||||
@@ -93,37 +89,27 @@
|
||||
home-manager.nixosModules.home-manager
|
||||
(
|
||||
{ lib, ... }:
|
||||
lib.mkMerge [
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.ppetru = {
|
||||
imports = [
|
||||
inputs.nix-index-database.homeModules.nix-index
|
||||
inputs.nixvim.homeModules.nixvim
|
||||
./home
|
||||
] ++ lib.optionals (profile == "desktop") [
|
||||
omarchy-nix.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
extraSpecialArgs = {
|
||||
inherit profile;
|
||||
};
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.ppetru = {
|
||||
imports = [
|
||||
inputs.nix-index-database.homeModules.nix-index
|
||||
inputs.nixvim.homeModules.nixvim
|
||||
./home
|
||||
] ++ lib.optionals (profile == "desktop") [
|
||||
nix-colors.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
}
|
||||
(lib.optionalAttrs (profile == "desktop") {
|
||||
omarchy = {
|
||||
full_name = "Petru Paler";
|
||||
email_address = "petru@paler.net";
|
||||
theme = "tokyo-night";
|
||||
monitors = [ "DP-1,preferred,auto,1.5" ];
|
||||
extraSpecialArgs = {
|
||||
inherit profile nix-colors;
|
||||
};
|
||||
})
|
||||
]
|
||||
};
|
||||
}
|
||||
)
|
||||
] ++ nixpkgs.lib.optionals (profile == "desktop") [
|
||||
omarchy-nix.nixosModules.default
|
||||
./common/desktop
|
||||
] ++ modules;
|
||||
specialArgs = {
|
||||
inherit inputs self;
|
||||
|
||||
Reference in New Issue
Block a user