Compact configs
This commit is contained in:
parent
7e6e99a026
commit
4a3b1b9083
1 changed files with 36 additions and 51 deletions
87
flake.nix
87
flake.nix
|
|
@ -68,11 +68,29 @@
|
||||||
};
|
};
|
||||||
pkgs = import nixpkgs nixpkgsSettings;
|
pkgs = import nixpkgs nixpkgsSettings;
|
||||||
unstablePkgs = import nixpkgs nixpkgsSettings;
|
unstablePkgs = import nixpkgs nixpkgsSettings;
|
||||||
|
odinBaseModules = [
|
||||||
|
{ nixpkgs = nixpkgsSettings; }
|
||||||
|
./odin/hardware-configuration.nix
|
||||||
|
nixos-hardware.nixosModules.common-cpu-intel
|
||||||
|
nixos-hardware.nixosModules.common-pc-laptop
|
||||||
|
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||||
|
./odin/base.nix
|
||||||
|
./odin/pro_audio.nix
|
||||||
|
home-manager-unstable.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
# home-manager.nixpkgs.overlays = overlays;
|
||||||
|
home-manager.users.bertof = import ./odin.nix;
|
||||||
|
# home-manager.users.bertof.home.packages = [ unstable.hello ];
|
||||||
|
}
|
||||||
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages.x86_64-linux = pkgs;
|
packages.x86_64-linux = pkgs;
|
||||||
|
|
||||||
nixosConfigurations = rec {
|
nixosConfigurations = rec {
|
||||||
|
|
||||||
thor = pkgs.lib.nixosSystem {
|
thor = pkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
|
|
@ -84,13 +102,14 @@
|
||||||
./thor/configuration.nix
|
./thor/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
odin = odin-intel;
|
|
||||||
|
odin = odin-nvidia-big-data-unstable;
|
||||||
|
|
||||||
odin-intel = pkgs.lib.nixosSystem {
|
odin-intel = pkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
{ nixpkgs = nixpkgsSettings; }
|
{ nixpkgs = nixpkgsSettings; }
|
||||||
|
|
||||||
./odin/hardware-configuration.nix
|
./odin/hardware-configuration.nix
|
||||||
nixos-hardware.nixosModules.common-cpu-intel
|
nixos-hardware.nixosModules.common-cpu-intel
|
||||||
nixos-hardware.nixosModules.common-pc-laptop
|
nixos-hardware.nixosModules.common-pc-laptop
|
||||||
|
|
@ -100,66 +119,32 @@
|
||||||
./odin/pro_audio.nix
|
./odin/pro_audio.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
odin-intel-unstable = unstable.lib.nixosSystem {
|
odin-intel-unstable = unstable.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
modules = odinBaseModules ++ [ ./odin/odin-intel.nix ];
|
||||||
modules = [
|
|
||||||
{ nixpkgs = nixpkgsSettings; }
|
|
||||||
./odin/hardware-configuration.nix
|
|
||||||
nixos-hardware.nixosModules.common-cpu-intel
|
|
||||||
nixos-hardware.nixosModules.common-pc-laptop
|
|
||||||
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
||||||
./odin/base.nix
|
|
||||||
./odin/odin-intel.nix
|
|
||||||
./odin/pro_audio.nix
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
odin-nvidia-unstable = unstable.lib.nixosSystem {
|
odin-nvidia-unstable = unstable.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
modules = odinBaseModules ++ [ ./odin/odin-nvidia.nix ];
|
||||||
modules = [
|
|
||||||
{ nixpkgs = nixpkgsSettings; }
|
|
||||||
./odin/hardware-configuration.nix
|
|
||||||
nixos-hardware.nixosModules.common-cpu-intel
|
|
||||||
nixos-hardware.nixosModules.common-pc-laptop
|
|
||||||
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
||||||
./odin/base.nix
|
|
||||||
./odin/odin-nvidia.nix
|
|
||||||
./odin/pro_audio.nix
|
|
||||||
home-manager-unstable.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
# home-manager.nixpkgs.overlays = overlays;
|
|
||||||
home-manager.users.bertof = import ./odin.nix;
|
|
||||||
# home-manager.users.bertof.home.packages = [ unstable.hello ];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
big-data-unstable = unstable.lib.nixosSystem {
|
odin-intel-big-data-unstable = unstable.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
modules = odinBaseModules ++ [
|
||||||
modules = [
|
./odin/odin-intel.nix
|
||||||
{ nixpkgs = nixpkgsSettings; }
|
|
||||||
./odin/hardware-configuration.nix
|
|
||||||
nixos-hardware.nixosModules.common-cpu-intel
|
|
||||||
nixos-hardware.nixosModules.common-pc-laptop
|
|
||||||
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
||||||
./odin/base.nix
|
|
||||||
./odin/odin-nvidia.nix
|
|
||||||
./odin/pro_audio.nix
|
|
||||||
home-manager-unstable.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
# home-manager.nixpkgs.overlays = overlays;
|
|
||||||
home-manager.users.bertof = import ./odin.nix;
|
|
||||||
# home-manager.users.bertof.home.packages = [ unstable.hello ];
|
|
||||||
}
|
|
||||||
./nixos_modules/big_data.nix
|
./nixos_modules/big_data.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
odin-nvidia-big-data-unstable = unstable.lib.nixosSystem {
|
||||||
|
inherit system;
|
||||||
|
modules = odinBaseModules ++ [
|
||||||
|
./odin/odin-nvidia.nix
|
||||||
|
./nixos_modules/big_data.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue