62 lines
1.4 KiB
Nix
Executable File
62 lines
1.4 KiB
Nix
Executable File
{
|
|
description = "my nixos setup";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { nixpkgs, home-manager, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = { allowUnfree = true; };
|
|
};
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
in {
|
|
homeManagerConfigurations = {
|
|
vincent = home-manager.lib.homeManagerConfiguration {
|
|
inherit system pkgs;
|
|
username = "vincent";
|
|
homeDirectory = "/home/vincent";
|
|
configuration = {
|
|
import = [
|
|
./users/vincent/home.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
nixosConfigurations = {
|
|
vincents-hp = lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
./system/vincents-hp/configuration.nix
|
|
];
|
|
};
|
|
susans-hp = lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
./system/susans-hp/configuration.nix
|
|
];
|
|
};
|
|
vincents-vm = lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
./system/vincents-vm/configuration.nix
|
|
];
|
|
};
|
|
susans-vm = lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
./system/susans-vm/configuration.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|