mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-28 11:43:51 -08:00
30 lines
805 B
Nix
30 lines
805 B
Nix
|
{
|
||
|
description = "System configuration flake.";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||
|
home-manager = {
|
||
|
url = "github:nix-community/home-manager/release-24.05";
|
||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
||
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||
|
specialArgs = { inherit inputs; };
|
||
|
system = "x86_64-linux";
|
||
|
modules = [
|
||
|
./configuration.nix
|
||
|
|
||
|
home-manager.nixosModules.home-manager
|
||
|
{
|
||
|
home-manager.useGlobalPkgs = true;
|
||
|
home-manager.useUserPackages = true;
|
||
|
home-manager.users.youwen = import ./home.nix;
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|