misc fixes
This commit is contained in:
parent
6d8e1d85ac
commit
ff839c3153
|
@ -46,10 +46,10 @@
|
||||||
ublock-origin
|
ublock-origin
|
||||||
unpaywall
|
unpaywall
|
||||||
vimium-c
|
vimium-c
|
||||||
|
yomitan
|
||||||
youtube-shorts-block
|
youtube-shorts-block
|
||||||
]) ++ (with pkgs.firefoxAddons; [
|
]) ++ (with pkgs.firefoxAddons; [
|
||||||
fastforwardteam
|
fastforwardteam
|
||||||
rikaitan
|
|
||||||
youtube-nonstop
|
youtube-nonstop
|
||||||
]);
|
]);
|
||||||
search.default = "search.pavluk.org";
|
search.default = "search.pavluk.org";
|
||||||
|
|
|
@ -473,7 +473,7 @@
|
||||||
vimdiffAlias = true;
|
vimdiffAlias = true;
|
||||||
|
|
||||||
extraConfigLua = compile "main" (
|
extraConfigLua = compile "main" (
|
||||||
builtins.concatLists (map (x: if x?plugin && x?config then lib.toList x.config else [ ]) plugins) ++ [
|
builtins.concatLists (map (x: lib.toList (x.config or [ ])) plugins) ++ [
|
||||||
(kmSetNs {
|
(kmSetNs {
|
||||||
"<C-X>" = {
|
"<C-X>" = {
|
||||||
rhs = DEFUN (vim.fn.system [ "chmod" "+x" (vim.fn.expand "%") ]);
|
rhs = DEFUN (vim.fn.system [ "chmod" "+x" (vim.fn.expand "%") ]);
|
||||||
|
|
|
@ -19,7 +19,7 @@ def main():
|
||||||
addr = opts["addresses"][cfg]
|
addr = opts["addresses"][cfg]
|
||||||
build_host = opts["build_host"].get(cfg)
|
build_host = opts["build_host"].get(cfg)
|
||||||
act = args[2]
|
act = args[2]
|
||||||
assert act in ["boot", "switch", "test"]
|
assert act in ["boot", "switch", "test", "build"]
|
||||||
args = args[3:]
|
args = args[3:]
|
||||||
args.extend(
|
args.extend(
|
||||||
[
|
[
|
||||||
|
@ -66,6 +66,8 @@ def main():
|
||||||
ret = json.loads(ret.stdout)[0]["outputs"]["out"]
|
ret = json.loads(ret.stdout)[0]["outputs"]["out"]
|
||||||
print('output', ret)
|
print('output', ret)
|
||||||
cmds = []
|
cmds = []
|
||||||
|
if act in ["build"]:
|
||||||
|
return
|
||||||
if act in ["boot", "switch"]:
|
if act in ["boot", "switch"]:
|
||||||
cmds.append(["nix-env", "-p", "/nix/var/nix/profiles/system", "--set", ret])
|
cmds.append(["nix-env", "-p", "/nix/var/nix/profiles/system", "--set", ret])
|
||||||
cmds.append(
|
cmds.append(
|
||||||
|
|
|
@ -129,7 +129,7 @@
|
||||||
services.printing.drivers = [ pkgs.hplip ];
|
services.printing.drivers = [ pkgs.hplip ];
|
||||||
# from nix-gaming
|
# from nix-gaming
|
||||||
services.pipewire.lowLatency = {
|
services.pipewire.lowLatency = {
|
||||||
enable = false;
|
enable = true;
|
||||||
# 96 is mostly fine but has some xruns
|
# 96 is mostly fine but has some xruns
|
||||||
# 128 has xruns every now and then too
|
# 128 has xruns every now and then too
|
||||||
quantum = 128;
|
quantum = 128;
|
||||||
|
|
|
@ -124,6 +124,22 @@ in {
|
||||||
# nixos-hardware uses mkDefault here, so we use slightly higher priority
|
# nixos-hardware uses mkDefault here, so we use slightly higher priority
|
||||||
services.libinput.enable = mkForceDefault (!cfg.minimal);
|
services.libinput.enable = mkForceDefault (!cfg.minimal);
|
||||||
programs.fuse.userAllowOther = true;
|
programs.fuse.userAllowOther = true;
|
||||||
|
|
||||||
|
# registry is used for the new flaky nix command
|
||||||
|
nix.registry =
|
||||||
|
builtins.mapAttrs
|
||||||
|
(_: v: { flake = v; })
|
||||||
|
(lib.filterAttrs (k: v: (k != "self" || !cfg.minimal) && v?outputs) inputs);
|
||||||
|
|
||||||
|
# add import'able flake inputs (like nixpkgs) to nix path
|
||||||
|
# nix path is used for old nix commands (like nix-build, nix-shell)
|
||||||
|
environment.etc = lib.mapAttrs'
|
||||||
|
(name: value: {
|
||||||
|
name = "nix/inputs/${name}";
|
||||||
|
value.source = value.outPath or "${value}";
|
||||||
|
})
|
||||||
|
(lib.filterAttrs (k: v: (k != "self" || !cfg.minimal) && builtins.pathExists "${v}/default.nix") inputs);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
(lib.mkIf cfg.gettyAutologin {
|
(lib.mkIf cfg.gettyAutologin {
|
||||||
|
@ -183,21 +199,6 @@ in {
|
||||||
})
|
})
|
||||||
|
|
||||||
(lib.mkIf (!cfg.minimal) {
|
(lib.mkIf (!cfg.minimal) {
|
||||||
# registry is used for the new flaky nix command
|
|
||||||
nix.registry =
|
|
||||||
builtins.mapAttrs
|
|
||||||
(_: v: { flake = v; })
|
|
||||||
(lib.filterAttrs (_: v: v?outputs) inputs);
|
|
||||||
|
|
||||||
# add import'able flake inputs (like nixpkgs) to nix path
|
|
||||||
# nix path is used for old nix commands (like nix-build, nix-shell)
|
|
||||||
environment.etc = lib.mapAttrs'
|
|
||||||
(name: value: {
|
|
||||||
name = "nix/inputs/${name}";
|
|
||||||
value.source = value.outPath or "${value}";
|
|
||||||
})
|
|
||||||
(lib.filterAttrs (_: v: builtins.pathExists "${v}/default.nix") inputs);
|
|
||||||
|
|
||||||
nix.nixPath = [ "/etc/nix/inputs" ];
|
nix.nixPath = [ "/etc/nix/inputs" ];
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
|
|
Loading…
Reference in a new issue