-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nix-community:master' into master
- Loading branch information
Showing
19 changed files
with
291 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
let | ||
|
||
inherit (lib) mkIf mkOption types; | ||
|
||
cfg = config.programs.vifm; | ||
|
||
in { | ||
meta.maintainers = [ lib.hm.maintainers.aabccd021 ]; | ||
|
||
options.programs.vifm = { | ||
enable = lib.mkEnableOption "vifm, a Vim-like file manager"; | ||
|
||
package = lib.mkPackageOption pkgs "vifm" { }; | ||
|
||
extraConfig = mkOption { | ||
type = types.lines; | ||
default = ""; | ||
example = "mark h ~/"; | ||
description = '' | ||
Extra lines added to the {file}`$XDG_CONFIG_HOME/vifm/vifmrc` file. | ||
''; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
home.packages = [ cfg.package ]; | ||
|
||
xdg.configFile."vifm/vifmrc" = | ||
mkIf (cfg.extraConfig != "") { text = cfg.extraConfig; }; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
let cfg = config.services.snixembed; | ||
in { | ||
meta.maintainers = [ maintainers.DamienCassou ]; | ||
|
||
options = { | ||
services.snixembed = { | ||
enable = mkEnableOption | ||
"snixembed: proxy StatusNotifierItems as XEmbedded systemtray-spec icons"; | ||
|
||
package = mkPackageOption pkgs "snixembed" { }; | ||
|
||
beforeUnits = mkOption { | ||
type = with types; listOf str; | ||
default = [ ]; | ||
example = [ "safeeyes.service" ]; | ||
description = '' | ||
List of other units that should be started after snixembed. | ||
''; | ||
}; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
assertions = [ | ||
(hm.assertions.assertPlatform "services.snixembed" pkgs platforms.linux) | ||
]; | ||
|
||
systemd.user.services.snixembed = { | ||
Install.WantedBy = [ "graphical-session.target" ]; | ||
|
||
Unit = { | ||
Description = "snixembed"; | ||
PartOf = [ "graphical-session.target" ]; | ||
StartLimitIntervalSec = 100; | ||
StartLimitBurst = 10; | ||
Before = cfg.beforeUnits; | ||
}; | ||
|
||
Service = { | ||
ExecStart = getExe pkgs.snixembed; | ||
Restart = "on-failure"; | ||
RestartSec = 3; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
vifm-example-settings = ./example-settings.nix; | ||
vifm-empty-settings = ./empty-settings.nix; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ ... }: | ||
|
||
{ | ||
programs.vifm.enable = true; | ||
|
||
test.stubs.vifm = { }; | ||
|
||
nmt.script = '' | ||
assertPathNotExists home-files/.config/vifm | ||
''; | ||
} |
Oops, something went wrong.