This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
81 lines (64 loc) · 1.7 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
description = "NixOS and Home Manager configuration flake";
inputs =
{
# Package sets.
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-21.05";
# Hardware management.
nixos-hardware.url = "github:anubhavkini/nixos-hardware/A315-55G-709W";
# Environment management.
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# Nix User Repository.
nur.url = "github:nix-community/NUR";
# Emacs overlay.
emacs.url = "github:nix-community/emacs-overlay";
};
outputs =
{ self
, nixpkgs
, nixos-hardware
, home-manager
, nur
, emacs
, ...
} @ inputs:
let
system = "x86_64-linux";
stateVersion = "21.11";
pkgs = import nixpkgs {
inherit system;
# Permit unfree software.
config = { allowUnfree = true; };
overlays = [
nur.overlay
emacs.overlay
];
};
in {
# System configurations.
nixosConfigurations = with nixpkgs.lib; {
# Configuration for bracer.
bracer = nixosSystem {
inherit system pkgs;
modules = [
nixos-hardware.nixosModules.acer-aspire-A315-55G_709W
./system/bracer
];
};
};
# Home Manager configurations.
homeConfigurations = with home-manager.lib; {
# Configuration for anubhav on bracer.
"anubhav@bracer" = homeManagerConfiguration {
inherit system pkgs stateVersion;
username = "anubhav";
homeDirectory = "/home/anubhav";
configuration = {
imports = [ ./home/anubhav/bracer ];
};
};
};
};
}