40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{
|
|
description = "NixOS flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
|
unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
ghostty = {
|
|
url = "github:ghostty-org/ghostty";
|
|
};
|
|
nix-snapd.url = "github:nix-community/nix-snapd";
|
|
nix-snapd.inputs.nixpkgs.follows = "nixpkgs";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-24.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, unstable, ghostty, nix-snapd, home-manager, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
lib = nixpkgs.lib;
|
|
pkgs-unstable = unstable.legacyPackages.${system};
|
|
in
|
|
{
|
|
nixosConfigurations.limgrave = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit pkgs-unstable; };
|
|
modules = [
|
|
./configuration.nix
|
|
nix-snapd.nixosModules.default
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
environment.systemPackages = [
|
|
ghostty.packages.x86_64-linux.default
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|