feat: add nixos and hm config

This commit is contained in:
js0ny 2025-10-11 11:26:21 +01:00
parent 8db7f8a1e9
commit ffafb4a329
54 changed files with 1282 additions and 0 deletions

66
nixcfgs/flake.nix Normal file
View file

@ -0,0 +1,66 @@
{
description = "A simple NixOS flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix-flatpak.url = "github:gmodena/nix-flatpak";
nix-darwin = {
url = "github:nix-darwin/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
plasma-manager = {
url = "github:nix-community/plasma-manager";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
};
outputs = {
self,
nixpkgs,
nix-flatpak,
nix-darwin,
home-manager,
plasma-manager,
...
} @ inputs: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations.zp = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nix-flatpak.nixosModules.nix-flatpak
./hosts/zp.nix
./hardware-configuration.nix
];
};
nixosConfigurations.zephyrus = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/zephyrus
home-manager.nixosModules.home-manager
{
# nix-flatpak.homeManagerModules.nix-flatpak
home-manager.sharedModules = [plasma-manager.homeModules.plasma-manager nix-flatpak.homeManagerModules.nix-flatpak];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.js0ny = import ./users/js0ny;
nixpkgs.config.allowUnfree = true;
}
];
};
darwinConfigurations."zen" = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
./hosts/zen
];
};
};
}