From 149918fdbcc26a3ad8e6ec4cf6085fe4020cbc9c Mon Sep 17 00:00:00 2001 From: cydiralis Date: Tue, 24 Jun 2025 14:01:31 +0100 Subject: [PATCH] very basic boilerplate, define the 2 main hosts as part of this configuration, absolution (alyx main desktop) and apollo (maya main desktop) --- flake.nix | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..fded022 --- /dev/null +++ b/flake.nix @@ -0,0 +1,64 @@ +{ + description = "a shared collection of dots by cydiralis and beanigen"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + home-manager.url = "github:nix-community/home-manager"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + catppuccin.url = "github:catppuccin/nix"; + nixpkgs-xr.url = "github:nix-community/nixpkgs-xr"; + nixvim.url = "github:nix-community/nixvim"; + niri.url = "github:sodiboo/niri-flake"; + nix-index-database.url = "github:nix-community/nix-index-database"; + nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; + system-manager.url = "github:numtide/system-manager"; + system-manager.inputs.nixpkgs.follows = "nixpkgs"; + nix-system-graphics.url = "github:soupglasses/nix-system-graphics"; + nix-system-graphics.inputs.nixpkgs.follows = "nixpkgs"; + jovian.url = "github:Jovian-Experiments/Jovian-NixOS"; + }; + + outputs = inputs@{ self, nixpkgs, home-manager, system-manager, niri, nixpkgs-xr, jovian, ...}:{ + nixosConfigurations."Absolution" = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./base/Absolution + nixpkgs-xr.nixosModules.nixpkgs-xr + home-manager.nixosModules.home-manager { + home-manager.extraSpecialArgs = { + inherit inputs; + vars = { + isNixOS = true; + class = "desktop"; + user = "alyx"; + }; + }; + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.alyx = ./home; + } + ]; + }; + nixosConfigurations."apollo" = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./base/apollo + nixpkgs-xr.nixosModules.nixpkgs-xr + home-manager.nixosModules.home-manager { + home-manager.extraSpecialArgs = { + inherit inputs; + vars = { + isNixOS = true; + class = "desktop"; + user = "maya"; + useSyncthing = true; + }; + }; + home-manager.useGlobalPkgs = true; + home-manager.useUserPkgs = true; + home-manager.users.maya = ./home; + } + ]; + }; + }; +}