snowflake/flake.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

2022-12-06 01:24:54 -05:00
{
inputs = {
2022-12-19 17:55:54 -05:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2022-12-14 19:26:48 -05:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
2022-12-19 17:55:54 -05:00
};
hyprland.url = "github:hyprwm/Hyprland";
2023-02-04 12:38:36 -05:00
flake-utils.url = "github:numtide/flake-utils";
2022-12-06 01:24:54 -05:00
};
2023-02-04 12:38:36 -05:00
outputs = { self, nixpkgs, home-manager, hyprland, flake-utils, ... }:
2022-12-19 17:55:54 -05:00
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
2022-12-06 01:24:54 -05:00
};
2022-12-06 21:36:50 -05:00
2022-12-19 17:55:54 -05:00
lib = nixpkgs.lib;
in {
nixosConfigurations = {
2023-01-31 12:48:05 -05:00
tsuki = lib.nixosSystem {
2022-12-19 17:55:54 -05:00
inherit system;
modules = [
2023-02-04 12:38:36 -05:00
./hosts/tsuki
2022-12-19 17:55:54 -05:00
hyprland.nixosModules.default
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2023-02-04 12:38:36 -05:00
home-manager.users.notoh = {
imports = [
hyprland.homeManagerModules.default
./modules/home/home.nix
];
};
2022-12-19 17:55:54 -05:00
}
];
2022-12-06 01:24:54 -05:00
};
2022-12-20 19:17:37 -05:00
};
2023-01-31 12:57:48 -05:00
nixosConfigurations = {
hime = lib.nixosSystem {
inherit system;
modules = [
2023-02-04 12:38:36 -05:00
./hosts/hime
2023-01-31 12:57:48 -05:00
];
};
};
2022-12-06 01:24:54 -05:00
};
}