-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
85 lines (81 loc) · 2.68 KB
/
Copy pathflake.nix
File metadata and controls
85 lines (81 loc) · 2.68 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.7.0";
dms = {
url = "github:AvengeMedia/DankMaterialShell";
inputs.nixpkgs.follows = "nixpkgs";
};
dank-greeter = {
url = "github:AvengeMedia/dank-greeter";
inputs.nixpkgs.follows = "nixpkgs";
};
focus-editor = {
url = "path:./pkgs/focus";
inputs.nixpkgs.follows = "nixpkgs";
};
lmpkgs = {
url = "git+ssh://git@ssh.git.ptrtoliam.dev:2222/liam/nix-pkgs.git";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprpwcenter = {
url = "github:hyprwm/hyprpwcenter";
inputs.hyprgraphics.follows = "hyprland/hyprgraphics";
inputs.aquamarine.follows = "hyprland/aquamarine";
inputs.hyprutils.follows = "hyprland/hyprutils";
inputs.systems.follows = "hyprland/systems";
};
};
outputs = { self, nixpkgs, hyprland, ... }@inputs:
let
system = "x86_64-linux";
# pkgs = nixpkgs.legacyPackages.${system};
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [
(final: prev: {
ark = inputs.lmpkgs.packages.${system}.ark;
ark-cli = inputs.lmpkgs.packages.${system}.ark-cli;
dank-greeter = inputs.dank-greeter.nixosModules.default;
fred = inputs.lmpkgs.packages.${system}.fred;
focus = inputs.focus-editor.packages.${system}.focus;
hyprland = inputs.hyprland.packages.${system}.hyprland;
hyprpwcenter = inputs.hyprpwcenter.packages.${system}.hyprpwcenter;
xdg-desktop-portal-hyprland = inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland;
})
];
};
defaultCfg = rec {
username = "liamm";
homeDirectory = "/home/${username}";
runtimeRoot = "${homeDirectory}/nixos";
context = self;
};
in
{
nixosConfigurations = {
darp8 = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; cfg = defaultCfg; };
modules = [
hyprland.nixosModules.default
./hosts/darp8/configuration.nix
{ nixpkgs.pkgs = pkgs; }
];
};
desktop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; cfg = defaultCfg; };
modules = [
hyprland.nixosModules.default
./hosts/desktop/configuration.nix
{ nixpkgs.pkgs = pkgs; }
];
};
};
};
}