-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
91 lines (78 loc) · 2.33 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
82
83
84
85
86
87
88
89
90
91
{
description = "Matt's config";
outputs = { self, nixpkgs, home-manager, hyprland, hyprlock, hypridle, nur, unstable, walker, hyprland-contrib, ...} @inputs:
let
system = {
arch = "x86_64-linux";
hostname = "framework13";
timezone = "Europe/London";
locale = "en_GB.UTF-8";
};
user = {
username = "mtburge";
name = "Matt Burgess";
email = "hey@mtb.dev";
wallpaper = "~/.dotfiles/user/wallpapers/blobs-gnome.png";
};
powermgmt = {
soft_idle_seconds = "180"; # idle seconds before dimming monitor brightness
lock_screen_seconds = "300"; # idle seconds before locking the screen
suspend_seconds = "330"; # idle seconds before suspending system
};
pkgs = import nixpkgs {
system = system.arch;
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
imports = [
hyprland.homeManagerModules.default
hyprlock.homeManagerModules.default
hypridle.homeManagerModules.default
];
in {
nixosConfigurations = {
${system.hostname} = nixpkgs.lib.nixosSystem {
system = system.arch;
modules = [
nur.nixosModules.nur
(./. + "/hosts" + ("/" + system.hostname) + ".nix")
];
specialArgs = {
inherit inputs pkgs system user;
};
};
};
homeConfigurations = {
"mtburge" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
nur.nixosModules.nur
./home/mtburge.nix
];
extraSpecialArgs = {
inherit inputs system user powermgmt;
};
};
};
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
unstable.url = "nixpkgs/nixos-unstable";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
hyprlock.url = "github:hyprwm/Hyprlock";
hypridle.url = "github:hyprwm/Hypridle";
nixsearch.url = "github:peterldowns/nix-search-cli";
nur.url = "github:nix-community/NUR";
walker.url = "github:abenz1267/walker";
hyprland-contrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}