Skip to content

Commit

Permalink
nix: move config to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
bqv committed May 13, 2020
1 parent b69562b commit 9428f4b
Show file tree
Hide file tree
Showing 4 changed files with 435 additions and 424 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
inherit (prev) lib linkFarm;
srcFilter = n: t: (lib.hasSuffix ".cc" n || lib.hasSuffix ".h" n || lib.hasSuffix ".S" n
|| lib.hasSuffix ".md" n || t == "directory");
repo = lib.cleanSourceWith { filter = srcFilter; src = lib.cleanSource "./."; };
repo = lib.cleanSourceWith { filter = srcFilter; src = lib.cleanSource ./.; };

buildFileWith = root: name: type: rec {
inherit name; file = "${root}/${name}";
Expand Down
6 changes: 3 additions & 3 deletions nix/module/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
self: { config, system, pkgs, lib, ... }:
self: { config, pkgs, lib, ... }:

let
cfg = config.services.matrix-construct;
Expand Down Expand Up @@ -35,7 +35,7 @@ in {

package = mkOption {
type = types.package;
default = self.packages.${system}.matrix-construct;
default = self.packages.${pkgs.system}.matrix-construct;
defaultText = "pkgs.matrix-construct";
description = ''
Guix package to use.
Expand All @@ -55,7 +55,7 @@ in {
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ] ++ lib.optional cfg.useScreen pkgs.screen;

systemd.services.construct = {
systemd.services.matrix-construct = {
description = "Matrix Construct";
wantedBy = [ "multi-user.target" ];

Expand Down
Loading

0 comments on commit 9428f4b

Please sign in to comment.