Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # configuration.nix #
- { config, pkgs, ... }:
- let
- fa-teams = pkgs.callPackage /home/jk/dev/fa-teams {};
- in
- {
- imports = [ ./hardware-configuration.nix ];
- networking.hostName = "nixos";
- environment.systemPackages = [ fa-teams ];
- system.stateVersion = "20.03";
- services.cron = {
- enable = true;
- systemCronJobs = [
- "* * * * * jk fa-teams >> /home/jk/cron.log"
- ];
- };
- }
- ------------------------------------------------------------------------------------------------------------------------
- # /home/jk/dev/fa-teams/default.nix
- { pkgs ? import <nixpkgs> {}, ... }:
- let
- nixpkgs = builtins.fromJSON (builtins.readFile ./.nixos-20.03.json);
- src = pkgs.fetchFromGitHub {
- owner = "NixOS";
- repo = "nixpkgs-channels";
- inherit (nixpkgs) rev sha256;
- };
- pinnedPkgs = import src {};
- drv = pinnedPkgs.haskellPackages.callCabal2nix "fa-teams" ./. {};
- in
- {
- fa-teams = drv;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement