nix/flake.nix
2023-05-08 17:02:57 +01:00

51 lines
1.3 KiB
Nix

{
description = "A flake using my config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";
};
};
outputs = { nixpkgs, home-manager, hyprland, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
lib = nixpkgs.lib;
mkConf = import ./lib/mkconf.nix;
user = "tristan";
userName = "Tristan Beedell";
in
{
nixosConfigurations = {
zenix = mkConf "zenix" {
inherit pkgs nixpkgs system user userName home-manager hyprland;
displays = [
{
name = "DP-1";
resolution = {x=1920;y=1080;freq=144;};
wallpaper = "~/Pictures/backgrounds/demonslayer.jpg";
}
{
name = "HDMI-A-1";
resolution = {x=1920;y=1080;freq=60;};
wallpaper = "~/Pictures/backgrounds/nier.jpg";
}
];
};
FCS-Tristan-Nixbook = mkConf "work" {
inherit pkgs nixpkgs system user userName home-manager hyprland;
laptop = true;
work = true;
};
};
};
}