Last active 1729089944

flake-with-overlay.nix Raw
1{
2 description = "My Flake";
3
4 inputs = {
5 nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
6
7 # Home-manager setup
8 home-manager = {
9 url = "github:nix-community/home-manager";
10 inputs.nixpkgs.follows = "nixpkgs";
11 };
12
13 # Hyprland url flake
14 # hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
15
16 # Gruvbox GRUB theme
17 tartarus-grub = {
18 url = "github:AllJavi/tartarus-grub";
19 flake = false;
20 };
21
22 # Catppuccin-bat
23 gruvbox-bat = {
24 url = "github:molchalin/gruvbox-material-bat";
25 flake = false;
26 };
27
28 # Nix colors for a good and easy rice
29 nix-colors.url = "github:misterio77/nix-colors";
30
31 # AGS for awesome widgets
32 ags.url = "github:Aylur/ags";
33
34 # Neovim toggleterm plugin by akinsho
35 plugin-terminal = {
36 url = "github:akinsho/toggleterm.nvim";
37 flake = false;
38 };
39 };
40
41 outputs = { self, nixpkgs, home-manager, ... }@inputs:
42 let
43 system = "x86_64-linux";
44 pkgs = import inputs.nixpkgs {
45 inherit system;
46 overlays = [
47 (final: prev: {
48 cliphist = prev.cliphist.overrideAttrs (_old: {
49 src = final.fetchFromGitHub {
50 owner = "sentriz";
51 repo = "cliphist";
52 rev = "c49dcd26168f704324d90d23b9381f39c30572bd";
53 sha256 = "sha256-2mn55DeF8Yxq5jwQAjAcvZAwAg+pZ4BkEitP6S2N0HY=";
54 };
55 vendorHash =
56 "sha256-M5n7/QWQ5POWE4hSCMa0+GOVhEDCOILYqkSYIGoy/l0=";
57 });
58 })
59 ];
60 };
61 in {
62 nixosConfigurations = {
63 mynixos = nixpkgs.lib.nixosSystem {
64 inherit system pkgs;
65 specialArgs = { inherit inputs; };
66
67 modules = [
68 ./host
69
70 home-manager.nixosModules.home-manager
71 {
72 home-manager = {
73 useGlobalPkgs = true;
74 useUserPackages = true;
75 extraSpecialArgs = { inherit inputs; };
76 users."chris" = import ./home;
77 };
78 }
79 ];
80 };
81 };
82 };
83}
84