2024-04-28 11:35:35 +02:00
|
|
|
{
|
|
|
|
description = "A simple NixOS flake";
|
|
|
|
|
|
|
|
inputs = {
|
2024-06-11 20:09:58 +02:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; # default packages
|
2024-04-28 11:35:35 +02:00
|
|
|
nixpkgs-unstable.url = "nixpkgs/nixos-unstable"; # unstable branch for newer packages
|
|
|
|
|
|
|
|
home-manager = {
|
2024-06-11 20:09:58 +02:00
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
2024-04-28 11:35:35 +02:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-06-11 20:09:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nvidia-patch = {
|
|
|
|
url = "github:icewind1991/nvidia-patch-nixos";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-05-28 02:36:04 +02:00
|
|
|
dttyper.url = "git+https://git.4o1x5.dev/4o1x5/dttyper";
|
|
|
|
romodoro.url = "path:/home/grape/code/romodoro";
|
2024-06-11 20:09:58 +02:00
|
|
|
nixvim = {
|
|
|
|
url = "github:nix-community/nixvim/nixos-24.05";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-04-28 11:35:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
{ self
|
|
|
|
, nixpkgs
|
|
|
|
, home-manager
|
|
|
|
, nixpkgs-unstable
|
|
|
|
, nvidia-patch
|
2024-05-28 02:36:04 +02:00
|
|
|
, dttyper
|
|
|
|
, romodoro
|
2024-06-11 20:09:58 +02:00
|
|
|
, nixvim
|
2024-04-28 11:35:35 +02:00
|
|
|
, ...
|
2024-05-28 02:36:04 +02:00
|
|
|
}@inputs:
|
2024-04-28 11:35:35 +02:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
overlay-unstable = final: prev: {
|
|
|
|
unstable = nixpkgs-unstable.legacyPackages.${prev.system};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
nixosConfigurations.strix = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
2024-05-28 02:36:04 +02:00
|
|
|
specialArgs.inputs = inputs;
|
2024-04-28 11:35:35 +02:00
|
|
|
modules = [
|
|
|
|
# adding unstable overlay
|
|
|
|
({ config, pkgs, ... }: {
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
overlay-unstable
|
|
|
|
nvidia-patch.overlays.default
|
|
|
|
];
|
|
|
|
})
|
2024-05-28 02:36:04 +02:00
|
|
|
|
2024-04-28 11:35:35 +02:00
|
|
|
./system/drivers/shitvidia-patch.nix
|
|
|
|
./configuration.nix
|
2024-06-11 20:09:58 +02:00
|
|
|
nixvim.nixosModules.nixvim
|
2024-04-28 11:35:35 +02:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-05-28 02:36:04 +02:00
|
|
|
|
2024-04-28 11:35:35 +02:00
|
|
|
};
|
|
|
|
}
|