2023-07-05 22:32:26 +04:00
|
|
|
# load stuff
|
|
|
|
{
|
2024-07-29 23:18:00 +04:00
|
|
|
description = "Sako's NixOS Configuration";
|
2023-07-05 22:32:26 +04:00
|
|
|
|
|
|
|
inputs = {
|
2024-10-02 11:33:29 +04:00
|
|
|
nixpkgs.url =
|
|
|
|
"github:NixOS/nixpkgs/nixos-unstable"; # nixpkgs unstable branch
|
|
|
|
nixpkgs-stable.url =
|
|
|
|
"github:nixos/nixpkgs/nixos-24.05"; # nixpkgs stable branch because some things break
|
2023-08-19 14:17:35 +04:00
|
|
|
home-manager = {
|
2023-12-25 01:35:40 +04:00
|
|
|
# this manages your dotfiles for the most part
|
2024-08-09 17:55:44 +04:00
|
|
|
url = "github:nix-community/home-manager";
|
2023-08-19 14:17:35 +04:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-08-17 19:42:16 +04:00
|
|
|
NixOS-WSL = {
|
2023-12-25 01:35:40 +04:00
|
|
|
# this makes nixos on wsl a thing
|
2023-08-19 11:20:34 +04:00
|
|
|
url = "github:nix-community/NixOS-WSL";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-08-17 19:42:16 +04:00
|
|
|
};
|
2023-10-05 13:55:36 +04:00
|
|
|
sops-nix = {
|
2023-12-25 01:35:40 +04:00
|
|
|
# this manages secrets
|
2023-10-05 13:55:36 +04:00
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-10-03 06:39:30 +04:00
|
|
|
agenix = {
|
|
|
|
url = "github:ryantm/agenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-10-04 13:57:42 +04:00
|
|
|
emacs-overlay = { url = "github:nix-community/emacs-overlay"; };
|
2024-09-04 21:46:54 +04:00
|
|
|
ags = {
|
|
|
|
url = "github:Aylur/ags";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-12-21 00:08:34 +04:00
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
2024-09-01 20:53:22 +04:00
|
|
|
hyprpaper.url = "github:hyprwm/hyprpaper";
|
2024-11-29 07:21:16 +04:00
|
|
|
rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor";
|
2023-07-05 22:32:26 +04:00
|
|
|
};
|
|
|
|
|
2024-10-03 06:39:30 +04:00
|
|
|
outputs = { self, nixpkgs, home-manager, NixOS-WSL, agenix, emacs-overlay
|
|
|
|
, hyprland, hyprpaper, ags, ... }@inputs:
|
2024-10-02 11:33:29 +04:00
|
|
|
let
|
|
|
|
inherit (self) outputs;
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" ];
|
|
|
|
in rec {
|
|
|
|
# custom packages
|
|
|
|
packages = forAllSystems (system:
|
|
|
|
let pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in import ./packages { inherit pkgs; });
|
|
|
|
# dev shell for bootstrap
|
|
|
|
devShells = forAllSystems (system:
|
|
|
|
let pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in import ./shell.nix { inherit pkgs; });
|
2023-08-07 17:28:33 +04:00
|
|
|
|
2024-10-02 11:33:29 +04:00
|
|
|
# overlays here
|
|
|
|
overlays = import ./overlays { inherit inputs; };
|
2023-07-07 03:06:45 +04:00
|
|
|
|
2024-10-02 11:33:29 +04:00
|
|
|
# modules :D
|
|
|
|
nixosModules = import ./modules;
|
2023-07-07 03:06:45 +04:00
|
|
|
|
2024-10-02 11:33:29 +04:00
|
|
|
nixosConfigurations = {
|
|
|
|
sakotop = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = { inherit inputs outputs; };
|
2024-10-03 06:39:30 +04:00
|
|
|
modules = [ ./default.nix ./hosts/sakotop/configuration.nix ];
|
2024-10-02 11:33:29 +04:00
|
|
|
};
|
|
|
|
sakopc = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = { inherit inputs outputs; };
|
2024-10-03 06:39:30 +04:00
|
|
|
modules = [ ./default.nix ./hosts/sakopc/configuration.nix ];
|
2024-10-02 11:33:29 +04:00
|
|
|
};
|
|
|
|
#sakoserver = nixpkgs.lib.nixosSystem {
|
|
|
|
# specialArgs = {inherit inputs outputs;};
|
|
|
|
# modules = [
|
|
|
|
# ./default.nix
|
|
|
|
# ./hosts/sakoserver/configuration.nix
|
|
|
|
# ];
|
|
|
|
#};
|
|
|
|
sakowsl = nixpkgs.lib.nixosSystem {
|
|
|
|
# because theres no hardware-configuration.nix
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs outputs; };
|
|
|
|
modules = [
|
|
|
|
{ nix.registry.nixpkgs.flake = nixpkgs; }
|
|
|
|
./hosts/sakowsl/configuration.nix
|
|
|
|
NixOS-WSL.nixosModules.wsl
|
|
|
|
];
|
|
|
|
};
|
2023-08-17 19:42:16 +04:00
|
|
|
};
|
2023-07-05 22:32:26 +04:00
|
|
|
};
|
|
|
|
}
|