1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 18:59:47 +01:00

tests: some minor cleanups

This commit is contained in:
Robert Helgesson 2023-07-08 10:12:35 +02:00
parent f288310b7a
commit af715ed857
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
12 changed files with 298 additions and 330 deletions

View file

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }:
{ config, ... }:
{
config = {
home.stateVersion = "23.05";
programs.beets = {
@ -25,5 +24,4 @@
home-files/.config/systemd/user/beets-mpdstats.service \
${./mpdstats-external-expected.service}
'';
};
}

View file

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }:
{ config, ... }:
{
config = {
home.stateVersion = "23.05";
services.mpd = {
@ -27,5 +26,4 @@
home-files/.config/systemd/user/beets-mpdstats.service \
${./mpdstats-expected.service}
'';
};
}

View file

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }:
{ config, ... }:
{
config = {
home.stateVersion = "23.05";
programs.beets = {
@ -16,5 +15,4 @@
home-files/.config/beets/config.yaml \
${./mpdupdate-expected.yaml}
'';
};
}

View file

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
config = {
programs.nnn = {
enable = true;
bookmarks = {
@ -51,5 +50,4 @@
done
'';
};
};
}

View file

@ -1,9 +1,6 @@
{ config, lib, pkgs, ... }:
with lib;
{ lib, pkgs, ... }:
{
config = {
programs.qutebrowser = {
enable = true;
@ -13,7 +10,7 @@ with lib;
normal = {
"<Ctrl-v>" = "spawn mpv {url}";
",l" = ''config-cycle spellcheck.languages ["en-GB"] ["en-US"]'';
"<F1>" = mkMerge [
"<F1>" = lib.mkMerge [
"config-cycle tabs.show never always"
"config-cycle statusbar.show in-mode always"
"config-cycle scrolling.bar never always"
@ -43,5 +40,4 @@ with lib;
config.bind("<Ctrl-y>", "prompt-yes", mode="prompt")''
}
'';
};
}

View file

@ -1,9 +1,6 @@
{ config, lib, pkgs, ... }:
with lib;
{ pkgs, ... }:
{
config = {
programs.qutebrowser = {
enable = true;
@ -29,5 +26,4 @@ with lib;
nixpkgs https://github.com/NixOS/nixpkgs''
}
'';
};
}

View file

@ -1,9 +1,6 @@
{ config, lib, pkgs, ... }:
with lib;
{ pkgs, ... }:
{
config = {
programs.qutebrowser = {
enable = true;
@ -46,5 +43,4 @@ with lib;
''
}
'';
};
}

View file

@ -1,5 +1,6 @@
{ config, lib, pkgs, ... }: {
config = {
{ pkgs, ... }:
{
programs.terminator = {
enable = true;
config = {
@ -20,5 +21,4 @@
background_color = "#002b36"''
}
'';
};
}

View file

@ -1,13 +1,10 @@
{ config, lib, pkgs, ... }:
with lib;
{ lib, ... }:
{
config = {
programs.topgrade = {
enable = true;
settings = mkMerge [
settings = lib.mkMerge [
{
disable = [ "sdkman" "flutter" "node" "nix" "home_manager" ];
@ -32,5 +29,4 @@ with lib;
home-files/.config/topgrade.toml \
${./settings-expected.toml}
'';
};
}

View file

@ -1,7 +1,5 @@
# Test that keybindings.json is created correctly.
{ config, lib, pkgs, ... }:
with lib;
{ pkgs, ... }:
let
bindings = [
@ -65,7 +63,6 @@ let
'';
in {
config = {
programs.vscode = {
enable = true;
keybindings = bindings;
@ -78,5 +75,4 @@ in {
assertPathNotExists "home-files/${settingsPath}"
'';
};
}

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, ... }:
let

View file

@ -1,9 +1,6 @@
{ config, lib, pkgs, ... }:
with lib;
{ config, pkgs, ... }:
{
config = {
programs.zsh = {
enable = true;
zplug = {
@ -48,5 +45,4 @@ with lib;
assertFileContains home-files/.zshrc \
'export ZPLUG_HOME=${config.programs.zsh.zplug.zplugHome}'
'';
};
}