Compare commits
11 Commits
ece19eadb8
...
c40b78db93
| Author | SHA1 | Date | |
|---|---|---|---|
|
c40b78db93
|
|||
|
8e2fe9ba0b
|
|||
|
7c627d2a42
|
|||
|
a477e7095b
|
|||
|
27041ff1fa
|
|||
|
bf1539e914
|
|||
|
0a52c5f1b2
|
|||
|
1a7112c21d
|
|||
|
515cfe3866
|
|||
|
8949fbea6b
|
|||
|
ba30d87ef4
|
@@ -21,7 +21,10 @@
|
|||||||
"workspace"
|
"workspace"
|
||||||
"Virt"
|
"Virt"
|
||||||
|
|
||||||
".ssh"
|
{
|
||||||
|
directory = ".ssh";
|
||||||
|
mode = "0700";
|
||||||
|
}
|
||||||
".local/state"
|
".local/state"
|
||||||
".local/share"
|
".local/share"
|
||||||
".local/share/nvim"
|
".local/share/nvim"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{ username, nixos-wsl, ... }:
|
{ username, inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
nixos-wsl.nixosModules.wsl
|
inputs.nixos-wsl.nixosModules.wsl
|
||||||
];
|
];
|
||||||
wsl.enable = true;
|
wsl.enable = true;
|
||||||
wsl.defaultUser = username;
|
wsl.defaultUser = username;
|
||||||
|
|||||||
@@ -162,10 +162,7 @@
|
|||||||
".android"
|
".android"
|
||||||
"Android"
|
"Android"
|
||||||
|
|
||||||
{
|
".ssh"
|
||||||
directory = ".ssh";
|
|
||||||
mode = "0700";
|
|
||||||
}
|
|
||||||
|
|
||||||
"bin"
|
"bin"
|
||||||
"workspace"
|
"workspace"
|
||||||
|
|||||||
@@ -110,8 +110,6 @@
|
|||||||
webui = pkgs.metacubexd;
|
webui = pkgs.metacubexd;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
|
||||||
|
|
||||||
sops.secrets.et-imxyy-nix = {
|
sops.secrets.et-imxyy-nix = {
|
||||||
sopsFile = sopsRoot + /et-imxyy-nix.toml;
|
sopsFile = sopsRoot + /et-imxyy-nix.toml;
|
||||||
format = "binary";
|
format = "binary";
|
||||||
|
|||||||
@@ -111,56 +111,13 @@ in
|
|||||||
};
|
};
|
||||||
environment.variables.NIX_REMOTE = "daemon";
|
environment.variables.NIX_REMOTE = "daemon";
|
||||||
|
|
||||||
# services.pipewire.enable = false;
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# alsa.enable = true;
|
|
||||||
# alsa.support32Bit = true;
|
|
||||||
# pulse.enable = true;
|
|
||||||
alsa.enable = false;
|
alsa.enable = false;
|
||||||
alsa.support32Bit = false;
|
alsa.support32Bit = false;
|
||||||
pulse.enable = false;
|
pulse.enable = false;
|
||||||
audio.enable = false;
|
audio.enable = false;
|
||||||
configPackages = [
|
|
||||||
/*
|
|
||||||
(pkgs.writeTextDir "share/pipewire/media-session.d/bluez-monitor.conf" ''
|
|
||||||
rules = [
|
|
||||||
{
|
|
||||||
actions = {
|
|
||||||
update-props = {
|
|
||||||
bluez5.autoswitch-profile = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
'')
|
|
||||||
*/
|
|
||||||
];
|
|
||||||
};
|
|
||||||
services.pipewire.wireplumber.extraConfig = {
|
|
||||||
/*
|
|
||||||
"10-bluez" = {
|
|
||||||
"monitor.bluez.properties" = {
|
|
||||||
"bluez5.enable-sbc-xq" = true;
|
|
||||||
"bluez5.enable-msbc" = true;
|
|
||||||
"bluez5.enable-hw-volume" = true;
|
|
||||||
"bluez5.roles" = [
|
|
||||||
"hsp_hs"
|
|
||||||
"hsp_ag"
|
|
||||||
"hfp_hf"
|
|
||||||
"hfp_ag"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
"11-bluetooth-policy" = {
|
|
||||||
"wireplumber.settings" = {
|
|
||||||
"bluetooth.autoswitch-to-headset-profile" = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
services.pulseaudio = {
|
services.pulseaudio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -177,8 +177,8 @@
|
|||||||
./config/hosts/${hostname}
|
./config/hosts/${hostname}
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.impermanence.nixosModules.impermanence
|
inputs.impermanence.nixosModules.impermanence
|
||||||
inputs.niri.nixosModules.niri
|
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
|
inputs.niri.nixosModules.niri
|
||||||
home
|
home
|
||||||
pkgsConf
|
pkgsConf
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -63,6 +63,9 @@ lib.my.makeSwitch {
|
|||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
programs.lazygit = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
lsd
|
lsd
|
||||||
|
|||||||
@@ -37,7 +37,10 @@ local extra_config = {
|
|||||||
settings = {
|
settings = {
|
||||||
rust_analyzer = {
|
rust_analyzer = {
|
||||||
check = {
|
check = {
|
||||||
command = "clippy"
|
command = "cargo clippy"
|
||||||
|
},
|
||||||
|
diagnostics = {
|
||||||
|
experimental = true,
|
||||||
},
|
},
|
||||||
formatting = {
|
formatting = {
|
||||||
command = { "rustfmt" },
|
command = { "rustfmt" },
|
||||||
@@ -47,22 +50,6 @@ local extra_config = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local on_attach = function(client, bufnr)
|
|
||||||
vim.api.nvim_create_autocmd("CursorHold", {
|
|
||||||
buffer = bufnr,
|
|
||||||
callback = function()
|
|
||||||
local opts = {
|
|
||||||
focusable = false,
|
|
||||||
close_events = { "BufLeave", "CursorMoved", "InsertEnter", "FocusLost" },
|
|
||||||
border = "rounded",
|
|
||||||
source = "always",
|
|
||||||
prefix = " ",
|
|
||||||
scope = "line",
|
|
||||||
}
|
|
||||||
vim.diagnostic.open_float(nil, opts)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||||
capabilities = vim.lsp.protocol.make_client_capabilities()
|
capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
capabilities.textDocument.foldingRange = {
|
capabilities.textDocument.foldingRange = {
|
||||||
@@ -73,7 +60,6 @@ local lspconfig = require("lspconfig")
|
|||||||
for _, server in ipairs(servers) do
|
for _, server in ipairs(servers) do
|
||||||
local extra = extra_config[server] or {}
|
local extra = extra_config[server] or {}
|
||||||
local config = {
|
local config = {
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = capabilities
|
capabilities = capabilities
|
||||||
}
|
}
|
||||||
for k, v in pairs(extra) do
|
for k, v in pairs(extra) do
|
||||||
@@ -82,7 +68,29 @@ for _, server in ipairs(servers) do
|
|||||||
lspconfig[server].setup(config)
|
lspconfig[server].setup(config)
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.diagnostic.config({
|
local diag_config1 = {
|
||||||
virtual_lines = true
|
virtual_text = {
|
||||||
})
|
severity = {
|
||||||
|
max = vim.diagnostic.severity.WARN,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
virtual_lines = {
|
||||||
|
severity = {
|
||||||
|
min = vim.diagnostic.severity.ERROR,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
local diag_config2 = {
|
||||||
|
virtual_text = true,
|
||||||
|
virtual_lines = false,
|
||||||
|
}
|
||||||
|
vim.diagnostic.config(diag_config1)
|
||||||
|
local diag_config_basic = false
|
||||||
|
vim.keymap.set("n", "<leader>ll", function()
|
||||||
|
diag_config_basic = not diag_config_basic
|
||||||
|
if diag_config_basic then
|
||||||
|
vim.diagnostic.config(diag_config2)
|
||||||
|
else
|
||||||
|
vim.diagnostic.config(diag_config1)
|
||||||
|
end
|
||||||
|
end, { desc = "Toggle diagnostic virtual_lines" })
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
}:
|
}:
|
||||||
lib.my.makeHomeProgramConfig {
|
lib.my.makeHomeProgramConfig {
|
||||||
inherit config;
|
inherit config;
|
||||||
programName = "neovim";
|
programName = "vscode";
|
||||||
optionPath = [
|
optionPath = [
|
||||||
"coding"
|
"coding"
|
||||||
"editor"
|
"editor"
|
||||||
@@ -15,12 +15,12 @@ lib.my.makeHomeProgramConfig {
|
|||||||
extraConfig = {
|
extraConfig = {
|
||||||
my.home = {
|
my.home = {
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
my.persist.homeDirs = [
|
my.persist.homeDirs = [
|
||||||
".config/VSCodium"
|
".config/VSCodium"
|
||||||
|
".vscode-oss"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
spawn-at-startup = map (c: { command = c; }) [
|
spawn-at-startup = map (c: { command = c; }) [
|
||||||
[ "waybar" ]
|
|
||||||
[ "${lib.getExe pkgs.xwayland-satellite-unstable}" ]
|
[ "${lib.getExe pkgs.xwayland-satellite-unstable}" ]
|
||||||
[ "${lib.getExe' pkgs.swaynotificationcenter "swaync"}" ]
|
[ "${lib.getExe' pkgs.swaynotificationcenter "swaync"}" ]
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ args@{
|
|||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
username,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -40,17 +41,21 @@ in
|
|||||||
xdg-desktop-portal-gnome
|
xdg-desktop-portal-gnome
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
services.displayManager.ly = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
animation = "matrix";
|
|
||||||
tty = 12;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
programs.niri = {
|
programs.niri = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkg;
|
package = pkg;
|
||||||
};
|
};
|
||||||
|
services.displayManager = {
|
||||||
|
autoLogin = {
|
||||||
|
enable = true;
|
||||||
|
user = username;
|
||||||
|
};
|
||||||
|
sddm = {
|
||||||
|
enable = true;
|
||||||
|
wayland.enable = true;
|
||||||
|
extraPackages = [ pkgs.where-is-my-sddm-theme ];
|
||||||
|
};
|
||||||
|
};
|
||||||
my.home = {
|
my.home = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wlr-randr
|
wlr-randr
|
||||||
@@ -70,7 +75,7 @@ in
|
|||||||
};
|
};
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.enable = false;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
xdg.configFile."waybar/config.jsonc".text = builtins.toJSON (import ./waybar/config.nix args);
|
xdg.configFile."waybar/config.jsonc".text = builtins.toJSON (import ./waybar/config.nix args);
|
||||||
xdg.configFile."waybar/style.css" = {
|
xdg.configFile."waybar/style.css" = {
|
||||||
|
|||||||
@@ -14,6 +14,11 @@ lib.my.makeHomeProgramConfig {
|
|||||||
pinentryPackage = pkgs.pinentry-curses;
|
pinentryPackage = pkgs.pinentry-curses;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
my.persist.homeDirs = [ ".gnupg" ];
|
my.persist.homeDirs = [
|
||||||
|
{
|
||||||
|
directory = ".gnupg";
|
||||||
|
mode = "0700";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
homeDirs = lib.mkOption {
|
homeDirs = lib.mkOption {
|
||||||
type = with lib.types; listOf str;
|
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = lib.literalExpression ''
|
example = lib.literalExpression ''
|
||||||
[
|
[
|
||||||
@@ -33,7 +32,6 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
nixosDirs = lib.mkOption {
|
nixosDirs = lib.mkOption {
|
||||||
type = with lib.types; listOf str;
|
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = lib.literalExpression ''
|
example = lib.literalExpression ''
|
||||||
[
|
[
|
||||||
@@ -46,7 +44,6 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
homeFiles = lib.mkOption {
|
homeFiles = lib.mkOption {
|
||||||
type = with lib.types; listOf str;
|
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = lib.literalExpression ''
|
example = lib.literalExpression ''
|
||||||
[
|
[
|
||||||
@@ -58,7 +55,6 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
nixosFiles = lib.mkOption {
|
nixosFiles = lib.mkOption {
|
||||||
type = with lib.types; listOf str;
|
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = lib.literalExpression ''
|
example = lib.literalExpression ''
|
||||||
[
|
[
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user