mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-04 14:45:00 +08:00
27 lines
768 B
Nix
27 lines
768 B
Nix
{
|
|
description = "NixOS configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
};
|
|
|
|
outputs = { self, home-manager, nixpkgs }: {
|
|
nixosConfigurations.x1c7 = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
/* ({ pkgs, ... }: {
|
|
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
|
|
nix.registry.nixpkgs.flake = nixpkgs;
|
|
}) */
|
|
./configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.srid = import ./home.nix;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|