dotfiles/etc/flake.nix

66 lines
1.8 KiB
Nix
Raw Normal View History

2024-04-28 11:35:35 +02:00
{
description = "A simple NixOS flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; # default packages
nixpkgs-unstable.url = "nixpkgs/nixos-unstable"; # unstable branch for newer packages
2024-05-18 01:10:04 +02:00
agenix.url = "github:ryantm/agenix";
2024-04-28 11:35:35 +02:00
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
}; # home manger for more customization
# adding nvidia-patch for nvenc and nvfvc
nvidia-patch.url = "github:icewind1991/nvidia-patch-nixos";
nvidia-patch.inputs.nixpkgs.follows = "nixpkgs";
dttyper.url = "git+https://git.4o1x5.dev/4o1x5/dttyper";
#romodoro.url = "git+https://git.4o1x5.dev/4o1x5/romodoro";
romodoro.url = "path:/home/grape/code/romodoro";
#dttyper.url = "git+https://git.somehost.tld/user/path?ref=branch";
2024-04-28 11:35:35 +02:00
};
outputs =
{ self
, nixpkgs
, home-manager
, nixpkgs-unstable
, nvidia-patch
, dttyper
, romodoro
2024-04-28 11:35:35 +02:00
, ...
}@inputs:
2024-04-28 11:35:35 +02:00
let
system = "x86_64-linux";
#colors = import ./configs/colors.nix;
overlay-unstable = final: prev: {
unstable = nixpkgs-unstable.legacyPackages.${prev.system};
};
in
{
nixosConfigurations.strix = nixpkgs.lib.nixosSystem {
inherit system;
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
];
})
#dttyper.nixosModules.default
2024-04-28 11:35:35 +02:00
./system/drivers/shitvidia-patch.nix
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
];
};
2024-04-28 11:35:35 +02:00
};
}