flakes/flake.nix

110 lines
4.4 KiB
Nix
Raw Normal View History

2021-05-11 14:32:58 +07:00
{
inputs = {
flake: bump inputs • Updated input 'agenix': 'github:ryantm/agenix/db5637d10f797bb251b94ef9040b237f4702cde3' (2023-05-15) → 'github:ryantm/agenix/d8c973fd228949736dedf61b7f8cc1ece3236792' (2023-07-24) • Updated input 'discover': 'github:trigg/Discover/54145380526844bc28e879dba98454ceede5dff3' (2023-05-29) → 'github:trigg/Discover/a1fa03d0a50c8d6f3a6e7b7cbd4b6362c76060ce' (2023-07-28) • Updated input 'fast-syntax-highlighting': 'github:zdharma-continuum/fast-syntax-highlighting/13d7b4e63468307b6dcb2dadf6150818f242cbff' (2023-04-03) → 'github:zdharma-continuum/fast-syntax-highlighting/cf318e06a9b7c9f2219d78f41b46fa6e06011fd9' (2023-07-05) • Updated input 'home-manager': 'github:nix-community/home-manager/28c823032cabfaa340a09e1d84cf45d11375c644' (2023-06-18) → 'github:nix-community/home-manager/6a20e40acaebf067da682661aa67da8b36812606' (2023-08-23) • Updated input 'hosts-blocklists': 'github:notracking/hosts-blocklists/4041ff1b7c3a5d64e620c773686f58220546a4b7' (2023-06-18) → 'github:notracking/hosts-blocklists/2ab426e806985d0d3d1c3eb447d7e772a836e10d' (2023-06-26) • Updated input 'linux-tkg': 'github:Frogging-Family/linux-tkg/e6c1edf94343082d087835f9ab6474cbc9ecfeb9' (2023-06-17) → 'github:Frogging-Family/linux-tkg/f10d9c21028ce5f8a8da250d51833e08d2ef91b3' (2023-08-22) • Updated input 'neovim-nightly': 'github:nix-community/neovim-nightly-overlay/3ae2212fba5d95751a6c72cacc8d4da0f98e4eb8' (2023-06-18) → 'github:nix-community/neovim-nightly-overlay/83d68ba72f3308b5c90b12fb40044c870903e6ee' (2023-08-23) • Updated input 'neovim-nightly/flake-parts': 'github:hercules-ci/flake-parts/71fb97f0d875fd4de4994dfb849f2c75e17eb6c3' (2023-06-01) → 'github:hercules-ci/flake-parts/59cf3f1447cfc75087e7273b04b31e689a8599fb' (2023-08-01) • Updated input 'neovim-nightly/hercules-ci-effects': 'github:hercules-ci/hercules-ci-effects/04e4ab63b9eed2452edee1bb698827e1cb8265c6' (2023-06-15) → 'github:hercules-ci/hercules-ci-effects/0a63bfa3f00a3775ea3a6722b247880f1ffe91ce' (2023-07-15) • Updated input 'neovim-nightly/hercules-ci-effects/flake-parts': 'github:hercules-ci/flake-parts/71fb97f0d875fd4de4994dfb849f2c75e17eb6c3' (2023-06-01) → 'github:hercules-ci/flake-parts/8e8d955c22df93dbe24f19ea04f47a74adbdc5ec' (2023-07-04) • Updated input 'neovim-nightly/hercules-ci-effects/flake-parts/nixpkgs-lib': 'github:NixOS/nixpkgs/4f53efe34b3a8877ac923b9350c874e3dcd5dc0a?dir=lib' (2023-05-31) → 'github:NixOS/nixpkgs/4bc72cae107788bf3f24f30db2e2f685c9298dc9?dir=lib' (2023-06-29) • Updated input 'neovim-nightly/hercules-ci-effects/hercules-ci-agent': 'github:hercules-ci/hercules-ci-agent/7192b83935ab292a8e894db590dfd44f976e183b' (2023-06-14) → 'github:hercules-ci/hercules-ci-agent/367dd8cd649b57009a6502e878005a1e54ad78c5' (2023-07-05) • Updated input 'neovim-nightly/hercules-ci-effects/hercules-ci-agent/flake-parts': 'github:hercules-ci/flake-parts/71fb97f0d875fd4de4994dfb849f2c75e17eb6c3' (2023-06-01) → 'github:hercules-ci/flake-parts/8e8d955c22df93dbe24f19ea04f47a74adbdc5ec' (2023-07-04) • Updated input 'neovim-nightly/hercules-ci-effects/hercules-ci-agent/nixpkgs': 'github:NixOS/nixpkgs/75a5ebf473cd60148ba9aec0d219f72e5cf52519' (2023-06-11) → 'github:NixOS/nixpkgs/0fbe93c5a7cac99f90b60bdf5f149383daaa615f' (2023-07-02) • Updated input 'neovim-nightly/neovim-flake': 'github:neovim/neovim/7e301ed5b9f72a98086c7004d090ad9aef137485?dir=contrib' (2023-06-17) → 'github:neovim/neovim/6462ee1c10f9f1aa66ffc4d4fe1b7b3d9f0f91af?dir=contrib' (2023-08-22) • Updated input 'nix-gaming': 'github:fufexan/nix-gaming/9c7595826e2eeb2ba166430d03b5a9ca4e5c0e6c' (2023-06-18) → 'github:fufexan/nix-gaming/830fe7f67b87973095c8ff904198d61e4887b031' (2023-08-23) • Updated input 'nix-gaming/flake-parts': 'github:hercules-ci/flake-parts/71fb97f0d875fd4de4994dfb849f2c75e17eb6c3' (2023-06-01) → 'github:hercules-ci/flake-parts/59cf3f1447cfc75087e7273b04b31e689a8599fb' (2023-08-01) • Updated input 'nix-gaming/flake-parts/nixpkgs-lib': 'github:NixOS/nixpkgs/4f53efe34b3a8877ac923b9350c874e3dcd5dc0a?dir=lib' (2023-05-31) → 'github:NixOS/nixpkgs/9e1960bc196baf6881340d53dccb203a951745a2?dir=lib' (2023-08-01) • Updated input 'nix-gaming/nixpkgs': 'github:NixOS/nixpkgs/7e63eed145566cca98158613f3700515b4009ce3' (2023-06-12) → 'github:NixOS/nixpkgs/ca3c9ac9f4cdd4bea19f592b32bb59b74ab7d783' (2023-08-19) • Updated input 'nixos-generators': 'github:nix-community/nixos-generators/a54683aa7eff00ee5b33dec225525d0eb6ab02de' (2023-06-16) → 'github:nix-community/nixos-generators/b1171de4d362c022130c92d7c8adc4bf2b83d586' (2023-07-23) • Updated input 'nixos-generators/nixlib': 'github:nix-community/nixpkgs.lib/961e99baaaa57f5f7042fe7ce089a88786c839f4' (2023-06-04) → 'github:nix-community/nixpkgs.lib/02fea408f27186f139153e1ae88f8ab2abd9c22c' (2023-07-16) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/429f232fe1dc398c5afea19a51aad6931ee0fb89' (2023-06-15) → 'github:NixOS/nixos-hardware/7f1836531b126cfcf584e7d7d71bf8758bb58969' (2023-08-18) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/44acd64171d440c3d91709a194bf35d6461e16c4' (2023-06-18) → 'github:NixOS/nixpkgs/27c6502cb974e6ad610baaeeba162acd3536ec45' (2023-08-24) • Updated input 'nixpkgs-raccoon': 'github:NixOS/nixpkgs/93fddcf640ceca0be331210ba3101cee9d91c13d' (2023-06-16) → 'github:NixOS/nixpkgs/ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b' (2023-07-03) • Updated input 'nvim-treesitter': 'github:nvim-treesitter/nvim-treesitter/d0d57ce5e74437f9281ecb700650b49e5c334031' (2023-06-18) → 'github:nvim-treesitter/nvim-treesitter/31f608e47b838594d32a7bc42028e2cefd0ddaad' (2023-08-24) • Updated input 'packwiz': 'github:comp500/packwiz/cbd38b3b73bb1e428c183025b5e1d9e785b6c040' (2023-05-31) → 'github:comp500/packwiz/ac6a590f526c8e253acf9e99d6e89d66db1c0d1d' (2023-08-19) • Updated input 'pure': 'github:sindresorhus/pure/2f13dea466466dde1ba844ba5211e7556f4ae2db' (2023-01-06) → 'github:sindresorhus/pure/87e6f5dd4c793f6d980532205aaefe196780606f' (2023-06-25) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/2de557c780dcb127128ae987fca9d6c2b0d7dc0f' (2023-06-18) → 'github:oxalica/rust-overlay/8f6d56270ec028a340583111609b12663f5d7490' (2023-08-24) • Updated input 'spicetify-nix': 'github:the-argus/spicetify-nix/f024752b691ac2dcb2ad378d72a2e3084ce83b79' (2023-06-07) → 'github:the-argus/spicetify-nix/96a7cb1b6b13d44b4c23fb4228cc28206c22d09f' (2023-08-23) • Updated input 'spicetify-themes': 'github:spicetify/spicetify-themes/fba1a2971b8fd0cfa859e5901a724abbdd778e5b' (2023-06-22) → 'github:spicetify/spicetify-themes/7e9e898124c96f115dc61fb91d0499ae81f56892' (2023-08-17) • Updated input 'spotify-adblock': 'github:abba23/spotify-adblock/22847a7bfa87edf4ca58ee950fd8977d20f0d337' (2023-04-09) → 'github:abba23/spotify-adblock/5a3281dee9f889afdeea7263558e7a715dcf5aab' (2023-07-21) • Updated input 'wine-discord-ipc-bridge': 'github:0e4ef622/wine-discord-ipc-bridge/8da2e9c494ba99f6dca90797611813f5247a13b2' (2023-04-23) → 'github:0e4ef622/wine-discord-ipc-bridge/f8198c9d52e708143301017a296f7557c4387127' (2023-08-09)
2023-08-24 21:07:07 +07:00
nixpkgs.url = "github:NixOS/nixpkgs";
2022-11-27 14:30:59 +07:00
nixpkgs-raccoon.url = "github:NixOS/nixpkgs/nixos-22.11";
2021-07-04 21:25:20 +07:00
home-manager.url = "github:nix-community/home-manager";
2022-11-27 14:30:59 +07:00
home-manager-raccoon.url = "github:nix-community/home-manager/release-22.11";
2021-07-05 10:40:52 +07:00
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
2022-02-02 00:50:39 +07:00
nixos-hardware.url = "github:NixOS/nixos-hardware";
2021-09-20 15:09:44 +07:00
agenix.url = "github:ryantm/agenix";
nixos-generators.url = "github:nix-community/nixos-generators";
2023-01-23 22:18:27 +07:00
spicetify-nix.url = "github:the-argus/spicetify-nix";
2021-09-20 15:09:44 +07:00
agenix.inputs.nixpkgs.follows = "nixpkgs";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2022-11-27 14:30:59 +07:00
home-manager-raccoon.inputs.nixpkgs.follows = "nixpkgs-raccoon";
2021-07-05 10:40:52 +07:00
neovim-nightly.inputs.nixpkgs.follows = "nixpkgs";
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
2023-01-23 22:18:27 +07:00
spicetify-nix.inputs.nixpkgs.follows = "nixpkgs";
2021-07-14 11:02:42 +07:00
2021-09-04 14:14:42 +07:00
nix-gaming.url = "github:fufexan/nix-gaming";
2022-02-14 18:34:46 +07:00
# services
2022-02-24 13:07:46 +07:00
hosts-blocklists = { url = "github:notracking/hosts-blocklists"; flake = false; };
2022-02-14 18:34:46 +07:00
website = { url = "github:LavaDesu/lavadesu.github.io/master"; flake = false; };
2023-06-22 23:34:14 +07:00
spicetify-themes = { url = "github:spicetify/spicetify-themes"; flake = false; };
2022-02-14 18:34:46 +07:00
2021-07-14 11:02:42 +07:00
# zsh plugins
zsh-abbr = { url = "github:olets/zsh-abbr"; flake = false; };
zsh-history-substring-search = { url = "github:zsh-users/zsh-history-substring-search"; flake = false; };
fast-syntax-highlighting = { url = "github:zdharma-continuum/fast-syntax-highlighting"; flake = false; };
2021-07-15 14:59:23 +07:00
pure = { url = "github:sindresorhus/pure"; flake = false; };
2021-07-18 14:10:58 +07:00
# overlays
discord-tokyonight = { url = "github:DanisDGK/zelk-customizations"; flake = false; };
2021-07-18 14:10:58 +07:00
discover = { url = "github:trigg/Discover"; flake = false; };
linux-tkg = { url = "github:Frogging-Family/linux-tkg"; flake = false; };
nvim-treesitter = { url = "github:nvim-treesitter/nvim-treesitter"; flake = false; };
2021-10-10 14:03:12 +07:00
packwiz = { url = "github:comp500/packwiz"; flake = false; };
2021-09-19 11:31:11 +07:00
spotify-adblock = { url = "github:abba23/spotify-adblock"; flake = false; };
2021-09-05 11:36:43 +07:00
tree-sitter-glimmer = { url = "github:alexlafroscia/tree-sitter-glimmer"; flake = false; };
2021-09-05 15:57:23 +07:00
tree-sitter-jsonc = { url = "gitlab:WhyNotHugo/tree-sitter-jsonc"; flake = false; };
2021-12-23 22:43:50 +07:00
wine-discord-ipc-bridge = { url = "github:0e4ef622/wine-discord-ipc-bridge"; flake = false; };
# shells
rust-overlay.url = "github:oxalica/rust-overlay";
rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
2021-05-11 14:32:58 +07:00
};
2022-12-02 21:31:37 +07:00
outputs = { self, agenix, nixos-generators, nixpkgs, nixpkgs-raccoon, ... } @ inputs:
2021-05-13 17:59:46 +07:00
let
overlays = (import ./overlays)
++ [(final: prev: {
me = prev.callPackage ./packages { inherit inputs; } // { inherit inputs; };
})];
mkSystem =
if !(self ? rev) then throw "Dirty git tree detected." else
nixpkgs: name: arch: enableGUI: extraModules: nixpkgs.lib.nixosSystem {
system = arch;
modules = [
{ nixpkgs.overlays = overlays; }
2021-09-20 15:09:44 +07:00
agenix.nixosModules.age
(./hosts + "/${name}")
] ++ extraModules;
2022-02-02 00:21:37 +07:00
specialArgs = {
inherit inputs enableGUI;
modules = import ./modules { lib = nixpkgs.lib; };
};
};
2021-05-13 17:59:46 +07:00
in
{
nixosConfigurations."blossom" = mkSystem nixpkgs "blossom" "x86_64-linux" true [];
2023-01-28 00:12:28 +07:00
nixosConfigurations."hyacinth" = mkSystem nixpkgs "hyacinth" "x86_64-linux" true [];
2021-07-15 13:39:48 +07:00
2022-11-27 14:30:59 +07:00
nixosConfigurations."caramel" = mkSystem nixpkgs-raccoon "caramel" "aarch64-linux" false [{
nixpkgs.overlays = [
(self: super: {
makeModulesClosure = x: super.makeModulesClosure (x // { allowMissing = true; });
})
];
}];
2022-12-02 21:31:37 +07:00
nixosConfigurations."sugarcane" = mkSystem nixpkgs-raccoon "sugarcane" "x86_64-linux" false [];
2022-02-02 00:50:39 +07:00
packages."x86_64-linux" =
let
pkgs = import nixpkgs {
inherit overlays;
system = "x86_64-linux";
};
in
{
inherit (pkgs.me) linux-lava;
};
packages."aarch64-linux" =
let
2022-11-27 14:30:59 +07:00
pkgs = import nixpkgs-raccoon {
inherit overlays;
system = "aarch64-linux";
};
in
{
2022-08-10 13:52:13 +07:00
caramel-img = self.nixosConfigurations."caramel".config.system.build.sdImage;
};
# TODO: currently broken
# devShells.x86_64-linux = pkgs.callPackage ./shells { inherit inputs; };
2021-05-11 14:32:58 +07:00
};
}