This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathflake.nix
72 lines (66 loc) · 1.79 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
flake-utils.url = "github:numtide/flake-utils";
pre-commit-hooks = {
url = "github:cachix/pre-commit-hooks.nix";
inputs = {
flake-utils.follows = "flake-utils";
nixpkgs.follows = "nixpkgs";
};
};
};
outputs = {
self,
nixpkgs,
flake-utils,
pre-commit-hooks,
}:
(flake-utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages.${system};
python = pkgs.python3.withPackages (ps: [
ps.beautifulsoup4
ps.click
ps.httpx
ps.jinja2
ps.pyyaml
]);
in rec {
legacyPackages = (self.overlays.default pkgs pkgs).kdePackages;
packages = legacyPackages;
checks.pre-commit-check = pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
alejandra.enable = true;
};
};
devShells.default = pkgs.mkShell {
packages = [python pkgs.gnutar pkgs.jq pkgs.reuse];
inherit (self.checks.${system}.pre-commit-check) shellHook;
};
}
))
// {
overlays.default = import ./overlay.nix;
nixosModules = rec {
plasma6 = import ./nixos.nix;
default = plasma6;
};
nixosConfigurations.test-vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
self.nixosModules.plasma6
{
users.users.nixos = {
isNormalUser = true;
password = "nixos";
};
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma6.enable = true;
}
];
};
};
}