nix/flake.nix

38 lines
1.8 KiB
Nix
Raw Normal View History

2023-08-23 14:30:15 +09:00
{
description = "NixOS System Config";
inputs = {
2023-08-25 19:07:54 +09:00
nixpkgs.url = "nixpkgs/nixos-unstable";
2023-08-27 19:35:58 +09:00
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
2023-08-25 19:07:54 +09:00
home-manager.url = "github:nix-community/home-manager/master";
2023-08-23 14:30:15 +09:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-08-25 19:07:54 +09:00
lanzaboote.url = "github:nix-community/lanzaboote";
2023-08-23 14:30:15 +09:00
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
2023-08-25 19:07:54 +09:00
nur.url = "github:nix-community/NUR";
sops-nix.url = "github:Mic92/sops-nix";
doom-emacs.url = "github:nix-community/nix-doom-emacs";
};
2023-09-15 13:50:26 +09:00
outputs = { self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, ... } @inputs:
let
2023-08-23 14:30:15 +09:00
inherit (self) outputs;
stateVersion = "unstable";
2023-08-24 20:52:02 +09:00
hmStateVersion = "23.11";
2023-08-23 21:41:07 +09:00
libx = import ./lib { inherit inputs outputs stateVersion hmStateVersion; };
in {
nixosConfigurations = {
2023-09-15 13:50:26 +09:00
nixos-laptop = libx.mkHost
{ hostname = "nixos-laptop"; username = "albert"; desktop = "hyprland"; gpu = "intel"; theme = "gruvbox"; };
nixos-framework = libx.mkHost
{ hostname = "nixos-framework"; username = "albert"; desktop = "hyprland"; gpu = "amd"; theme = "gruvbox"; };
nixos-rpi4-01 = libx.mkHost
2023-09-15 19:19:33 +09:00
{ hostname = "nixos-rpi4-01"; username = "albert"; platform = "aarch64-linux"; };
2023-08-23 14:30:15 +09:00
};
2023-08-23 22:38:35 +09:00
homeConfigurations = {
2023-09-15 13:50:26 +09:00
"albert@nixos-laptop" = libx.mkHome
{ hostname = "nixos-laptop"; username = "albert"; desktop = "hyprland"; theme = "gruvbox"; };
"albert@nixos-framework" = libx.mkHome
{ hostname = "nixos-framework"; username = "albert"; desktop = "hyprland"; theme = "gruvbox"; };
"albert@nixos-rpi4-01" = libx.mkHome
2023-09-15 19:19:33 +09:00
{ hostname = "nixos-rpi4-01"; username = "albert"; platform = "aarch64-linux"; };
2023-08-23 14:30:15 +09:00
};
};
2023-09-01 10:47:46 +09:00
}