Ran nix fmt against nixfmt-rfc-style
This commit is contained in:
parent
43e53f8fb2
commit
8bcd4fc6b8
62 changed files with 784 additions and 287 deletions
|
|
@ -1,5 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ ./home.nix ./programs.nix ];
|
||||
imports = [
|
||||
./home.nix
|
||||
./programs.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,18 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
home = {
|
||||
username = "user";
|
||||
homeDirectory = "/home/user";
|
||||
stateVersion = "22.05";
|
||||
sessionVariables = { EDITOR = "hx"; };
|
||||
sessionVariables = {
|
||||
EDITOR = "hx";
|
||||
};
|
||||
packages = with pkgs; [ nix-your-shell ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs = {
|
||||
|
|
@ -29,15 +34,20 @@
|
|||
space = "file_picker";
|
||||
w = ":w";
|
||||
q = ":q";
|
||||
esc = [ "collapse_selection" "keep_primary_selection" ];
|
||||
esc = [
|
||||
"collapse_selection"
|
||||
"keep_primary_selection"
|
||||
];
|
||||
};
|
||||
};
|
||||
languages = {
|
||||
language = [{
|
||||
name = "nix";
|
||||
auto-format = true;
|
||||
formatter.command = "nixfmt";
|
||||
}];
|
||||
language = [
|
||||
{
|
||||
name = "nix";
|
||||
auto-format = true;
|
||||
formatter.command = "nixfmt";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ ./programs.nix ./programs ];
|
||||
imports = [
|
||||
./programs.nix
|
||||
./programs
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
fonts.fontconfig.enable = true;
|
||||
|
|
@ -21,8 +26,7 @@
|
|||
functions = {
|
||||
sysrebuild = "nh os switch --ask";
|
||||
sysrebuild-boot = "nh os boot --ask";
|
||||
sysupdate =
|
||||
"nix flake update --commit-lock-file /home/user/Projects/personal/nix-config";
|
||||
sysupdate = "nix flake update --commit-lock-file /home/user/Projects/personal/nix-config";
|
||||
code = ''
|
||||
wezterm cli split-pane --top --percent=75 -- hx
|
||||
wezterm cli activate-pane-direction up
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ ./wezterm.nix ./webapps.nix ];
|
||||
imports = [
|
||||
./wezterm.nix
|
||||
./webapps.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
{ lib, pkgs, ... }:
|
||||
let
|
||||
mkWebApp = webAppName: webAppLink: webAppIconLink: webAppIconHash:
|
||||
let name = lib.strings.replaceStrings [ " " ] [ "" ] webAppName;
|
||||
in pkgs.makeDesktopItem {
|
||||
mkWebApp =
|
||||
webAppName: webAppLink: webAppIconLink: webAppIconHash:
|
||||
let
|
||||
name = lib.strings.replaceStrings [ " " ] [ "" ] webAppName;
|
||||
in
|
||||
pkgs.makeDesktopItem {
|
||||
inherit name;
|
||||
icon = pkgs.fetchurl {
|
||||
url = webAppIconLink;
|
||||
|
|
@ -12,15 +15,25 @@ let
|
|||
categories = [ "Network" ];
|
||||
startupNotify = true;
|
||||
startupWMClass = "chrome-${
|
||||
lib.strings.replaceStrings [ "https://" "/" ] [ "" "" ] webAppLink
|
||||
}__-Default";
|
||||
exec =
|
||||
"${pkgs.ungoogled-chromium}/bin/chromium --no-first-run --no-default-browser-check --no-crash-upload --app=${webAppLink} --class=${name}";
|
||||
lib.strings.replaceStrings
|
||||
[
|
||||
"https://"
|
||||
"/"
|
||||
]
|
||||
[
|
||||
""
|
||||
""
|
||||
]
|
||||
webAppLink
|
||||
}__-Default";
|
||||
exec = "${pkgs.ungoogled-chromium}/bin/chromium --no-first-run --no-default-browser-check --no-crash-upload --app=${webAppLink} --class=${name}";
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
(mkWebApp "YT Music" "https://music.youtube.com"
|
||||
"https://raw.githubusercontent.com/vinceliuice/Qogir-icon-theme/fff0c7f3747b9b9ddf94c6f997847d47896097c2/src/scalable/apps/youtube-music.svg"
|
||||
"sha256-T+v2JOOW+nEwH/9W2PFOrw/315/bCoKHw01KNh2U8IE=")
|
||||
"sha256-T+v2JOOW+nEwH/9W2PFOrw/315/bCoKHw01KNh2U8IE="
|
||||
)
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs.wezterm = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue