nix/flake.nix

50 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2026-02-22 19:59:14 -06:00
{
2026-02-23 12:15:31 +10:00
description = "NixOS configuration";
2026-02-22 19:59:14 -06:00
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2026-02-23 13:08:41 +10:00
2026-02-22 19:59:14 -06:00
# home-manager, used for managing user configuration
home-manager = {
url = "github:nix-community/home-manager/master";
# The `follows` keyword in inputs is used for inheritance.
# Here, `inputs.nixpkgs` of home-manager is kept consistent with
# the `inputs.nixpkgs` of the current flake,
# to avoid problems caused by different versions of nixpkgs.
inputs.nixpkgs.follows = "nixpkgs";
};
2026-02-23 13:08:41 +10:00
2026-02-22 19:59:14 -06:00
silentSDDM = {
url = "github:uiriansan/SilentSDDM";
inputs.nixpkgs.follows = "nixpkgs";
2026-02-23 12:15:31 +10:00
};
2026-02-22 19:59:14 -06:00
nixcats.url = "github:BirdeeHub/nixCats-nvim";
2026-02-23 12:15:31 +10:00
hyprland-git = {
2026-02-22 19:59:14 -06:00
url = "github:hyprwm/Hyprland/25250527793eb04bb60f103abe7f06370b9f6e1c";
2026-02-23 13:08:41 +10:00
inputs.nixpkgs.follows = "nixpkgs";
2026-02-22 19:59:14 -06:00
};
};
2026-02-23 12:15:31 +10:00
outputs = inputs @ {
nixpkgs,
home-manager,
2026-02-23 13:08:41 +10:00
silentSDDM,
2026-02-23 12:15:31 +10:00
...
}: {
2026-02-22 19:59:14 -06:00
nixosConfigurations = {
girlCore = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./configuration.nix
# make home-manager as a module of nixos
# so that home-manager configuration will be deployed automatically when executing `nixos-rebuild switch`
home-manager.nixosModules.home-manager
2026-02-23 13:08:41 +10:00
silentSDDM.nixosModules.default
2026-02-22 19:59:14 -06:00
];
};
};
};
}