nix-config/flake.nix

56 lines
1.2 KiB
Nix

{
description = "Nix flake for my system configuration with nix and home-manager";
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, ... }:
let
x86 = "x86_64-linux";
common = ./modules/system;
in {
nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit x86; };
modules = [
common
./devices/desktop
home-manager.nixosModules.home-manager {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.twoneis = import ./modules/home;
};
}
];
};
surface = nixpkgs.lib.nixosSystem {
specialArgs = { inherit x86; };
modules = [
common
./devices/surface
home-manager.nixosModules.home-manager {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.twoneis = import ./modules/home;
};
}
];
};
};
};
}