nix-configs/flake.nix

121 lines
3.5 KiB
Nix
Raw Normal View History

2022-08-02 09:55:12 +02:00
{
2022-10-02 18:22:40 +02:00
description = "system";
2022-08-02 09:55:12 +02:00
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
2023-11-30 14:58:50 +01:00
nixpkgs-stable.url = "nixpkgs/nixos-23.11";
2022-08-02 09:55:12 +02:00
home-manager = {
2023-10-28 22:25:06 +02:00
url = "github:nix-community/home-manager";
2022-10-02 17:39:04 +02:00
inputs.nixpkgs.follows = "nixpkgs";
2022-08-12 12:14:32 +02:00
};
2023-07-29 17:19:17 +02:00
nixos-hardware.url = "github:networkException/nixos-hardware/apple-t2-init";
2022-10-02 17:39:04 +02:00
mac-brcm-fw = {
2024-01-30 19:47:28 +01:00
url = "path:/home/jade/nix-configs/mac-brcm-fw";
2022-10-02 17:39:04 +02:00
flake = false;
};
#mms.url = "github:mkaito/nixos-modded-minecraft-servers";
2022-12-13 18:57:27 +01:00
easymacros.url = "git+https://gitlab.com/obsidianical/easymacros.git";
2023-02-06 10:51:15 +01:00
meowsite.url = "git+https://gitlab.com/obsidianical/meowsite.git";
2023-02-08 08:13:28 +01:00
wordsofgod.url = "git+https://gitlab.com/obsidianical/wordsofgod.git";
2023-03-06 20:00:42 +01:00
karton.url = "git+https://gitlab.com/obsidianical/microbin.git";
2023-03-05 10:56:03 +01:00
arion.url = "github:hercules-ci/arion";
2023-04-12 14:17:06 +02:00
gumseite.url = "git+https://gitlab.com/schrottkatze/gum-schulsachen.git";
2022-08-02 09:55:12 +02:00
};
outputs = {
self,
nixpkgs,
nixpkgs-stable,
home-manager,
nixos-hardware,
mac-brcm-fw,
...
} @ inputs: let
pkgs = nixpkgs.legacyPackages."x86_64-linux";
in {
devShells."x86_64-linux".default = pkgs.mkShell {
buildInputs = [
(pkgs.haskellPackages.ghcWithPackages
2024-02-27 18:18:55 +01:00
(pkgs:
with pkgs; [
xmonad
xmonad-contrib
xmobar
statgrab
]))
pkgs.haskell-language-server
];
};
2022-08-02 09:55:12 +02:00
nixosConfigurations = {
monosodium-glutamate-g = nixpkgs.lib.nixosSystem {
2022-11-01 18:22:53 +01:00
specialArgs = {
inherit inputs;
};
2022-08-02 09:55:12 +02:00
system = "x86_64-linux";
modules = [
2023-04-22 13:10:34 +02:00
./hosts/monosodium-glutamate-g/configuration.nix
home-manager.nixosModules.home-manager
{
2022-08-02 09:55:12 +02:00
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.jade = {
nixosConfig,
pkgs,
...
}: {
2022-08-12 12:14:32 +02:00
home.sessionVariables.TZ = nixosConfig.time.timeZone;
home.stateVersion = "${nixosConfig.system.stateVersion}";
2023-09-09 01:10:22 +02:00
};
}
];
};
catbook-j = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
};
system = "x86_64-linux";
modules = [
./hosts/catbook-j/configuration.nix
home-manager.nixosModules.home-manager
{
2023-09-09 01:10:22 +02:00
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.jade = {
nixosConfig,
pkgs,
...
}: {
2023-09-09 01:10:22 +02:00
home.sessionVariables.TZ = nixosConfig.time.timeZone;
2023-09-25 20:11:47 +02:00
home.stateVersion = "22.11";
2022-08-12 12:14:32 +02:00
};
}
2022-08-02 09:55:12 +02:00
];
};
2022-08-31 22:49:48 +02:00
potatobook-g = nixpkgs.lib.nixosSystem {
2022-11-01 18:22:53 +01:00
specialArgs = {
inherit inputs;
};
2022-08-31 22:49:48 +02:00
system = "x86_64-linux";
modules = [
2022-10-02 18:15:36 +02:00
"${mac-brcm-fw}"
2023-04-22 13:10:34 +02:00
./hosts/potatobook-g/configuration.nix
home-manager.nixosModules.home-manager
{
2022-08-31 22:49:48 +02:00
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.jade = {
nixosConfig,
pkgs,
...
}: {
2022-08-31 22:49:48 +02:00
home.sessionVariables.TZ = nixosConfig.time.timeZone;
home.stateVersion = "${nixosConfig.system.stateVersion}";
};
}
nixos-hardware.nixosModules.apple-t2
];
};
2022-08-02 09:55:12 +02:00
};
};
}