nix: use unstable and add home-manager
This commit is contained in:
@ -1,29 +1,24 @@
|
||||
{
|
||||
inputs.nixpkgs.url = "nixpkgs/nixos-22.11";
|
||||
inputs.nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
inputs.home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
inputs.nix-matlab.url = "gitlab:doronbehar/nix-matlab";
|
||||
# inputs.home-manager.url = "github:nix-community/home-manager";
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, nix-matlab, ... }@attrs:
|
||||
outputs = { self, nixpkgs, home-manager, nix-matlab, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
overlay-unstable = final: prev: {
|
||||
# unstable = nixpkgs-unstable.legacyPackages.${prev.system};
|
||||
# use this variant if unfree packages are needed:
|
||||
unstable = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
in {
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = attrs;
|
||||
# inherit system;
|
||||
specialArgs = { inherit inputs system; };
|
||||
modules = [
|
||||
# Overlays-module makes "pkgs.unstable" available in configuration.nix
|
||||
({ config, pkgs, ... }: {
|
||||
nixpkgs.overlays = [ overlay-unstable nix-matlab.overlay ];
|
||||
nixpkgs.overlays = [ nix-matlab.overlay ];
|
||||
})
|
||||
./configuration.nix
|
||||
];
|
||||
|
Reference in New Issue
Block a user