2024-02-26 07:33:11 +00:00
|
|
|
{
|
2024-05-30 03:43:48 +00:00
|
|
|
description = "snowhawk: a nixos configuration flake";
|
2024-02-26 07:33:11 +00:00
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
2024-07-09 02:54:34 +00:00
|
|
|
neovim-overlay = {
|
|
|
|
url = "github:nix-community/neovim-nightly-overlay";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-05-29 22:23:56 +00:00
|
|
|
|
2024-02-26 07:33:11 +00:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-02-29 04:37:01 +00:00
|
|
|
|
2024-07-09 02:17:46 +00:00
|
|
|
sops-nix = {
|
|
|
|
url = "github:mic92/sops-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-02-29 04:37:01 +00:00
|
|
|
fish_theme = {
|
|
|
|
url = "git+https://git.zynh.me/Zynh0722/omf-theme";
|
|
|
|
flake = false;
|
|
|
|
};
|
2024-06-29 03:18:20 +00:00
|
|
|
|
|
|
|
backgrounds = {
|
|
|
|
url = "git+https://git.zynh.me/Zynh0722/backgrounds";
|
2024-06-29 03:19:40 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-06-29 03:18:20 +00:00
|
|
|
};
|
2024-07-01 20:06:12 +00:00
|
|
|
|
|
|
|
dunst-theme = {
|
|
|
|
url = "github:d2718nis/rose-pine-dunst";
|
|
|
|
flake = false;
|
|
|
|
};
|
2024-02-26 07:33:11 +00:00
|
|
|
};
|
|
|
|
|
2024-06-28 14:48:26 +00:00
|
|
|
outputs =
|
|
|
|
{ self, nixpkgs, ... }@inputs:
|
2024-02-26 07:33:11 +00:00
|
|
|
{
|
2024-06-28 14:11:38 +00:00
|
|
|
nixosConfigurations =
|
|
|
|
let
|
2024-07-09 00:07:15 +00:00
|
|
|
lib = import ./lib nixpkgs.lib;
|
2024-06-28 14:48:26 +00:00
|
|
|
|
2024-06-28 15:06:07 +00:00
|
|
|
toPartialNixosConfig =
|
2024-06-28 14:55:01 +00:00
|
|
|
{ hostname, system }:
|
|
|
|
{
|
2024-06-28 15:06:07 +00:00
|
|
|
name = hostname;
|
|
|
|
value = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./hosts/${hostname}/hardware-configuration.nix
|
|
|
|
./hosts/${hostname}/configuration.nix
|
|
|
|
inputs.home-manager.nixosModules.default
|
|
|
|
];
|
|
|
|
};
|
2024-06-28 14:55:01 +00:00
|
|
|
};
|
2024-06-28 15:03:01 +00:00
|
|
|
compileSystems =
|
|
|
|
systems:
|
|
|
|
lib.right
|
|
|
|
builtins.listToAttrs
|
2024-06-28 15:06:07 +00:00
|
|
|
(map toPartialNixosConfig)
|
2024-06-28 15:03:01 +00:00
|
|
|
systems;
|
2024-06-28 14:11:38 +00:00
|
|
|
in
|
2024-06-28 14:48:26 +00:00
|
|
|
compileSystems
|
|
|
|
[
|
|
|
|
{
|
|
|
|
hostname = "snowhawk";
|
|
|
|
system = "x86_64-linux";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
hostname = "sprite";
|
|
|
|
system = "aarch64-linux";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
hostname = "nixos";
|
|
|
|
system = "x86_64-linux";
|
|
|
|
}
|
|
|
|
];
|
2024-07-08 21:53:13 +00:00
|
|
|
homeConfigurations."zynh@msiserver" = inputs.home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
|
|
extraSpecialArgs = { inherit inputs; };
|
2024-07-08 04:15:01 +00:00
|
|
|
|
2024-07-08 21:53:13 +00:00
|
|
|
modules = [
|
|
|
|
./hosts/msiserver/home.nix
|
|
|
|
];
|
|
|
|
};
|
2024-02-26 07:33:11 +00:00
|
|
|
};
|
|
|
|
}
|