This repository has been archived by the owner on Jul 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
64 lines (61 loc) · 1.92 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager.url = "github:rycee/home-manager/master";
nur.url = "github:nix-community/NUR";
emacs-overlay.url = "github:nix-community/emacs-overlay";
xmonad.url = "github:xmonad/xmonad";
xmonad-contrib.url = "github:xmonad/xmonad-contrib";
xmobar.url = "github:alternateved/xmobar";
};
outputs =
{ nixpkgs, nixos-hardware, home-manager, nur, emacs-overlay, xmonad, xmonad-contrib, xmobar, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
overlays = [
nur.overlay
emacs-overlay.overlay
xmonad.overlay
xmonad-contrib.overlay
xmobar.overlay
(import ./packages)
(import ./overlays)
];
};
in
{
devShell.${system} = import ./shell.nix { inherit pkgs; };
nixosConfigurations = {
teishi = nixpkgs.lib.nixosSystem {
inherit pkgs system;
modules = [
./hosts/teishi
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alternateved = import ./modules/extended.nix;
}
];
};
ragi = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
./hosts/ragi
nixos-hardware.nixosModules.raspberry-pi-4
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alternateved = import ./modules/minimal.nix;
}
];
};
};
};
}