2022-01-28 14:25:01 +00:00
|
|
|
{
|
2022-04-06 15:20:16 +00:00
|
|
|
nixConfig = {
|
|
|
|
experimental-features = "nix-command flakes";
|
|
|
|
substitute = "true";
|
2022-05-08 19:57:26 +00:00
|
|
|
extra-substituters = "https://cache.nixos.org https://nixpkgs-wayland.cachix.org https://nix-community.cachix.org https://statix.cachix.org https://nixpkgs-update.cachix.org https://colmena.cachix.org";
|
|
|
|
extra-trusted-public-keys = "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= statix.cachix.org-1:Z9E/g1YjCjU117QOOt07OjhljCoRZddiAm4VVESvais= nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8= colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg=";
|
2022-05-12 22:12:54 +00:00
|
|
|
cores = 0;
|
|
|
|
max-jobs = 8;
|
2022-06-25 02:42:36 +00:00
|
|
|
netrc-file = "/home/mrhedgehog/.netrc";
|
2022-04-06 15:20:16 +00:00
|
|
|
};
|
2022-06-25 02:43:17 +00:00
|
|
|
description = "The Hedgehog's Nix config with flakes";
|
2022-01-29 18:43:43 +00:00
|
|
|
inputs = {
|
2022-05-05 14:09:04 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
2022-03-30 01:57:59 +00:00
|
|
|
nixos-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2022-01-29 18:43:43 +00:00
|
|
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
2022-02-07 20:06:51 +00:00
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
|
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
2022-02-07 01:24:15 +00:00
|
|
|
alejandra.url = "github:kamadorueda/alejandra";
|
|
|
|
alejandra.inputs.nixpkgs.follows = "nixpkgs";
|
2022-02-07 11:37:56 +00:00
|
|
|
doom-emacs.url = "github:nix-community/nix-doom-emacs";
|
|
|
|
doom-emacs.inputs.nixpkgs.follows = "nixpkgs";
|
2022-05-16 22:36:56 +00:00
|
|
|
emacs.url = "github:nix-community/emacs-overlay";
|
2022-03-30 01:57:59 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2022-01-29 18:43:43 +00:00
|
|
|
neovim.url = "github:nix-community/neovim-nightly-overlay";
|
2022-04-06 15:20:16 +00:00
|
|
|
nix-colors.url = "sourcehut:~misterio/nix-colors";
|
2022-02-11 18:10:00 +00:00
|
|
|
nixgl.url = "github:guibou/nixGL";
|
|
|
|
nixgl.inputs.nixpkgs.follows = "nixpkgs";
|
2022-04-06 15:20:16 +00:00
|
|
|
nixos-generators.url = "github:nix-community/nixos-generators/kexec-bundle";
|
2022-04-01 18:46:27 +00:00
|
|
|
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
|
2022-02-17 19:49:06 +00:00
|
|
|
nixpkgs-update.url = "github:ryantm/nixpkgs-update";
|
2022-02-07 01:24:15 +00:00
|
|
|
nur.url = "github:nix-community/nur";
|
|
|
|
nur.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
statix.url = "github:NerdyPepper/statix";
|
|
|
|
statix.inputs.nixpkgs.follows = "nixpkgs";
|
2022-06-09 21:07:43 +00:00
|
|
|
tokyo-night-ff.url = "github:rototrash/firefox-css";
|
2022-03-24 22:03:59 +00:00
|
|
|
tokyo-night-ff.flake = false;
|
2022-02-09 18:40:36 +00:00
|
|
|
vim-plugins.url = "github:m15a/nixpkgs-vim-extra-plugins";
|
|
|
|
vim-plugins.inputs.nixpkgs.follows = "nixpkgs";
|
2022-02-07 01:24:15 +00:00
|
|
|
wayland.url = "github:nix-community/nixpkgs-wayland";
|
2022-01-29 18:43:43 +00:00
|
|
|
};
|
2022-03-16 10:43:47 +00:00
|
|
|
|
2022-02-27 20:57:58 +00:00
|
|
|
outputs = inputs @ {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
2022-03-30 01:57:59 +00:00
|
|
|
nixos-unstable,
|
2022-02-27 20:57:58 +00:00
|
|
|
nixos-hardware,
|
|
|
|
agenix,
|
|
|
|
alejandra,
|
|
|
|
doom-emacs,
|
|
|
|
emacs,
|
2022-03-30 01:57:59 +00:00
|
|
|
home-manager,
|
2022-02-27 20:57:58 +00:00
|
|
|
neovim,
|
2022-04-06 15:20:16 +00:00
|
|
|
nix-colors,
|
2022-02-27 20:57:58 +00:00
|
|
|
nixgl,
|
2022-04-01 18:46:27 +00:00
|
|
|
nixos-generators,
|
2022-02-27 20:57:58 +00:00
|
|
|
nixpkgs-update,
|
|
|
|
nur,
|
|
|
|
statix,
|
2022-03-24 22:03:59 +00:00
|
|
|
tokyo-night-ff,
|
2022-02-27 20:57:58 +00:00
|
|
|
vim-plugins,
|
|
|
|
wayland,
|
|
|
|
}: let
|
2022-03-16 10:43:47 +00:00
|
|
|
alejandra-overlay = final: prev: {alejandra = alejandra.defaultPackage.${prev.system};};
|
2022-02-27 20:57:58 +00:00
|
|
|
nixpkgs-update-overlay = final: prev: {nixpkgs-update = nixpkgs-update.defaultPackage.${prev.system};};
|
|
|
|
my-pkgs = final: prev: {my-pkgs = self.packages."${prev.system}";};
|
2022-03-16 10:43:47 +00:00
|
|
|
|
2022-02-27 20:57:58 +00:00
|
|
|
system = "x86_64-linux";
|
2022-03-16 10:43:47 +00:00
|
|
|
|
2022-02-27 20:57:58 +00:00
|
|
|
pkgs = import nixpkgs {
|
2022-03-29 22:12:22 +00:00
|
|
|
# inherit system;
|
|
|
|
localSystem = "x86_64-linux";
|
2022-03-16 10:43:47 +00:00
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
input-fonts.acceptLicense = true;
|
|
|
|
};
|
2022-02-27 20:57:58 +00:00
|
|
|
overlays = [
|
2022-04-30 15:03:03 +00:00
|
|
|
# (import ./pkgs/default.nix {inherit inputs;})
|
|
|
|
(import ./overlays/sumneko.nix)
|
2022-02-27 20:57:58 +00:00
|
|
|
my-pkgs
|
|
|
|
alejandra-overlay
|
2022-05-12 22:12:54 +00:00
|
|
|
emacs.overlay
|
2022-02-27 20:57:58 +00:00
|
|
|
neovim.overlay
|
|
|
|
nixgl.overlay
|
|
|
|
nixpkgs-update-overlay
|
|
|
|
nur.overlay
|
|
|
|
statix.overlay
|
|
|
|
vim-plugins.overlay
|
2022-05-08 19:57:26 +00:00
|
|
|
wayland.overlays.default
|
2022-02-27 20:57:58 +00:00
|
|
|
];
|
|
|
|
};
|
2022-03-16 10:43:47 +00:00
|
|
|
|
2022-04-06 15:20:16 +00:00
|
|
|
lib = nixpkgs.lib;
|
2022-02-27 20:57:58 +00:00
|
|
|
in {
|
|
|
|
packages.${system} = {
|
2022-04-06 15:20:16 +00:00
|
|
|
"nerdfont-symbols" = pkgs.callPackage ./pkgs/nerdfont-symbols.nix {};
|
2022-02-27 20:57:58 +00:00
|
|
|
"sway-launcher-desktop" = pkgs.callPackage ./pkgs/sway-launcher-desktop.nix {};
|
|
|
|
"taskwarrior-tui" = pkgs.callPackage ./pkgs/taskwarrior-tui.nix {};
|
2022-03-24 22:03:59 +00:00
|
|
|
"tokyo-night-gtk" = pkgs.callPackage ./pkgs/tokyo-night-gtk.nix {};
|
2022-06-09 21:07:43 +00:00
|
|
|
"pywalfox" = pkgs.callPackage ./pkgs/pywalfox.nix {};
|
2022-06-11 18:41:55 +00:00
|
|
|
"ory-hydra" = pkgs.callPackage ./pkgs/ory-hydra.nix {};
|
2022-06-12 20:24:07 +00:00
|
|
|
"radicale-htpasswd" = pkgs.callPackage ./pkgs/radicale-htpasswd.nix {};
|
2022-02-27 20:57:58 +00:00
|
|
|
};
|
2022-02-11 18:10:00 +00:00
|
|
|
|
2022-05-01 14:48:59 +00:00
|
|
|
nixosConfigurations.marvin = lib.nixosSystem {
|
2022-04-06 15:20:16 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2022-05-01 14:48:59 +00:00
|
|
|
./hosts/marvin/configuration.nix
|
|
|
|
./hosts/marvin/bootloader.nix
|
|
|
|
];
|
2022-06-09 21:15:13 +00:00
|
|
|
specialArgs = {inherit self inputs pkgs;};
|
2022-05-01 14:48:59 +00:00
|
|
|
};
|
2022-05-16 22:36:56 +00:00
|
|
|
nixosConfigurations.prefect = lib.nixosSystem {
|
2022-05-01 14:48:59 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2022-05-16 22:36:56 +00:00
|
|
|
./hosts/prefect/configuration.nix
|
|
|
|
./hosts/prefect/bootloader.nix
|
2022-04-06 15:20:16 +00:00
|
|
|
];
|
2022-05-16 22:36:56 +00:00
|
|
|
specialArgs = {inherit self inputs;};
|
2022-04-06 15:20:16 +00:00
|
|
|
};
|
2022-05-16 22:36:56 +00:00
|
|
|
nixosConfigurations.zaphod = lib.nixosSystem {
|
2022-04-06 15:20:16 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./hosts/zaphod/configuration.nix
|
2022-05-16 22:36:56 +00:00
|
|
|
./hosts/zaphod/bootloader.nix
|
2022-06-10 20:19:43 +00:00
|
|
|
inputs.home-manager.nixosModules.home-manager
|
2022-04-06 15:20:16 +00:00
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2022-06-10 20:19:43 +00:00
|
|
|
home-manager.users.thehedgehog = lib.mkMerge [
|
2022-04-06 15:20:16 +00:00
|
|
|
./home.nix
|
|
|
|
doom-emacs.hmModule
|
|
|
|
nix-colors.homeManagerModule
|
|
|
|
];
|
2022-04-26 22:23:56 +00:00
|
|
|
home-manager.extraSpecialArgs = {inherit pkgs system inputs nix-colors;};
|
2022-04-06 15:20:16 +00:00
|
|
|
}
|
|
|
|
];
|
2022-05-16 22:36:56 +00:00
|
|
|
specialArgs = {inherit self inputs nix-colors;};
|
2022-04-06 15:20:16 +00:00
|
|
|
};
|
2022-03-30 01:57:59 +00:00
|
|
|
homeConfigurations.mrhedgehog = home-manager.lib.homeManagerConfiguration {
|
2022-02-27 20:57:58 +00:00
|
|
|
inherit pkgs system;
|
2022-06-12 14:40:11 +00:00
|
|
|
username = "mrhedgehog";
|
2022-06-10 20:19:43 +00:00
|
|
|
stateVersion = "22.11";
|
2022-02-27 20:57:58 +00:00
|
|
|
homeDirectory = "/home/mrhedgehog";
|
2022-04-06 15:20:16 +00:00
|
|
|
configuration.imports = [
|
|
|
|
./home.nix
|
|
|
|
doom-emacs.hmModule
|
|
|
|
nix-colors.homeManagerModule
|
|
|
|
];
|
|
|
|
extraSpecialArgs = {inherit nix-colors;};
|
2022-02-27 20:57:58 +00:00
|
|
|
};
|
|
|
|
};
|
2022-01-28 14:25:01 +00:00
|
|
|
}
|