35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
|
|
{
|
||
|
|
description = "NixOS configuration for all hosts";
|
||
|
|
|
||
|
|
inputs = {
|
||
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||
|
|
nixpkgs.follows = "nixpkgs";
|
||
|
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
|
home-manager.url = "github:nix-community/home-manager";
|
||
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||
|
|
};
|
||
|
|
|
||
|
|
outputs = { self, nixpkgs, flake-utils, home-manager, ... }:
|
||
|
|
flake-utils.lib.eachDefaultSystem (system:
|
||
|
|
let
|
||
|
|
pkgs = import nixpkgs {
|
||
|
|
inherit system;
|
||
|
|
config.allowUnfree = true;
|
||
|
|
};
|
||
|
|
in {
|
||
|
|
nixosConfigurations.laptop = nixpkgs.lib.nixosSystem {
|
||
|
|
system = "x86_64-linux";
|
||
|
|
specialArgs = {
|
||
|
|
inherit system pkgs;
|
||
|
|
};
|
||
|
|
modules = [
|
||
|
|
./hosts/electra/configuration.nix
|
||
|
|
./modules/common.nix
|
||
|
|
./modules/users/alisceon.nix
|
||
|
|
home-manager.nixosModules.home-manager
|
||
|
|
];
|
||
|
|
};
|
||
|
|
});
|
||
|
|
}
|