nix-configs/flake.nix

121 lines
3.5 KiB
Nix
Raw Normal View History

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