54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{
|
|
description = "Nix flake for basic configuration, for surface and desktop";
|
|
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = github:nix-community/home-manager;
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
|
|
outputs = inputs@{nixpkgs, home-manager, ...}:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
};
|
|
in
|
|
{
|
|
nixosConfigurations.nixdesktop = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit system; };
|
|
|
|
modules = [
|
|
./desktop-config.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.twoneis = import ./home.nix
|
|
}
|
|
];
|
|
};
|
|
nixConfigurations.nixsurface = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit system; };
|
|
|
|
modules = [
|
|
./surface-config.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.twoneis = import ./home.nix
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|