summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-06-12 13:37:13 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-06-12 13:37:13 +0200
commit15d50528cf86e93bad19f65f1e4b47af49e94d71 (patch)
treecaaa600a8f38df84dc269a3844d276393e90262c /flake.nix
parent72ee2b5a1e65ce804d6e1dcfd11aec06385594cc (diff)
Nuked everything
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix110
1 files changed, 0 insertions, 110 deletions
diff --git a/flake.nix b/flake.nix
deleted file mode 100644
index f44ea41..0000000
--- a/flake.nix
+++ /dev/null
@@ -1,110 +0,0 @@
-{
- description = "NixOS configuration for multiple machines with modular home-manager and rice support";
-
- inputs = {
- # Core
- nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
- nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
-
- # Home Manager
- home-manager = {
- url = "github:nix-community/home-manager/release-25.11";
- inputs.nixpkgs.follows = "nixpkgs";
- };
-
- # Theming - centralized color management
- stylix = {
- url = "github:danth/stylix/release-25.11";
- inputs.nixpkgs.follows = "nixpkgs";
- };
-
- # Rust toolchain
- fenix = {
- url = "github:nix-community/fenix";
- inputs.nixpkgs.follows = "nixpkgs";
- };
-
- # Rust build system for Nix
- crane.url = "github:ipetkov/crane";
-
- nixcord.url = "github:FlameFlag/nixcord";
- };
-
- outputs = {
- self,
- nixpkgs,
- nixpkgs-unstable,
- home-manager,
- stylix,
- fenix,
- crane,
- nixcord,
- ...
- } @ inputs: let
- system = "x86_64-linux";
-
- # Overlays for the system
- overlays = [
- # Access unstable packages via pkgs.unstable.*
- (final: prev: {
- unstable = import nixpkgs-unstable {
- inherit system;
- config.allowUnfree = true;
- };
- })
- # Fenix Rust overlay
- fenix.overlays.default
- # Local TeXLive packages
- (final: prev: {
- scpzine-texlive = final.callPackage ./pkgs/scpzine-texlive.nix {};
- })
- ];
-
- # Per-host home-manager configuration
- mkHomeManagerModule = hostname: rice: {
- home-manager = {
- useGlobalPkgs = true;
- useUserPackages = true;
- extraSpecialArgs = {
- inherit inputs;
- inherit hostname;
- inherit rice;
- };
- users.mun = {
- imports = [
- ./home/mun
- ./home/rices/${rice}/home.nix
- ];
- };
- };
- };
-
- # Helper to create a NixOS system with rice
- mkSystem = hostname: rice:
- nixpkgs.lib.nixosSystem {
- inherit system;
- specialArgs = {inherit inputs;};
- modules = [
- # Apply overlays via nixpkgs module
- {
- nixpkgs = {
- inherit overlays;
- config.allowUnfree = true;
- };
- }
- ./hosts/${hostname}/configuration.nix
- ./system
- ./home/rices/${rice}/system.nix
- home-manager.nixosModules.home-manager
- stylix.nixosModules.stylix
- (mkHomeManagerModule hostname rice)
- ];
- };
- in {
- nixosConfigurations = {
- kronos = mkSystem "kronos" "schrottkatze";
- herra = mkSystem "herra" "cinnamon";
- mystra = mkSystem "mystra" "nord-blue";
- };
- };
-}