2024-03-16 21:44:40 +01:00
|
|
|
{
|
2024-03-31 00:44:48 +01:00
|
|
|
description = "My System flake";
|
2024-03-16 21:44:40 +01:00
|
|
|
|
|
|
|
inputs = {
|
2024-05-31 13:59:46 +02:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
2024-03-31 00:44:48 +01:00
|
|
|
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
|
2024-05-31 13:59:46 +02:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
2024-03-31 00:44:48 +01:00
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
2024-09-11 14:57:36 +02:00
|
|
|
nix-colors.url = "github:misterio77/nix-colors";
|
2024-09-17 18:14:26 +02:00
|
|
|
|
|
|
|
# stylix.url = "github:bluskript/stylix/6bc871ab352c9f18d1179daab9e392a4d46393af";
|
|
|
|
# stylix.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
# stylix.inputs.home-manager.follows = "home-manager";
|
|
|
|
|
2024-06-17 21:40:17 +02:00
|
|
|
|
2024-05-29 19:33:24 +02:00
|
|
|
ozai.url = "git+https://git.pvv.ntnu.no/Projects/ozai.git";
|
|
|
|
ozai.inputs.nixpkgs.follows = "unstable";
|
|
|
|
ozai-webui.url = "git+https://git.pvv.ntnu.no/adriangl/ozai-webui.git";
|
|
|
|
ozai-webui.inputs.nixpkgs.follows = "unstable";
|
|
|
|
|
2024-03-31 00:44:48 +01:00
|
|
|
matrix-synapse-next.url = "github:dali99/nixos-matrix-modules";
|
2024-05-29 19:33:24 +02:00
|
|
|
|
2024-03-31 00:44:48 +01:00
|
|
|
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
|
|
|
|
2024-03-16 21:44:40 +01:00
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
|
|
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
2024-06-13 00:23:24 +02:00
|
|
|
|
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
|
|
|
|
|
|
|
2024-03-31 00:44:48 +01:00
|
|
|
};
|
2024-03-16 21:44:40 +01:00
|
|
|
|
2024-03-31 00:44:48 +01:00
|
|
|
outputs = {
|
|
|
|
self
|
|
|
|
, home-manager
|
2024-09-11 14:57:36 +02:00
|
|
|
, nix-colors
|
2024-03-31 00:44:48 +01:00
|
|
|
, matrix-synapse-next
|
2024-05-29 19:33:24 +02:00
|
|
|
, ozai
|
|
|
|
, ozai-webui
|
2024-03-31 00:44:48 +01:00
|
|
|
, nix-minecraft
|
|
|
|
, nixpkgs
|
|
|
|
, sops-nix
|
2024-06-13 00:23:24 +02:00
|
|
|
, nixos-hardware
|
2024-03-31 00:44:48 +01:00
|
|
|
, unstable
|
|
|
|
, ... }@inputs:
|
|
|
|
let
|
|
|
|
overlay-unstable = final: prev: {
|
|
|
|
unstable = unstable.legacyPackages.${prev.system};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
nixosConfigurations = {
|
2024-03-16 21:44:40 +01:00
|
|
|
|
2024-06-12 23:33:23 +02:00
|
|
|
eowyn = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x84_64-linux";
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
modules = [
|
|
|
|
# Overlays-module makes "pkgs.unstable" available in configuration.nix
|
|
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./machines/eowyn/configuration.nix
|
|
|
|
sops-nix.nixosModules.sops
|
2024-06-13 00:23:24 +02:00
|
|
|
nixos-hardware.nixosModules.dell-latitude-7280
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-06-13 14:40:34 +02:00
|
|
|
home-manager.users."gunalx" = import ./home/full.nix;
|
2024-09-23 12:54:23 +02:00
|
|
|
home-manager.backupFileExtension = "bac";
|
2024-09-11 14:57:36 +02:00
|
|
|
home-manager.extraSpecialArgs = {inherit nix-colors inputs;};
|
2024-06-17 21:40:17 +02:00
|
|
|
}
|
2024-09-17 18:14:26 +02:00
|
|
|
#need to choose one. The nixos one has bootloader and display manager in addition to the home manager one.
|
|
|
|
#inputs.stylix.nixosModules.stylix
|
|
|
|
#inputs.stylix.homeManagerModules.stylix
|
2024-06-12 23:33:23 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
aragon = nixpkgs.lib.nixosSystem {
|
2024-04-18 01:05:45 +02:00
|
|
|
system = "x84_64-linux";
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
modules = [
|
|
|
|
# Overlays-module makes "pkgs.unstable" available in configuration.nix
|
|
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./machines/aragon/configuration.nix
|
|
|
|
sops-nix.nixosModules.sops
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-03-31 00:44:48 +01:00
|
|
|
|
|
|
|
galadriel = nixpkgs.lib.nixosSystem {
|
2024-03-16 21:44:40 +01:00
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {
|
2024-03-31 00:44:48 +01:00
|
|
|
inherit inputs;
|
2024-03-16 21:44:40 +01:00
|
|
|
};
|
|
|
|
modules = [
|
2024-03-31 00:44:48 +01:00
|
|
|
# Overlays-module makes "pkgs.unstable" available in configuration.nix
|
|
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./machines/galadriel/configuration.nix
|
2024-03-16 21:44:40 +01:00
|
|
|
sops-nix.nixosModules.sops
|
2024-05-29 19:33:24 +02:00
|
|
|
|
|
|
|
ozai.nixosModules.ozai
|
|
|
|
ozai-webui.nixosModules.ozai-webui
|
2024-03-16 21:44:40 +01:00
|
|
|
];
|
2024-03-31 00:44:48 +01:00
|
|
|
};
|
|
|
|
|
2024-03-16 21:44:40 +01:00
|
|
|
|
2024-03-31 00:44:48 +01:00
|
|
|
elrond = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
2024-03-16 21:44:40 +01:00
|
|
|
};
|
2024-03-31 00:44:48 +01:00
|
|
|
modules = [
|
|
|
|
./machines/elrond/configuration.nix
|
|
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
sops-nix.nixosModules.sops
|
2024-08-30 01:58:26 +02:00
|
|
|
inputs.ozai.nixosModules.ozai
|
|
|
|
inputs.ozai-webui.nixosModules.ozai-webui
|
2024-03-31 00:44:48 +01:00
|
|
|
];
|
|
|
|
};
|
2024-03-16 21:44:40 +01:00
|
|
|
};
|
2024-03-31 00:44:48 +01:00
|
|
|
|
|
|
|
|
|
|
|
devShells.x86_64-linux = {
|
|
|
|
default = nixpkgs.legacyPackages.x86_64-linux.callPackage ./home/shell.nix { };
|
2024-03-16 21:44:40 +01:00
|
|
|
};
|
2024-03-31 00:44:48 +01:00
|
|
|
|
|
|
|
devShells.aarch64-linux = {
|
|
|
|
default = nixpkgs.legacyPackages.aarch64-linux.callPackage ./home/shell.nix { };
|
2024-03-16 21:44:40 +01:00
|
|
|
};
|
|
|
|
};
|
2024-03-31 00:44:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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