introduce desktop config
This commit is contained in:
parent
b202dc94f7
commit
70b8f31f34
5 changed files with 91 additions and 31 deletions
23
flake.nix
23
flake.nix
|
|
@ -47,6 +47,20 @@
|
|||
home-manager,
|
||||
sops-nix,
|
||||
}:
|
||||
let
|
||||
# Define the systems you support
|
||||
supportedSystems = [ "x86_64-linux" "aarch64-darwin" ];
|
||||
|
||||
# Helper function to generate pkgs for a given system
|
||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||
|
||||
# Create a pkgs set for each system, using your flake's nixpkgs input
|
||||
# This ensures all configurations (NixOS, darwin, home-manager) use the SAME pinned Nixpkgs version
|
||||
nixpkgsFor = system: import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true; # Example: allow unfree packages if needed
|
||||
};
|
||||
in
|
||||
{
|
||||
darwinConfigurations."Dens-MacBook" = nix-darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
|
|
@ -79,6 +93,15 @@
|
|||
};
|
||||
darwinPackages = self.darwinConfigurations."Dens-MacBook".pkgs;
|
||||
|
||||
homeConfigurations = {
|
||||
dens-desktop = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgsFor "x86_64-linux";
|
||||
modules = [
|
||||
./hosts/desktop/home.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nixosConfigurations = {
|
||||
nixos = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue