-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from yurrriq/ubuntu
[sruxps] NixOS -> Ubuntu
- Loading branch information
Showing
43 changed files
with
775 additions
and
678 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,7 @@ scripts | |
.sops.yaml | ||
src | ||
.stow-local-ignore | ||
todo | ||
TODO.txt | ||
VERSION | ||
.yamllint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# https://gist.github.com/freizl/3246474#file-xmonad-desktop-L1 | ||
|
||
setxkbmap -option "ctrl:nocaps,compose:ralt" | ||
|
||
sudo apt install curl git network-manager-openconnect | ||
|
||
sh <(curl -L https://nixos.org/nix/install) --daemon | ||
|
||
echo "export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}" >>~/.bashrc | ||
|
||
mkdir -p ~/.config/nix | ||
echo "experimental-features = flakes nix-command" >>~/.config/nix/nix.conf | ||
|
||
nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz home-manager | ||
nix-channel --update | ||
nix-shell '<home-manager>' -A install | ||
|
||
rmdir ~/.local/share/applications | ||
ln -s ~/.nix-profile/share/applications ~/.local/share/ | ||
|
||
sudo snap install zoom-client | ||
|
||
# λ xinput list --name-only | grep -m1 Touchpad | xargs -I% xinput list --id-only '%' | ||
# 13 | ||
|
||
xinput --set-prop 13 "libinput Accel Speed" 1 | ||
xinput --set-prop 13 "libinput Tapping Enabled" 1 | ||
|
||
# Fix/replace xbacklight | ||
|
||
# programs.ssh and/or this ~/.ssh/config | ||
# Host 10.*.*.* | ||
# LogLevel QUIET | ||
# StrictHostKeyChecking accept-new | ||
# UserKnownHostsFile /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.24.1 | ||
3.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ pkgs, ... }: | ||
{ | ||
fonts.fontconfig.enable = true; | ||
home.packages = with pkgs; [ | ||
(nerdfonts.override { fonts = [ "Iosevka" ]; }) | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,74 +2,76 @@ | |
|
||
{ | ||
|
||
programs.git.extraConfig = { | ||
|
||
color = { | ||
diff-highlight = { | ||
oldNormal = "red bold"; | ||
oldHighlight = "red bold 52"; | ||
newNormal = "green bold"; | ||
newHighlight = "green bold 22"; | ||
}; | ||
|
||
diff = { | ||
meta = 227; | ||
frag = "magenta bold"; | ||
commit = "227 bold"; | ||
old = "red bold"; | ||
new = "green bold"; | ||
whitespace = "red reverse"; | ||
}; | ||
|
||
status = { | ||
added = "green"; | ||
changed = "yellow"; | ||
untracked = "cyan"; | ||
programs.git = { | ||
delta = { | ||
enable = true; | ||
options = { | ||
plus-style = "syntax #012800"; | ||
minus-style = "syntax #340001"; | ||
syntax-theme = "Monokai Extended"; | ||
navigate = true; | ||
}; | ||
ui = true; | ||
}; | ||
|
||
commit.template = "${config.xdg.dataHome}/git/commit.template"; | ||
extraConfig = { | ||
color = { | ||
diff-highlight = { | ||
oldNormal = "red bold"; | ||
oldHighlight = "red bold 52"; | ||
newNormal = "green bold"; | ||
newHighlight = "green bold 22"; | ||
}; | ||
|
||
diff = { | ||
meta = 227; | ||
frag = "magenta bold"; | ||
commit = "227 bold"; | ||
old = "red bold"; | ||
new = "green bold"; | ||
whitespace = "red reverse"; | ||
}; | ||
|
||
status = { | ||
added = "green"; | ||
changed = "yellow"; | ||
untracked = "cyan"; | ||
}; | ||
ui = true; | ||
}; | ||
|
||
core.pager = "delta"; | ||
commit.template = "${config.xdg.dataHome}/git/commit.template"; | ||
|
||
credential = { | ||
helper = "${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper"; | ||
useHttpPath = true; | ||
}; | ||
|
||
delta = { | ||
plus-style = "syntax #012800"; | ||
minus-style = "syntax #340001"; | ||
syntax-theme = "Monokai Extended"; | ||
navigate = true; | ||
}; | ||
|
||
diff = { | ||
sopsdiffer = { | ||
textconv = "sops -d"; | ||
credential = { | ||
helper = "${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper"; | ||
useHttpPath = true; | ||
}; | ||
}; | ||
|
||
difftool = { | ||
pdfdiffer.cmd = "diff-pdf --view \"$LOCAL\" \"$REMOTE\""; | ||
prompt = false; | ||
trustExitCode = true; | ||
}; | ||
diff = { | ||
sopsdiffer = { | ||
textconv = "sops -d"; | ||
}; | ||
}; | ||
|
||
fetch.prune = true; | ||
difftool = { | ||
pdfdiffer.cmd = "diff-pdf --view \"$LOCAL\" \"$REMOTE\""; | ||
prompt = false; | ||
trustExitCode = true; | ||
}; | ||
|
||
init.defaultBranch = "main"; | ||
fetch.prune = true; | ||
|
||
interactive.diffFilter = "delta --color-only"; | ||
init.defaultBranch = "main"; | ||
|
||
pull.ff = "only"; | ||
pull.ff = "only"; | ||
|
||
rerere.enabled = true; | ||
rerere.enabled = true; | ||
|
||
url."[email protected]:" = { | ||
insteadOf = "https://gitlab.sportradar.ag/"; | ||
url."[email protected]:" = { | ||
insteadOf = "https://gitlab.sportradar.ag/"; | ||
}; | ||
}; | ||
|
||
lfs.enable = true; | ||
}; | ||
|
||
xdg.configFile."pass-git-helper/git-pass-mapping.ini" = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
let | ||
tomlFormat = pkgs.formats.toml { }; | ||
in | ||
|
||
{ | ||
home.packages = [ | ||
pkgs.gitAndTools.lab | ||
]; | ||
} // lib.mkIf (config.programs.password-store.enable) { | ||
xdg.configFile."lab/lab.toml".source = tomlFormat.generate "lab-config" { | ||
core = { | ||
host = "https://gitlab.sportradar.ag"; | ||
load_token = "pass gitlab.sportradar.ag/token/api"; | ||
user = "e.bailey"; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ config, pkgs, ... }: | ||
|
||
{ | ||
nix = { | ||
package = pkgs.nixUnstable; | ||
|
||
settings = { | ||
experimental-features = [ | ||
"flakes" | ||
"nix-command" | ||
]; | ||
|
||
substituters = [ | ||
"https://cache.nixos.org" | ||
"https://sportradar.cachix.org" | ||
"https://yurrriq.cachix.org" | ||
]; | ||
trusted-public-keys = [ | ||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" | ||
"sportradar.cachix.org-1:6MyCzOfUMeMTxU5QnogkyYOBtr5f5atW/qeS+TjmUfE=" | ||
"yurrriq.cachix.org-1:evpJ5wKluf7QOCcv69VkIxCOtHgubrqXlZpp3JAXLBE=" | ||
]; | ||
trusted-users = [ | ||
"root" | ||
config.home.username | ||
]; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.