Migrate to home-manager

This commit is contained in:
Daniel Lundin 2024-08-02 11:12:36 +02:00
parent 6781866277
commit 2f6d4e1d3c
No known key found for this signature in database
147 changed files with 6181 additions and 6078 deletions

67
users/dln/desktop.nix Normal file
View file

@ -0,0 +1,67 @@
{ pkgs, ... }:
{
shelman = {
desktop.enable = true;
};
home.packages = with pkgs; [
audacity
bitwig-studio
dynamic-wallpaper
gimp-with-plugins
helvum
inkscape
moonlight-qt
obsidian
pavucontrol
plexamp
reaper
signal-desktop
];
xdg.desktopEntries = {
firefox-work = {
categories = [
"Network"
"WebBrowser"
];
comment = "Browse the Web";
exec = "firefox %u -P work --new-instance --name firefox-work";
genericName = "Web Browser";
icon = "firefox";
mimeType = [
"text/html"
"text/xml"
"application/xhtml+xml"
"application/vnd.mozilla.xul+xml"
"text/mml"
"x-scheme-handler/http"
"x-scheme-handler/https"
];
name = "Firefox (Work)";
settings = {
StartupWMClass = "firefox-work";
Keywords = "web;browser;internet";
};
terminal = false;
type = "Application";
};
wezterm-nemo = {
categories = [
"System"
"TerminalEmulator"
];
exec = "wezterm start --class=org.wezfurlong.wezterm-nemo --domain=nemo";
genericName = "wezterm-nemo";
icon = "org.wezfurlong.wezterm";
name = "wezterm-nemo";
settings = {
StartupWMClass = "org.wezfurlong.wezterm-nemo";
TryExec = "wezterm";
};
terminal = false;
type = "Application";
};
};
}

14
users/dln/dinky.nix Normal file
View file

@ -0,0 +1,14 @@
{ ... }:
{
imports = [
./home.nix
./desktop.nix
];
dconf.settings = {
"org/gnome/shell" = {
enabled-extensions = [ "Battery-Health-Charging@maniacx.github.com" ];
};
};
}

140
users/dln/home.nix Normal file
View file

@ -0,0 +1,140 @@
{ pkgs, ... }:
let
realName = "Daniel Lundin";
email = "dln@arity.se";
in
{
home = {
username = "dln";
homeDirectory = "/home/dln";
packages = with pkgs; [
openconnect
ouch
];
};
programs.atuin.settings = {
cwd_filter = [
"^~/media"
"^/home/dln/media"
];
};
programs.git = {
userName = realName;
userEmail = email;
};
programs.jujutsu = {
settings = {
user = {
email = email;
name = realName;
};
signing = {
sign-all = true;
backend = "ssh";
backends.ssh.allowed-signers = "/home/dln/.ssh/authorized_keys";
key = "/home/dln/.ssh/git_signing_key.pub";
};
ui = {
"default-command" = [
"log"
"--limit=20"
"--template=builtin_log_comfortable"
];
pager = "bat";
};
"merge-tools" = {
difft."diff-args" = [
"--color=always"
"$left"
"$right"
];
};
aliases = {
l = [
"log"
"-T"
"builtin_log_comfortable"
"-r"
"(main..@) | (main..@)-"
];
la = [
"log"
"-T"
"builtin_log_oneline"
"-r"
"all()"
];
b = [
"branch"
"list"
];
n = [
"new"
"main"
];
d = [ "diff" ];
s = [ "show" ];
sh = [
"show"
"--tool=difft"
];
};
"revset-aliases" = {
# Prevent rewriting commits on main@origin and commits authored by other users;
"immutable_heads()" = "main@origin | (main@origin.. & ~mine())";
"user(x)" = "author(x) | committer(x)";
"trunk()" = "latest((present(main) | present(master)) & remote_branches())";
"open" = "(mine() ~ ::trunk()) ~ heads(empty())";
"wip" = ''description("wip: ")'';
"ready" = "open() ~ (wip::)";
};
colors = {
"commit_id prefix" = {
bold = true;
};
"diff token" = {
underline = false;
};
};
};
};
programs.ssh.matchBlocks = {
dev = {
hostname = "10.1.100.16";
};
nemo = {
hostname = "10.1.100.20";
forwardAgent = true;
localForwards = [
{
bind.address = "localhost";
bind.port = 8000;
host.address = "localhost";
host.port = 8000;
}
{
bind.address = "localhost";
bind.port = 8080;
host.address = "localhost";
host.port = 8080;
}
];
};
};
services.syncthing.enable = true;
home.stateVersion = "24.05"; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
}

9
users/dln/nemo.nix Normal file
View file

@ -0,0 +1,9 @@
{ ... }:
{
imports = [
./home.nix
./desktop.nix
];
# Host specific user config goes here
}

40
users/lsjostro/home.nix Normal file
View file

@ -0,0 +1,40 @@
{ pkgs, ... }:
{
home = {
username = "lsjostro";
homeDirectory = "/home/lsjostro";
packages = with pkgs; [ openconnect ];
};
programs.git = {
userName = "Lars Sjöstrom";
userEmail = "lars@radicore.se";
};
programs.ssh.matchBlocks = {
dev = {
hostname = "10.1.100.17";
};
nemo = {
hostname = "10.1.100.20";
forwardAgent = true;
localForwards = [
{
bind.address = "localhost";
bind.port = 8000;
host.address = "localhost";
host.port = 8000;
}
{
bind.address = "localhost";
bind.port = 8080;
host.address = "localhost";
host.port = 8080;
}
];
};
};
home.stateVersion = "24.05"; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
}

6
users/lsjostro/nemo.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [ ./home.nix ];
# Host specific user config goes here
}