Add Laptop Config
This commit is contained in:
29
flake.nix
29
flake.nix
@@ -1,8 +1,14 @@
|
||||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
inputs.sops-nix.url = "github:Mic92/sops-nix";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-23.05-darwin";
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
nix-darwin.url = "github:LnL7/nix-darwin/master";
|
||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager.url = "github:nix-community/home-manager/release-23.05";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, sops-nix }@attrs: let
|
||||
outputs = { self, nixpkgs, sops-nix, nix-darwin, home-manager }@attrs: let
|
||||
hydraGitea = (final: prev: {
|
||||
hydra_unstable = prev.hydra_unstable.overrideAttrs
|
||||
(old: {
|
||||
@@ -17,8 +23,12 @@
|
||||
});
|
||||
});
|
||||
nvidiaContainer = import ./nvidiacontainer-overlay.nix nixpkgs;
|
||||
|
||||
# Configuration for `nixpkgs`
|
||||
nixpkgsConfig = {
|
||||
config = { allowUnfree = true; };
|
||||
};
|
||||
in {
|
||||
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = attrs;
|
||||
@@ -39,5 +49,16 @@
|
||||
./machines/universedesktop/configuration.nix
|
||||
];
|
||||
};
|
||||
darwinConfigurations."Universe-Air" = nix-darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
specialArgs = attrs;
|
||||
modules = [
|
||||
./machines/universeair/configuration.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
nixpkgs = nixpkgsConfig;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user