Merge branch 'main' into teutat3s-bash

This commit is contained in:
teutat3s 2023-01-28 22:51:33 +01:00
commit 778ef916ca
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
9 changed files with 100 additions and 72 deletions

2
.git-blame-ignore-revs Normal file
View file

@ -0,0 +1,2 @@
# Formatted code using treefmt and alejandra
73bf158392a427d188b7aad36244b94506f57a15

View file

@ -29,8 +29,9 @@ in {
}; };
}; };
config = { config = {
# disable NetworkManager-wait-online by default # disable NetworkManager and systemd-networkd -wait-online by default
systemd.services.NetworkManager-wait-online.enable = lib.mkDefault false; systemd.services.NetworkManager-wait-online.enable = lib.mkDefault false;
systemd.services.systemd-networkd-wait-online.enable = lib.mkDefault false;
networking.networkmanager = { networking.networkmanager = {
# Enable networkmanager. REMEMBER to add yourself to group in order to use nm related stuff. # Enable networkmanager. REMEMBER to add yourself to group in order to use nm related stuff.

View file

@ -58,10 +58,13 @@ in {
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"f /dev/shm/looking-glass 0660 ${psCfg.user.name} kvm" "f /dev/shm/looking-glass 0660 ${psCfg.user.name} kvm"
]; ];
#networking.bridges.virbr1.interfaces = [ ]; #networking.bridges.virbr1.interfaces = [];
#networking.interfaces.virbr1 = { #networking.interfaces.virbr1 = {
# ipv4.addresses = [ # ipv4.addresses = [
# { address = "192.168.123.1"; prefixLength = 24; } # {
# address = "192.168.123.1";
# prefixLength = 24;
# }
# ]; # ];
#}; #};
}; };

View file

@ -6,13 +6,13 @@
}: { }: {
F-Sy-H = { F-Sy-H = {
pname = "F-Sy-H"; pname = "F-Sy-H";
version = "81315330ff4eb4bc13b03fe6ec5bbb6fee0f27ac"; version = "899f68b52b6b86a36cd8178eb0e9782d4aeda714";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "z-shell"; owner = "z-shell";
repo = "F-Sy-H"; repo = "F-Sy-H";
rev = "81315330ff4eb4bc13b03fe6ec5bbb6fee0f27ac"; rev = "899f68b52b6b86a36cd8178eb0e9782d4aeda714";
fetchSubmodules = false; fetchSubmodules = false;
sha256 = "sha256-2b/O/1SIhKgqHYjwy7yPCEb3EMXgkIvOk+FC4PbuQ8c="; sha256 = "sha256-zhaXjrNL0amxexbZm4Kr5Y/feq1+2zW0O6eo9iZhmi0=";
}; };
}; };
instant-nvim-nvfetcher = { instant-nvim-nvfetcher = {
@ -39,35 +39,35 @@
}; };
ohmyzsh = { ohmyzsh = {
pname = "ohmyzsh"; pname = "ohmyzsh";
version = "c35ca17258dd870f1724eeb92e9077177d2e3bed"; version = "39525e5ec36052a83fadd47f377a26d33df851bd";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ohmyzsh"; owner = "ohmyzsh";
repo = "ohmyzsh"; repo = "ohmyzsh";
rev = "c35ca17258dd870f1724eeb92e9077177d2e3bed"; rev = "39525e5ec36052a83fadd47f377a26d33df851bd";
fetchSubmodules = false; fetchSubmodules = false;
sha256 = "sha256-EA880CWKBxvMj6chH2pzoUKaJKEO+ACEnFcfh3Agjm8="; sha256 = "sha256-EU+GbjntLPzGzbWnTJ6vlOqelPead99HMONTbPrnX1w=";
}; };
}; };
powerlevel10k = { powerlevel10k = {
pname = "powerlevel10k"; pname = "powerlevel10k";
version = "cf83ab21e440ffa276a13ab5fd63b6372b674b5e"; version = "e7b2bb2372c5c7060d35c0b7a710f3f01bd4593b";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "romkatv"; owner = "romkatv";
repo = "powerlevel10k"; repo = "powerlevel10k";
rev = "cf83ab21e440ffa276a13ab5fd63b6372b674b5e"; rev = "e7b2bb2372c5c7060d35c0b7a710f3f01bd4593b";
fetchSubmodules = false; fetchSubmodules = false;
sha256 = "sha256-BBSyF+TFtfD7lDE+m7uEYOp/bct+/P8g3Q2SJPpx5nI="; sha256 = "sha256-zClUsh4U4XE8RD42kWdsXE0LrCDm9JL8NAWvj/n9kP4=";
}; };
}; };
rnix-lsp-nvfetcher = { rnix-lsp-nvfetcher = {
pname = "rnix-lsp-nvfetcher"; pname = "rnix-lsp-nvfetcher";
version = "7339d80b7bf415ea42d790e073fbd69d21d09db4"; version = "95d40673fe43642e2e1144341e86d0036abd95d9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nix-community"; owner = "nix-community";
repo = "rnix-lsp"; repo = "rnix-lsp";
rev = "7339d80b7bf415ea42d790e073fbd69d21d09db4"; rev = "95d40673fe43642e2e1144341e86d0036abd95d9";
fetchSubmodules = false; fetchSubmodules = false;
sha256 = "sha256-SKe5jEBHjjinb5R/fnJElwammKfof6zICc30E/we43Q="; sha256 = "sha256-F0s0m62S5bHNVWNHLZD6SeHiLrsDx98VQbRjDyIu+qQ=";
}; };
}; };
vim-apprentice-nvfetcher = { vim-apprentice-nvfetcher = {

View file

@ -1,6 +1,7 @@
self: self:
with self; '' with self; ''
#!/usr/bin/env bash #!/usr/bin/env bash
# terminal application launcher for sway, using fzf
# original command: # original command:
# Based on: https://github.com/swaywm/sway/issues/1367 # Based on: https://github.com/swaywm/sway/issues/1367
# bindsym $altkey+space exec termite --name=launcher -e \ # bindsym $altkey+space exec termite --name=launcher -e \

View file

@ -1,32 +1,47 @@
{ config, pkgs, ... }: {
let config,
pkgs,
...
}: let
user = config.pub-solar.user; user = config.pub-solar.user;
xdg = config.home-manager.users."${user.name}".xdg; xdg = config.home-manager.users."${user.name}".xdg;
in in '' [user]
''[user] ${
${if user.email != null then "email = ${user.email}" else ""} if user.email != null
${if user.fullName != null then "name = ${user.fullName}" else ""} then "email = ${user.email}"
${if user.gpgKeyId != null then "signingkey = ${user.gpgKeyId}" else ""} else ""
[core] }
editor = /etc/profiles/per-user/${config.pub-solar.user.name}/bin/nvim ${
excludesFile = /home/${config.pub-solar.user.name}/.config/git/global_gitignore if user.fullName != null
[alias] then "name = ${user.fullName}"
pol = pull else ""
ack = -c color.grep.linenumber=\"bold yellow\"\n -c color.grep.filename=\"bold green\"\n -c color.grep.match=\"reverse yellow\"\n grep --break --heading --line-number }
# define command which will be used when "nvim"is set as a merge tool ${
[mergetool] if user.gpgKeyId != null
prompt = false then "signingkey = ${user.gpgKeyId}"
[merge] else ""
tool = nvim }
[mergetool "nvim"] [core]
cmd = /etc/profiles/per-user/${config.pub-solar.user.name}/bin/nvim -f -c \"Gdiffsplit!\" \"$MERGED\" editor = /etc/profiles/per-user/${config.pub-solar.user.name}/bin/nvim
excludesFile = /home/${config.pub-solar.user.name}/.config/git/global_gitignore
[alias]
pol = pull
ack = -c color.grep.linenumber=\"bold yellow\"\n -c color.grep.filename=\"bold green\"\n -c color.grep.match=\"reverse yellow\"\n grep --break --heading --line-number
# define command which will be used when "nvim"is set as a merge tool
[commit] [mergetool]
gpgsign = true prompt = false
template = ${xdg.configHome}/git/gitmessage [merge]
[tag] tool = nvim
gpgsign = true [mergetool "nvim"]
[init] cmd = /etc/profiles/per-user/${config.pub-solar.user.name}/bin/nvim -f -c \"Gdiffsplit!\" \"$MERGED\"
defaultBranch = main
[pull] [commit]
rebase = false'' gpgsign = true
template = ${xdg.configHome}/git/gitmessage
[tag]
gpgsign = true
[init]
defaultBranch = main
[pull]
rebase = false''

View file

@ -1,22 +1,24 @@
{ config, pkgs, ... }: {
let config,
pkgs,
...
}: let
user = config.pub-solar.user; user = config.pub-solar.user;
xdg = config.home-manager.users."${user.name}".xdg; xdg = config.home-manager.users."${user.name}".xdg;
in in ''
'' # Title: Summary, imperative, start upper case, don't end with a period
# Title: Summary, imperative, start upper case, don't end with a period # No more than 50 chars. #### 50 chars is here: #
# No more than 50 chars. #### 50 chars is here: # #
#
# ^ Remember ending with an extra blank line
# ^ Remember ending with an extra blank line # Body: Explain *what* and *why* (not *how*). Include issue number.
# Body: Explain *what* and *why* (not *how*). Include issue number. # Wrap at 72 chars. ################################## which is here: #
# Wrap at 72 chars. ################################## which is here: # #
#
# ^ Remember ending with an extra blank line
# ^ Remember ending with an extra blank line # At the end: Include Co-authored-by for all contributors.
# At the end: Include Co-authored-by for all contributors. #
# # Co-authored-by: Example Name <email@example.com>
# Co-authored-by: Example Name <email@example.com>
'' ''

View file

@ -1,4 +1,6 @@
{ config, pkgs, ... }: {
let config,
in pkgs,
''tags'' ...
}: let
in ''tags''

View file

@ -39,15 +39,17 @@ in {
# override for our own welcome # override for our own welcome
devshell.name = pkgs.lib.mkForce "PubSolarOS"; devshell.name = pkgs.lib.mkForce "PubSolarOS";
devshell.startup.aliases.text = ''
alias nvfetcher="nvfetcher --config $PRJ_ROOT/sources.toml --build-dir PRJ_ROOT/pkgs/_sources"
'';
commands = with pkgs; commands = with pkgs;
[ [
(devos nix) (devos nix)
(devos agenix) (devos agenix)
(devos nvfetcher) {
category = "devos";
name = pkgs.nvfetcher.pname;
help = pkgs.nvfetcher.meta.description;
command = "cd $PRJ_ROOT/pkgs; ${pkgs.nvfetcher}/bin/nvfetcher -c ./sources.toml $@";
}
(linter alejandra) (linter alejandra)
(linter editorconfig-checker) (linter editorconfig-checker)
(linter nodePackages.prettier) (linter nodePackages.prettier)