dotfiles/nixos/flake.nix

40 lines
923 B
Nix
Raw Normal View History

{
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, home-manager, ... }@inputs: let
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";
})
(import ./profiles/laptop.nix {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
})
(import ./modules/pin-nixpkgs.nix inputs)
./users/main.nix
];
};
};
}