mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 11:26:12 +01:00
package and more dev software
This commit is contained in:
42
flake.nix
42
flake.nix
@@ -6,50 +6,44 @@
|
||||
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nix-alien.url = "github:thiagokokada/nix-alien";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ...}:
|
||||
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, home-manager, nix-alien, ...}:
|
||||
let
|
||||
lib = nixpkgs.lib;
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
||||
systemSettings = {
|
||||
profile = "thor"; # select 'thor' or 'zion'
|
||||
profile = "zion"; # select 'thor' or 'zion'
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
zion = lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
(./. + ("/" + systemSettings.profile)
|
||||
+ "/configuration.nix")
|
||||
];
|
||||
specialArgs = {
|
||||
inherit pkgs-unstable;
|
||||
};
|
||||
};
|
||||
thor = lib.nixosSystem {
|
||||
system = lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
(./. + ("/" + systemSettings.profile)
|
||||
+ "/configuration.nix")
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
|
||||
users.mike = import ./home.nix;
|
||||
|
||||
extraSpecialArgs = {
|
||||
inherit pkgs-unstable;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
specialArgs = {
|
||||
inherit pkgs-unstable;
|
||||
};
|
||||
};
|
||||
};
|
||||
homeConfigurations = {
|
||||
mike = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
./home.nix
|
||||
];
|
||||
extraSpecialArgs = {
|
||||
inherit pkgs-unstable;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user