nix-config/flake.nix

109 lines
2.5 KiB
Nix
Raw Normal View History

2024-01-30 17:29:47 +01:00
{
2024-08-13 12:50:10 +02:00
description = "muhh configs for all nix managed things";
2024-01-30 17:29:47 +01:00
inputs = {
2024-08-13 12:50:10 +02:00
# nixpkgs.url = "nixpkgs/release-24.05";
nixpkgs.url = "nixpkgs/nixos-unstable";
2024-08-13 12:50:10 +02:00
# hardware.url = "nixos/nixos-hardware";
2024-01-30 17:29:47 +01:00
home-manager = {
2024-08-13 12:50:10 +02:00
# url = "github:nix-community/home-manager/release-24.05";
url = "github:nix-community/home-manager/master";
2024-01-30 17:29:47 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
2024-08-13 12:50:10 +02:00
lix-module = {
2024-12-06 18:06:53 +01:00
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-2.tar.gz";
2024-01-30 17:29:47 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
2024-08-13 12:50:10 +02:00
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-08-13 12:50:10 +02:00
2024-06-05 15:28:46 +02:00
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-08-13 12:50:10 +02:00
nixvim = {
url = "github:nix-community/nixvim";
2024-07-02 14:17:34 +02:00
inputs.nixpkgs.follows = "nixpkgs";
};
2024-08-13 12:50:10 +02:00
2024-07-05 12:17:07 +02:00
niri = {
url = "github:sodiboo/niri-flake";
2024-08-13 12:50:10 +02:00
inputs.nixpkgs.follows = "nixpkgs";
2024-07-05 12:17:07 +02:00
};
2024-11-28 18:16:12 +01:00
# secret-config = {
# url = "git+ssh://git@code.muhh.lol/muhh/nix-config-secret.git";
# flake = true;
# };
2024-01-30 17:29:47 +01:00
};
outputs = {
self,
nixpkgs,
home-manager,
2024-08-13 12:50:10 +02:00
lix-module,
sops-nix,
2024-07-02 14:17:34 +02:00
stylix,
2024-08-13 12:50:10 +02:00
nixvim,
2024-07-05 12:17:07 +02:00
niri,
2024-11-28 18:16:12 +01:00
# secret-config,
2024-01-30 17:29:47 +01:00
...
} @ inputs: let
inherit (self) outputs;
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
cube = lib.nixosSystem {
inherit system;
modules = [
./hosts/cube.nix
2024-07-02 14:17:34 +02:00
lix-module.nixosModules.default
2024-07-05 12:17:07 +02:00
sops-nix.nixosModules.sops
niri.nixosModules.niri
2024-11-28 18:16:12 +01:00
# {
# environment.systemPackages = [
# secret-config.packages.${system}.default
# ];
# }
];
};
2024-01-30 17:29:47 +01:00
muhhStar = lib.nixosSystem {
inherit system;
modules = [
2024-08-13 12:50:10 +02:00
sops-nix.nixosModules.sops
./hosts/muhhStar.nix
];
2024-01-30 17:29:47 +01:00
};
};
2024-08-13 12:50:10 +02:00
2024-01-30 17:29:47 +01:00
homeConfigurations = {
muhh = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
config.permittedInsecurePackages = [
"electron-25.9.0"
];
};
modules = [
2024-08-13 12:50:10 +02:00
nixvim.homeManagerModules.nixvim
sops-nix.homeManagerModules.sops
stylix.homeManagerModules.stylix
niri.homeModules.niri
2024-12-10 17:38:17 +01:00
niri.homeModules.stylix
2024-01-30 17:29:47 +01:00
./home.nix
];
};
};
};
}