statix
This commit is contained in:
parent
01e082062d
commit
fd547a8e57
2
base.nix
2
base.nix
@ -37,7 +37,7 @@
|
||||
|
||||
# TODO: selectively whitelist
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.config.allowUnfreePredicate = (pkg: true);
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: true;
|
||||
nixpkgs.config.nonfreeLicensing = true; # used by ffmpeg
|
||||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
@ -76,7 +76,7 @@
|
||||
];
|
||||
|
||||
# nvidia bad
|
||||
nixpkgs.config.packageOverrides = (pkgs: {
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
/** /
|
||||
teams = pkgs.teams.overrideAttrs (old: rec {
|
||||
postInstall = (old.postInstall or "") + ''
|
||||
@ -111,5 +111,5 @@
|
||||
});
|
||||
});
|
||||
/**/
|
||||
});
|
||||
};
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
services.matrix-synapse = {
|
||||
#enable = true;
|
||||
settings = {
|
||||
server_name = "${config.networking.domain}"
|
||||
server_name = "${config.networking.domain}";
|
||||
public_baseurl = mkDomain "matrix";
|
||||
url_preview_enabled = false;
|
||||
max_upload_size = "100M";
|
||||
|
@ -28,7 +28,7 @@
|
||||
preferences.replaceTwitter = mkDomain "nitter"; # Replace Twitter links with links to this instance (blank to disable). default is ""
|
||||
preferences.replaceYouTube = lib.mkIf config.services.invidious.enable (mkDomain "invidious"); # Replace YouTube links with links to this instance (blank to disable). default is ""
|
||||
settings = lib.mkIf config.services.libreddit.enable {
|
||||
Preferences.replaceReddit = (mkDomain "libreddit"); # Replace Reddit links with links to this instance (blank to disable). default is ""
|
||||
Preferences.replaceReddit = mkDomain "libreddit"; # Replace Reddit links with links to this instance (blank to disable). default is ""
|
||||
};
|
||||
#preferences.stickyProfile = ; # Make profile sidebar stick to top. default is true
|
||||
preferences.theme = "Twitter Dark"; # Instance theme. default is "Nitter"
|
||||
|
@ -41,7 +41,7 @@
|
||||
statdPort = 4000;
|
||||
extraNfsdConfig = '''';
|
||||
};
|
||||
networking.firewall = lib.mkIf (config.services.nfs.server.enable) {
|
||||
networking.firewall = lib.mkIf config.services.nfs.server.enable {
|
||||
# for NFSv3; view with `rpcinfo -p`
|
||||
allowedTCPPorts = [ 111 2049 4000 4001 4002 ]; # 20048
|
||||
allowedUDPPorts = [ 111 2049 4000 4001 4002 ]; # 20048
|
||||
|
@ -13,15 +13,13 @@
|
||||
};
|
||||
# TODO: combine nameValuePair and listToAttrs
|
||||
joinSets = sets: builtins.foldl' (l: r: l // r) {} sets;
|
||||
in joinSets (
|
||||
# TODO: space in dirname is not supported
|
||||
(map (mkMount "/mnt/freon" "192.168.1.3:/Freon") [
|
||||
# TODO: space in dirname is not supported
|
||||
in joinSets (map (mkMount "/mnt/freon" "192.168.1.3:/Freon") [
|
||||
""
|
||||
"/Backups"
|
||||
"/ISO"
|
||||
"/Games"
|
||||
"/Images"
|
||||
])
|
||||
);
|
||||
]);
|
||||
|
||||
}
|
||||
|
@ -47,9 +47,8 @@
|
||||
};
|
||||
# TODO: combine nameValuePair and listToAttrs
|
||||
joinSets = sets: builtins.foldl' (l: r: l // r) {} sets;
|
||||
in joinSets (
|
||||
# TODO: space in dirname is not supported
|
||||
(map (mkMount "/mnt/fridgepool" "10.48.101.252:/pub") [
|
||||
# TODO: space in dirname is not supported
|
||||
in joinSets (map (mkMount "/mnt/fridgepool" "10.48.101.252:/pub") [
|
||||
# zfs list -rHo mountpoint,sharenfs fridpool/pub | grep ro= | cut -f1
|
||||
""
|
||||
"/ebook"
|
||||
@ -114,7 +113,6 @@
|
||||
"/software/win"
|
||||
"/wallpapers"
|
||||
"/webcomics"
|
||||
])
|
||||
);
|
||||
]);
|
||||
|
||||
}
|
||||
|
@ -13,16 +13,14 @@
|
||||
};
|
||||
# TODO: combine nameValuePair and listToAttrs
|
||||
joinSets = sets: builtins.foldl' (l: r: l // r) {} sets;
|
||||
in joinSets (
|
||||
# TODO: depend on nox.networking.interfaces.eno1.ipv4.addresses
|
||||
(map (mkMount "/mnt/meconium" "192.168.1.8:/Meconium" ) [
|
||||
# TODO: space in dirname is not supported
|
||||
in joinSets (map (mkMount "/mnt/meconium" "192.168.1.8:/Meconium" ) [
|
||||
""
|
||||
"/backups"
|
||||
"/backups/rocm"
|
||||
"/beets_music"
|
||||
#"/garage"
|
||||
#"/garage/gunktrunk"
|
||||
])
|
||||
);
|
||||
]);
|
||||
|
||||
}
|
||||
|
@ -13,9 +13,8 @@
|
||||
};
|
||||
# TODO: combine nameValuePair and listToAttrs
|
||||
joinSets = sets: builtins.foldl' (l: r: l // r) {} sets;
|
||||
in joinSets (
|
||||
# TODO: space in dirname is not supported
|
||||
(map (mkMount "/mnt/reidun" "192.168.1.3:/Reidun/shared") [
|
||||
# TODO: space in dirname is not supported
|
||||
in joinSets (map (mkMount "/mnt/reidun" "192.168.1.3:/Reidun/shared") [
|
||||
""
|
||||
#"/Backups"
|
||||
#"/Comics"
|
||||
@ -54,7 +53,6 @@
|
||||
"/Work/Programming"
|
||||
"/Work/School"
|
||||
"/pub"
|
||||
])
|
||||
);
|
||||
]);
|
||||
|
||||
}
|
||||
|
24
statix.toml
Normal file
24
statix.toml
Normal file
@ -0,0 +1,24 @@
|
||||
ignore = ['.direnv']
|
||||
nix_version = '2.18'
|
||||
disabled = [
|
||||
# "bool_comparison", # W01
|
||||
# "empty_let_in", # W02
|
||||
"manual_inherit", # W03
|
||||
"manual_inherit_from", # W04
|
||||
# "legacy_let_syntax", # W05
|
||||
# "collapsible_let_in", # W06
|
||||
# "eta_reduction", # W07
|
||||
# "useless_parens", # W08
|
||||
# "empty_pattern", # W10
|
||||
# "redundant_pattern_bind", # W11
|
||||
# "unquoted_uri", # W12
|
||||
# "deprecated_is_null", # W13
|
||||
# "empty_inherit", # W14
|
||||
# "faster_groupby", # W15
|
||||
# "faster_zipattrswith", # W16
|
||||
# "deprecated_to_path", # W17
|
||||
# "bool_simplification", # W18
|
||||
# "useless_has_attr", # W19
|
||||
"repeated_keys", # W20
|
||||
# "empty_list_concat", # W23
|
||||
]
|
@ -64,7 +64,7 @@ in {
|
||||
_complete_jump_marks() {
|
||||
local curw=''${COMP_WORDS[COMP_CWORD]}
|
||||
local wordlist=$(find "$_JUMP_MARKPATH" -type l -printf "%f\n")
|
||||
COMPREPLY=($(compgen -W ''\'''${wordlist[@]}' -- "$curw"))
|
||||
COMPREPLY=($(compgen -W ''\''${wordlist[@]}' -- "$curw"))
|
||||
return 0
|
||||
}
|
||||
complete -F _complete_jump_marks jump unmark
|
||||
|
@ -2,6 +2,8 @@
|
||||
# found by running `nix run nixpkgs#xdg-ninja`
|
||||
|
||||
# TODO:
|
||||
/** /
|
||||
|
||||
export ANDROID_HOME="$XDG_DATA_HOME"/android
|
||||
export HISTFILE="${XDG_STATE_HOME}"/bash/history
|
||||
export CARGO_HOME="$XDG_DATA_HOME"/cargo
|
||||
@ -18,5 +20,6 @@
|
||||
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
|
||||
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
|
||||
export VAGRANT_HOME="$XDG_DATA_HOME"/vagrant
|
||||
/**/
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user