2005
0be41fd01a
its kind of uneven right now thats kind of bothering me but I'll add more modules new keybinds and scripts for timewarrior (i3, polybar)
66 lines
1.8 KiB
Nix
Executable file
66 lines
1.8 KiB
Nix
Executable file
{
|
|
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
|
|
agenix.url = "github:ryantm/agenix";
|
|
|
|
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";
|
|
};
|
|
|
|
outputs =
|
|
{ self
|
|
, nixpkgs
|
|
, home-manager
|
|
, nixpkgs-unstable
|
|
, nvidia-patch
|
|
, dttyper
|
|
, romodoro
|
|
, ...
|
|
}@inputs:
|
|
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;
|
|
modules = [
|
|
# adding unstable overlay
|
|
({ config, pkgs, ... }: {
|
|
nixpkgs.overlays = [
|
|
overlay-unstable
|
|
nvidia-patch.overlays.default
|
|
];
|
|
})
|
|
|
|
#dttyper.nixosModules.default
|
|
./system/drivers/shitvidia-patch.nix
|
|
./configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
}
|
|
];
|
|
};
|
|
|
|
|
|
};
|
|
}
|