System/flake.nix

74 lines
2.1 KiB
Nix
Raw Normal View History

2021-12-20 13:37:26 -05:00
{
description = "Nathan's system configurations";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
fenix = {
url = "github:nix-community/fenix";
};
emacs = {
url = "github:nix-community/emacs-overlay";
2022-01-26 16:53:39 -05:00
};
mozilla = {
url = "github:mozilla/nixpkgs-mozilla";
flake = false;
2021-12-20 13:37:26 -05:00
};
};
2022-01-26 16:53:39 -05:00
outputs = { self, nixpkgs, nixpkgs-unstable, fenix, emacs, mozilla }:
2021-12-23 00:45:21 -05:00
let
coreModules = [
./modules/user.nix
./modules/common.nix
./modules/ssh.nix
./applications/utils-core.nix
];
desktopModules = coreModules ++ [
./modules/audio.nix
./modules/sway.nix
./modules/fonts.nix
./modules/gpg.nix
./modules/logitech.nix
./modules/qemu.nix
./modules/docker.nix
./applications/communications.nix
./applications/devel-core.nix
./applications/devel-rust.nix
./applications/emacs.nix
./applications/image-editing.nix
./applications/media.nix
./applications/syncthing.nix
./desktop.nix
];
2022-01-26 16:53:39 -05:00
mozillaOverlay = import "${mozilla}";
2021-12-23 00:45:21 -05:00
in
2021-12-20 13:37:26 -05:00
{
nixosConfigurations.levitation = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
unstable = import nixpkgs-unstable {
config = { allowUnfree = true; };
2022-01-26 16:53:39 -05:00
overlays = [ emacs.overlay mozillaOverlay ];
2021-12-20 13:37:26 -05:00
system = "x86_64-linux";
};
fenix = fenix.packages.x86_64-linux;
};
2021-12-23 00:45:21 -05:00
modules = [ ./hardware/levitation.nix ] ++ desktopModules;
2021-12-20 13:37:26 -05:00
};
2021-12-23 00:47:40 -05:00
nixosConfigurations.x86vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
unstable = import nixpkgs-unstable {
config = { allowUnfree = true; };
overlays = [ emacs.overlay ];
system = "x86_64-linux";
};
fenix = fenix.packages.x86_64-linux;
};
modules = desktopModules;
};
2021-12-20 13:37:26 -05:00
};
}