snowflake/flake.nix

38 lines
982 B
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";
2022-12-06 01:24:54 -05:00
};
2022-12-19 17:55:54 -05:00
outputs = { self, nixpkgs, home-manager, hyprland, ... }:
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 = {
nixos = lib.nixosSystem {
inherit system;
modules = [
2023-01-31 12:18:27 -05:00
./hosts/tsuki/default.nix
2022-12-19 17:55:54 -05:00
hyprland.nixosModules.default
{programs.hyprland.enable = true;}
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2023-01-30 06:13:55 -05:00
home-manager.users.notoh = import ./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
};
2022-12-06 01:24:54 -05:00
};
}