kdmorris revised this gist . Go to revision
1 file changed, 5 insertions, 8 deletions
flake-with-overlay.nix
| @@ -45,18 +45,15 @@ | |||
| 45 | 45 | inherit system; | |
| 46 | 46 | overlays = [ | |
| 47 | 47 | (final: prev: { | |
| 48 | - | cliphist = prev.cliphist.overrideAttrs (old: { | |
| 49 | - | version = "0.6.1"; | |
| 50 | - | src = prev.fetchFromGitHub { | |
| 48 | + | cliphist = prev.cliphist.overrideAttrs (_old: { | |
| 49 | + | src = final.fetchFromGitHub { | |
| 51 | 50 | owner = "sentriz"; | |
| 52 | 51 | repo = "cliphist"; | |
| 53 | - | rev = "refs/tags/v${version}"; | |
| 54 | - | hash = "sha256-tImRbWjYCdIY8wVMibc5g5/qYZGwgT9pl4pWvY7BDlI="; | |
| 52 | + | rev = "c49dcd26168f704324d90d23b9381f39c30572bd"; | |
| 53 | + | sha256 = "sha256-2mn55DeF8Yxq5jwQAjAcvZAwAg+pZ4BkEitP6S2N0HY="; | |
| 55 | 54 | }; | |
| 56 | 55 | vendorHash = | |
| 57 | - | "sha256-gG8v3JFncadfCEUa7iR6Sw8nifFNTciDaeBszOlGntU="; | |
| 58 | - | ||
| 59 | - | passthru = { updateScript = nix-update-script { }; }; | |
| 56 | + | "sha256-M5n7/QWQ5POWE4hSCMa0+GOVhEDCOILYqkSYIGoy/l0="; | |
| 60 | 57 | }); | |
| 61 | 58 | }) | |
| 62 | 59 | ]; | |
kdmorris revised this gist . Go to revision
1 file changed, 86 insertions
flake-with-overlay.nix(file created)
| @@ -0,0 +1,86 @@ | |||
| 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 | + | version = "0.6.1"; | |
| 50 | + | src = prev.fetchFromGitHub { | |
| 51 | + | owner = "sentriz"; | |
| 52 | + | repo = "cliphist"; | |
| 53 | + | rev = "refs/tags/v${version}"; | |
| 54 | + | hash = "sha256-tImRbWjYCdIY8wVMibc5g5/qYZGwgT9pl4pWvY7BDlI="; | |
| 55 | + | }; | |
| 56 | + | vendorHash = | |
| 57 | + | "sha256-gG8v3JFncadfCEUa7iR6Sw8nifFNTciDaeBszOlGntU="; | |
| 58 | + | ||
| 59 | + | passthru = { updateScript = nix-update-script { }; }; | |
| 60 | + | }); | |
| 61 | + | }) | |
| 62 | + | ]; | |
| 63 | + | }; | |
| 64 | + | in { | |
| 65 | + | nixosConfigurations = { | |
| 66 | + | mynixos = nixpkgs.lib.nixosSystem { | |
| 67 | + | inherit system pkgs; | |
| 68 | + | specialArgs = { inherit inputs; }; | |
| 69 | + | ||
| 70 | + | modules = [ | |
| 71 | + | ./host | |
| 72 | + | ||
| 73 | + | home-manager.nixosModules.home-manager | |
| 74 | + | { | |
| 75 | + | home-manager = { | |
| 76 | + | useGlobalPkgs = true; | |
| 77 | + | useUserPackages = true; | |
| 78 | + | extraSpecialArgs = { inherit inputs; }; | |
| 79 | + | users."chris" = import ./home; | |
| 80 | + | }; | |
| 81 | + | } | |
| 82 | + | ]; | |
| 83 | + | }; | |
| 84 | + | }; | |
| 85 | + | }; | |
| 86 | + | } | |