mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-02 04:56:14 +01:00
101 lines
2.6 KiB
Nix
101 lines
2.6 KiB
Nix
{
|
|
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";
|
|
};
|
|
|
|
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";
|
|
|
|
# services.moonraker = {
|
|
# instances = {
|
|
# ender3 = {
|
|
# config = {
|
|
# authorization.trustedClients = [ "127.0.0.0/8" ];
|
|
# };
|
|
# };
|
|
# };
|
|
# };
|
|
|
|
# services.mainsail = {
|
|
# enable = true;
|
|
# apiServer = "localhost:7125";
|
|
# };
|
|
|
|
# services.klippy = {
|
|
# instances = {
|
|
# ender3 = {
|
|
# config = {
|
|
# file = ./printer.cfg;
|
|
# extraImports = [ ./macros.cfg ];
|
|
# virtualSd = "/home/main";
|
|
# };
|
|
# };
|
|
# };
|
|
# };
|
|
})
|
|
|
|
# klippyModule
|
|
# moonrakerModule
|
|
# mainsailModule
|
|
|
|
(import ./profiles/laptop.nix {
|
|
intelBusId = "PCI:0:2:0";
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
})
|
|
|
|
(import ./modules/pin-nixpkgs.nix inputs)
|
|
|
|
./users/main.nix
|
|
];
|
|
};
|
|
|
|
nixosConfigurations.heater = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
./filesystem/heater.nix
|
|
./kernel/heater.nix
|
|
|
|
(_: {
|
|
networking = {
|
|
hostName = "heater";
|
|
useDHCP = false;
|
|
interfaces.enp3s0.useDHCP = true;
|
|
};
|
|
|
|
time.timeZone = "Europe/Bratislava";
|
|
system.stateVersion = "20.09";
|
|
})
|
|
|
|
(import ./profiles/workstation.nix)
|
|
|
|
(import ./modules/pin-nixpkgs.nix inputs)
|
|
|
|
./users/main.nix
|
|
];
|
|
};
|
|
};
|
|
}
|