mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Compare commits
2 commits
72ef424ba1
...
0ad0205310
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ad0205310 | |||
| 69ac84932a |
5 changed files with 42 additions and 21 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 MiB |
|
|
@ -1,13 +1,21 @@
|
||||||
{ config, lib, pkgs, inputs, system, sources, modulesPath, ... }:
|
{
|
||||||
let cfg = config.mods;
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
system,
|
||||||
|
sources,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.mods;
|
||||||
in {
|
in {
|
||||||
# Hardware
|
# Hardware
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
"${
|
"${
|
||||||
builtins.fetchTarball {
|
builtins.fetchTarball {
|
||||||
url =
|
url = "https://github.com/nix-community/disko/archive/refs/tags/v1.12.0.tar.gz";
|
||||||
"https://github.com/nix-community/disko/archive/refs/tags/v1.12.0.tar.gz";
|
|
||||||
sha256 = "0wbx518d2x54yn4xh98cgm65wvj0gpy6nia6ra7ns4j63hx14fkq";
|
sha256 = "0wbx518d2x54yn4xh98cgm65wvj0gpy6nia6ra7ns4j63hx14fkq";
|
||||||
}
|
}
|
||||||
}/module.nix"
|
}/module.nix"
|
||||||
|
|
@ -21,6 +29,7 @@ in {
|
||||||
pkgs.libratbag
|
pkgs.libratbag
|
||||||
pkgs.piper
|
pkgs.piper
|
||||||
pkgs.libpq
|
pkgs.libpq
|
||||||
|
pkgs.qmk
|
||||||
];
|
];
|
||||||
|
|
||||||
# System
|
# System
|
||||||
|
|
@ -28,8 +37,8 @@ in {
|
||||||
networking.hostName = "murk";
|
networking.hostName = "murk";
|
||||||
networking.hostId = "a2309090";
|
networking.hostId = "a2309090";
|
||||||
mods.home.file = ./home.nix;
|
mods.home.file = ./home.nix;
|
||||||
nix.settings.trusted-users = [ "root" "muon" ];
|
nix.settings.trusted-users = ["root" "muon"];
|
||||||
users.users.muon.extraGroups = [ "docker" ];
|
users.users.muon.extraGroups = ["docker"];
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
mods.desktop.enable = true;
|
mods.desktop.enable = true;
|
||||||
|
|
@ -48,7 +57,7 @@ in {
|
||||||
|
|
||||||
# Persist
|
# Persist
|
||||||
environment.persistence."/persist" = {
|
environment.persistence."/persist" = {
|
||||||
directories = [ "/etc/NetworkManager" "/var/lib/NetworkManager" ];
|
directories = ["/etc/NetworkManager" "/var/lib/NetworkManager"];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Hardware preferences
|
# Hardware preferences
|
||||||
|
|
@ -88,7 +97,7 @@ in {
|
||||||
mode = "2560x1440";
|
mode = "2560x1440";
|
||||||
position = "0x0";
|
position = "0x0";
|
||||||
rate = "60.00";
|
rate = "60.00";
|
||||||
dpi = 96;
|
dpi = 72;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
right = {
|
right = {
|
||||||
|
|
@ -98,7 +107,7 @@ in {
|
||||||
mode = "2560x1440";
|
mode = "2560x1440";
|
||||||
position = "2560x0";
|
position = "2560x0";
|
||||||
rate = "60.00";
|
rate = "60.00";
|
||||||
dpi = 96;
|
dpi = 72;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -106,6 +115,9 @@ in {
|
||||||
## Mouse
|
## Mouse
|
||||||
services.libinput.mouse.accelProfile = "flat";
|
services.libinput.mouse.accelProfile = "flat";
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
hardware.keyboard.qmk.enable = true;
|
||||||
|
|
||||||
# Version of first install
|
# Version of first install
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,14 +27,13 @@ in {
|
||||||
pulseaudio
|
pulseaudio
|
||||||
pavucontrol
|
pavucontrol
|
||||||
alsa-utils
|
alsa-utils
|
||||||
qmk
|
rustdesk-flutter
|
||||||
qmk_hid
|
|
||||||
qmk-udev-rules
|
|
||||||
|
|
||||||
docker
|
docker
|
||||||
fish
|
fish
|
||||||
devenv
|
devenv
|
||||||
dbeaver-bin
|
dbeaver-bin
|
||||||
|
ruff
|
||||||
]
|
]
|
||||||
# Non-free </3
|
# Non-free </3
|
||||||
++ [google-cloud-sdk google-cloud-sql-proxy];
|
++ [google-cloud-sdk google-cloud-sql-proxy];
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 283 KiB After Width: | Height: | Size: 19 MiB |
|
|
@ -1,8 +1,14 @@
|
||||||
{ pkgs, lib, config, inputs, ... }: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
options.mods.terminal.development.enable =
|
options.mods.terminal.development.enable =
|
||||||
lib.mkEnableOption "enables cli editor";
|
lib.mkEnableOption "enables cli editor";
|
||||||
|
|
||||||
imports = [ inputs.nvf.homeManagerModules.default ];
|
imports = [inputs.nvf.homeManagerModules.default];
|
||||||
|
|
||||||
config = lib.mkIf config.mods.terminal.development.enable {
|
config = lib.mkIf config.mods.terminal.development.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
@ -36,18 +42,18 @@
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
keys.normal = {
|
keys.normal = {
|
||||||
"esc" = [ "collapse_selection" "keep_primary_selection" ];
|
"esc" = ["collapse_selection" "keep_primary_selection"];
|
||||||
"Z" = {
|
"Z" = {
|
||||||
"Q" = ":quit!";
|
"Q" = ":quit!";
|
||||||
"Z" = ":write-quit!";
|
"Z" = ":write-quit!";
|
||||||
};
|
};
|
||||||
"V" = [ "select_mode" "extend_to_line_bounds" ];
|
"V" = ["select_mode" "extend_to_line_bounds"];
|
||||||
};
|
};
|
||||||
editor = {
|
editor = {
|
||||||
line-number = "relative";
|
line-number = "relative";
|
||||||
completion-replace = true;
|
completion-replace = true;
|
||||||
bufferline = "always";
|
bufferline = "always";
|
||||||
rulers = [ 80 ];
|
rulers = [80];
|
||||||
soft-wrap.enable = true;
|
soft-wrap.enable = true;
|
||||||
indent-guides.render = true;
|
indent-guides.render = true;
|
||||||
cursor-shape = {
|
cursor-shape = {
|
||||||
|
|
@ -76,18 +82,18 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "glsl";
|
name = "glsl";
|
||||||
language-servers = [ "glsl" ];
|
language-servers = ["glsl"];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "wgsl";
|
name = "wgsl";
|
||||||
language-servers = [ "wgsl" ];
|
language-servers = ["wgsl"];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "python";
|
name = "python";
|
||||||
auto-format = true;
|
auto-format = true;
|
||||||
formatter = {
|
formatter = {
|
||||||
command = "${pkgs.black}/bin/black";
|
command = "${pkgs.black}/bin/black";
|
||||||
args = [ "-" "--quiet" "--line-length=79" ];
|
args = ["-" "--quiet" "--line-length=79"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
@ -116,8 +122,12 @@
|
||||||
bash.enable = true;
|
bash.enable = true;
|
||||||
rust.enable = true;
|
rust.enable = true;
|
||||||
rust.crates.enable = true;
|
rust.crates.enable = true;
|
||||||
|
|
||||||
python.enable = true;
|
python.enable = true;
|
||||||
|
python.lsp.server = "pyright";
|
||||||
|
# python.lsp.package = [(lib.getExe pkgs.ruff) "server"];
|
||||||
python.format.type = "ruff";
|
python.format.type = "ruff";
|
||||||
|
|
||||||
clang.enable = true;
|
clang.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -140,7 +150,7 @@
|
||||||
todo-comments.enable = true;
|
todo-comments.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
spellcheck = { enable = true; };
|
spellcheck = {enable = true;};
|
||||||
|
|
||||||
binds = {
|
binds = {
|
||||||
whichKey.enable = true;
|
whichKey.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue