mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-18 18:19:12 +00:00
Format the files through nixfmt
This commit is contained in:
parent
d0a87597c5
commit
7db21c9fc5
@ -79,7 +79,10 @@
|
||||
|
||||
# Set several binary caches.
|
||||
nix = {
|
||||
binaryCaches = [ "https://nix-community.cachix.org" "https://foo-dogsquared.cachix.org" ];
|
||||
binaryCaches = [
|
||||
"https://nix-community.cachix.org"
|
||||
"https://foo-dogsquared.cachix.org"
|
||||
];
|
||||
binaryCachePublicKeys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"foo-dogsquared.cachix.org-1:/2fmqn/gLGvCs5EDeQmqwtus02TUmGy0ZlAEXqRE70E="
|
||||
@ -158,7 +161,9 @@
|
||||
|
||||
# The development environment for this flake.
|
||||
devShell = forAllSystems (system:
|
||||
import ./shell.nix { pkgs = import nixpkgs { inherit system overlays; }; });
|
||||
import ./shell.nix {
|
||||
pkgs = import nixpkgs { inherit system overlays; };
|
||||
});
|
||||
|
||||
# My several development shells for usual type of projects. This is much
|
||||
# more preferable than installing all of the packages at the system
|
||||
|
@ -1,7 +1,6 @@
|
||||
{ config, options, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.services.archivebox;
|
||||
let cfg = config.services.archivebox;
|
||||
in {
|
||||
options.services.archivebox = {
|
||||
enable = lib.mkEnableOption "Archivebox service";
|
||||
@ -31,7 +30,9 @@ in {
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
|
||||
Service = {
|
||||
ExecStart = "${pkgs.archivebox}/bin/archivebox server localhost:${toString cfg.port}";
|
||||
ExecStart = "${pkgs.archivebox}/bin/archivebox server localhost:${
|
||||
toString cfg.port
|
||||
}";
|
||||
WorkingDirectory = cfg.archivePath;
|
||||
Restart = "on-failure";
|
||||
};
|
||||
|
@ -35,8 +35,7 @@ in {
|
||||
"google_toolbar.search_history"
|
||||
"thumbnails.cache"
|
||||
"zoom.logs"
|
||||
]
|
||||
++ lib.optionals cfg.withBrowserCleanup [
|
||||
] ++ lib.optionals cfg.withBrowserCleanup [
|
||||
"brave.cache"
|
||||
"brave.form_history"
|
||||
"brave.history"
|
||||
@ -68,7 +67,8 @@ in {
|
||||
];
|
||||
};
|
||||
|
||||
withBrowserCleanup = lib.mkEnableOption "browser-related cleaners to be included in the list";
|
||||
withBrowserCleanup =
|
||||
lib.mkEnableOption "browser-related cleaners to be included in the list";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
@ -28,7 +28,8 @@ in {
|
||||
extensionPackages = lib.mkOption {
|
||||
default = [ ];
|
||||
type = with lib.types; listOf package;
|
||||
example = lib.literalExpression "with pkgs; [ mopidy-spotify mopidy-mpd mopidy-mpris ]";
|
||||
example = lib.literalExpression
|
||||
"with pkgs; [ mopidy-spotify mopidy-mpd mopidy-mpris ]";
|
||||
description = ''
|
||||
Mopidy extensions that should be loaded by the service.
|
||||
'';
|
||||
@ -53,7 +54,8 @@ in {
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
assertions = [
|
||||
(lib.hm.assertions.assertPlatform "services.mopidy" pkgs lib.platforms.linux)
|
||||
(lib.hm.assertions.assertPlatform "services.mopidy" pkgs
|
||||
lib.platforms.linux)
|
||||
];
|
||||
|
||||
systemd.user.services.mopidy = {
|
||||
@ -64,7 +66,9 @@ in {
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${mopidyEnv}/bin/mopidy --config ${lib.concatStringsSep ":" ([mopidyConf] ++ cfg.extraConfigFiles)}";
|
||||
ExecStart = "${mopidyEnv}/bin/mopidy --config ${
|
||||
lib.concatStringsSep ":" ([ mopidyConf ] ++ cfg.extraConfigFiles)
|
||||
}";
|
||||
};
|
||||
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
@ -78,7 +82,9 @@ in {
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${mopidyEnv}/bin/mopidy --config ${lib.concatStringsSep ":" ([mopidyConf] ++ cfg.extraConfigFiles)} local scan";
|
||||
ExecStart = "${mopidyEnv}/bin/mopidy --config ${
|
||||
lib.concatStringsSep ":" ([ mopidyConf ] ++ cfg.extraConfigFiles)
|
||||
} local scan";
|
||||
Type = "oneshot";
|
||||
};
|
||||
|
||||
|
@ -135,8 +135,7 @@ in {
|
||||
|
||||
# I try to avoid using Wine on NixOS because most of them uses FHS or something and I just want it to work but here goes.
|
||||
(lib.mkIf cfg.wine.enable {
|
||||
environment.systemPackages = with pkgs;
|
||||
[
|
||||
environment.systemPackages = with pkgs; [
|
||||
cfg.wine.package # The star of the show.
|
||||
winetricks # We do a little trickery with missing Windows runtimes.
|
||||
bottles # PlayOnLinux but better. :)
|
||||
|
@ -30,7 +30,8 @@ in {
|
||||
options.services.borgmatic = {
|
||||
jobs = lib.mkOption {
|
||||
type = with lib.types; attrsOf (submodule jobOption);
|
||||
description = "borgmatic jobs with each bearing a configuration file to be used.";
|
||||
description =
|
||||
"borgmatic jobs with each bearing a configuration file to be used.";
|
||||
default = { };
|
||||
example = {
|
||||
external-hard-drive = {
|
||||
@ -42,11 +43,8 @@ in {
|
||||
};
|
||||
|
||||
config = {
|
||||
systemd.services = (lib.mapAttrs'
|
||||
(name: settings:
|
||||
lib.nameValuePair
|
||||
("borgmatic-backup-" + name)
|
||||
({
|
||||
systemd.services = (lib.mapAttrs' (name: settings:
|
||||
lib.nameValuePair ("borgmatic-backup-" + name) ({
|
||||
unitConfig = {
|
||||
Description = "Backup with Borgmatic job '${name}'";
|
||||
Wants = [ "network-online.target" ];
|
||||
|
Loading…
Reference in New Issue
Block a user