2020-12-26 23:36:50 +01:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-20.09";
|
|
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
|
|
|
nixpkgs-master.url = "github:NixOS/nixpkgs?ref=master";
|
|
|
|
};
|
|
|
|
|
2020-12-29 17:58:07 +01:00
|
|
|
outputs = { self, nixpkgs, ... }@inputs:
|
|
|
|
let
|
|
|
|
klippyModule = (import ./packages/klippy).nixosModules.klippy;
|
|
|
|
moonrakerModule = (import ./packages/moonraker).nixosModules.moonraker;
|
|
|
|
mainsailModule = (import ./packages/mainsail).nixosModules.mainsail;
|
|
|
|
in {
|
|
|
|
nixosConfigurations.omen = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
./filesystem/omen.nix
|
|
|
|
./kernel/omen.nix
|
|
|
|
|
|
|
|
(_: {
|
|
|
|
networking = {
|
|
|
|
hostName = "omen";
|
|
|
|
useDHCP = false;
|
|
|
|
interfaces.eno1.useDHCP = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Bratislava";
|
|
|
|
system.stateVersion = "20.09";
|
|
|
|
})
|
2020-12-27 02:15:29 +01:00
|
|
|
|
2020-12-29 17:58:07 +01:00
|
|
|
(import ./profiles/laptop.nix {
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
})
|
2020-12-27 02:15:29 +01:00
|
|
|
|
2020-12-29 17:58:07 +01:00
|
|
|
(import ./modules/pin-nixpkgs.nix inputs)
|
2020-12-27 02:15:29 +01:00
|
|
|
|
2020-12-29 17:58:07 +01:00
|
|
|
./users/main.nix
|
|
|
|
];
|
|
|
|
};
|
2020-12-27 02:15:29 +01:00
|
|
|
|
2020-12-29 17:58:07 +01:00
|
|
|
nixosConfigurations.heater = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2020-12-27 02:15:29 +01:00
|
|
|
|
2020-12-29 17:58:07 +01:00
|
|
|
modules = [
|
|
|
|
./filesystem/heater.nix
|
|
|
|
./kernel/heater.nix
|
|
|
|
|
|
|
|
(_: {
|
|
|
|
networking = {
|
|
|
|
hostName = "heater";
|
|
|
|
useDHCP = false;
|
|
|
|
interfaces.enp3s0.useDHCP = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Bratislava";
|
|
|
|
system.stateVersion = "20.09";
|
2021-01-10 20:05:04 +01:00
|
|
|
|
|
|
|
virtualisation.docker.enable = true;
|
2020-12-29 17:58:07 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
(import ./profiles/workstation.nix)
|
|
|
|
|
|
|
|
(import ./modules/pin-nixpkgs.nix inputs)
|
|
|
|
|
|
|
|
./users/main.nix
|
|
|
|
];
|
|
|
|
};
|
2020-12-27 02:15:29 +01:00
|
|
|
};
|
2020-12-26 23:36:50 +01:00
|
|
|
}
|