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;
|
||||
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
|
||||
{
|
||||
packages.x86_64-linux = pkgs;
|
||||
|
||||
nixosConfigurations = rec {
|
||||
|
||||
thor = pkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
|
|
@ -84,13 +102,14 @@
|
|||
./thor/configuration.nix
|
||||
];
|
||||
};
|
||||
odin = odin-intel;
|
||||
|
||||
odin = odin-nvidia-big-data-unstable;
|
||||
|
||||
odin-intel = pkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
modules = [
|
||||
{ nixpkgs = nixpkgsSettings; }
|
||||
|
||||
./odin/hardware-configuration.nix
|
||||
nixos-hardware.nixosModules.common-cpu-intel
|
||||
nixos-hardware.nixosModules.common-pc-laptop
|
||||
|
|
@ -100,66 +119,32 @@
|
|||
./odin/pro_audio.nix
|
||||
];
|
||||
};
|
||||
|
||||
odin-intel-unstable = unstable.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
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
|
||||
];
|
||||
modules = odinBaseModules ++ [ ./odin/odin-intel.nix ];
|
||||
};
|
||||
odin-nvidia-unstable = unstable.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
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 ];
|
||||
}
|
||||
];
|
||||
modules = odinBaseModules ++ [ ./odin/odin-nvidia.nix ];
|
||||
};
|
||||
|
||||
big-data-unstable = unstable.lib.nixosSystem {
|
||||
odin-intel-big-data-unstable = unstable.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
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 ];
|
||||
}
|
||||
modules = odinBaseModules ++ [
|
||||
./odin/odin-intel.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