-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
69 lines (66 loc) · 2.34 KB
/
Copy pathflake.nix
File metadata and controls
69 lines (66 loc) · 2.34 KB
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
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-26.05";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
hermes-agent.url = "github:NousResearch/hermes-agent/2bd1977d8fad185c9b4be47884f7e87f1add0ce3";
};
outputs = { self, nixpkgs, nixpkgs-stable, home-manager, hermes-agent, ... }@inputs:
let
system = "x86_64-linux";
pkgs-stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
commonModules = [
home-manager.nixosModules.home-manager
hermes-agent.nixosModules.default
./configuration.nix
];
in {
nixosConfigurations = {
oxygen = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs pkgs-stable; };
modules = commonModules ++ [
{
imports = [ ./oxygen/hardware-configuration.nix ];
networking.hostName = "oxygen";
system.stateVersion = "25.11";
home-manager.users.william.home.stateVersion = "25.11";
boot.kernelPackages = nixpkgs.legacyPackages.${system}.linuxPackages_latest;
boot.initrd.kernelModules = [
"amdgpu"
"lm92"
"nct6775"
];
boot.kernelParams = [
"video=DP-1:1920x1080@60"
"video=DP-2:1920x1080@60"
];
services.hermes-agent.enable = true;
}
];
};
phosphorus = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs pkgs-stable; };
modules = commonModules ++ [
{
imports = [ ./phosphorus/hardware-configuration.nix ];
networking.hostName = "phosphorus";
system.stateVersion = "26.05";
home-manager.users.william.home.stateVersion = "26.05";
boot.kernelPackages = nixpkgs.legacyPackages.${system}.linuxPackages_latest;
services.tlp.settings = {
START_CHARGE_THRESH_BAT0 = 80;
STOP_CHARGE_THRESH_BAT0 = 90;
};
}
];
};
};
};
}