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 = {
|
2023-04-12 12:14:47 +00:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
2023-11-30 13:58:50 +00:00
|
|
|
nixpkgs-stable.url = "nixpkgs/nixos-23.11";
|
2024-04-03 16:37:15 +00:00
|
|
|
nixpkgs-unstable-small.url = "nixpkgs/nixos-unstable-small";
|
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;
|
|
|
|
};
|
2024-04-20 18:07:07 +00:00
|
|
|
crane = {
|
|
|
|
url = "github:ipetkov/crane";
|
|
|
|
inputs = {
|
|
|
|
flake-utils.follows = "flake-utils";
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
fenix = {
|
|
|
|
url = "github:nix-community/fenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-08-02 07:55:12 +00:00
|
|
|
};
|
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
nixpkgs-stable,
|
2024-04-03 16:37:15 +00:00
|
|
|
nixpkgs-unstable-small,
|
2023-11-26 20:26:49 +00:00
|
|
|
home-manager,
|
|
|
|
nixos-hardware,
|
|
|
|
mac-brcm-fw,
|
2024-04-16 19:37:01 +00:00
|
|
|
fenix,
|
2024-04-20 18:07:07 +00:00
|
|
|
crane,
|
2023-11-26 20:26:49 +00:00
|
|
|
...
|
2023-12-05 14:54:07 +00:00
|
|
|
} @ inputs: let
|
2024-04-16 19:37:01 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
|
|
|
|
pkgs-unstable-small = nixpkgs-unstable-small.legacyPackages.${system};
|
2024-04-20 18:07:07 +00:00
|
|
|
crane-lib = crane.lib.${system};
|
2024-04-16 19:37:01 +00:00
|
|
|
rs-toolchain = with fenix.packages.${system};
|
|
|
|
combine [
|
|
|
|
default.toolchain
|
|
|
|
rust-analyzer
|
|
|
|
];
|
2024-04-20 18:07:07 +00:00
|
|
|
# rs-platform = pkgs.makeRustPlatform {
|
|
|
|
# cargo = rs-toolchain;
|
|
|
|
# rustc = rs-toolchain;
|
|
|
|
# };
|
2024-04-16 19:37:01 +00:00
|
|
|
rs-programs = final: prev: {
|
2024-04-20 18:07:07 +00:00
|
|
|
# s10e-jrnl = rs-platform.buildRustPackage {
|
|
|
|
# pname = "jrnl";
|
|
|
|
# version = "0.0.1";
|
|
|
|
# src = ./programs/jrnl;
|
|
|
|
# cargoLock.lockFile = ./programs/jrnl/Cargo.lock;
|
|
|
|
# };
|
|
|
|
s10e-jrnl = crane-lib.buildPackage {
|
|
|
|
src = crane-lib.cleanCargoSource (crane-lib.path ./.);
|
2024-04-16 19:37:01 +00:00
|
|
|
};
|
|
|
|
};
|
2023-12-05 14:54:07 +00:00
|
|
|
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
|
|
|
|
]))
|
2024-04-16 19:37:01 +00:00
|
|
|
rs-toolchain
|
2023-12-05 14:54:07 +00:00
|
|
|
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 = {
|
2024-04-16 19:37:01 +00:00
|
|
|
inherit inputs pkgs-unstable-small pkgs-stable rs-programs;
|
2022-11-01 17:22:53 +00:00
|
|
|
};
|
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
|
2023-11-26 20:26:49 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
2022-08-02 07:55:12 +00:00
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-04-20 18:07:07 +00:00
|
|
|
home-manager.extraSpecialArgs = {
|
|
|
|
inherit pkgs-unstable-small pkgs-stable;
|
|
|
|
};
|
2023-11-26 20:26:49 +00:00
|
|
|
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 = {
|
2024-04-16 19:37:01 +00:00
|
|
|
inherit inputs pkgs-unstable-small pkgs-stable rs-programs;
|
2023-09-08 23:10:22 +00:00
|
|
|
};
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./hosts/catbook-j/configuration.nix
|
2023-11-26 20:26:49 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
2023-09-08 23:10:22 +00:00
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-04-20 18:07:07 +00:00
|
|
|
home-manager.extraSpecialArgs = {
|
|
|
|
inherit pkgs-unstable-small pkgs-stable;
|
|
|
|
};
|
2023-11-26 20:26:49 +00:00
|
|
|
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 = {
|
2024-04-16 19:37:01 +00:00
|
|
|
inherit inputs pkgs-unstable-small rs-programs;
|
2022-11-01 17:22:53 +00:00
|
|
|
};
|
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
|
2023-11-26 20:26:49 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
2022-08-31 20:49:48 +00:00
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-04-20 18:07:07 +00:00
|
|
|
home-manager.extraSpecialArgs = {
|
|
|
|
inherit pkgs-unstable-small pkgs-stable;
|
|
|
|
};
|
2023-11-26 20:26:49 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|