Compare commits
11 Commits
e7b6b488d9
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 62ccc18181 | |||
| d175858293 | |||
| eb51057ac9 | |||
| e15e64a1f9 | |||
| f670c0720c | |||
| e8c5df1a80 | |||
| 81d59b7cfd | |||
| d6aac89d5d | |||
| a1c4fcbf1d | |||
| 3349c8ecad | |||
| f588b7d389 |
13
flake.nix
13
flake.nix
@@ -45,7 +45,6 @@
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
agenix,
|
||||
stylix,
|
||||
nixos-wsl,
|
||||
statusbar,
|
||||
...
|
||||
@@ -98,9 +97,6 @@
|
||||
|
||||
agenix.homeManagerModules.default
|
||||
./secrets
|
||||
|
||||
stylix.homeModules.stylix
|
||||
./home/stylix
|
||||
];
|
||||
};
|
||||
|
||||
@@ -117,9 +113,6 @@
|
||||
|
||||
agenix.homeManagerModules.default
|
||||
./secrets
|
||||
|
||||
stylix.homeModules.stylix
|
||||
./home/stylix
|
||||
];
|
||||
};
|
||||
|
||||
@@ -147,7 +140,7 @@
|
||||
modules ? [],
|
||||
}:
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = import nixpkgs {hostPlatform = system;};
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
inherit modules;
|
||||
extraSpecialArgs = {inherit inputs stateVersion user dotsDir;};
|
||||
};
|
||||
@@ -156,13 +149,13 @@
|
||||
user = "nix";
|
||||
dotsDir = "/home/homelab-dots";
|
||||
modules = [
|
||||
./home/headless.nix
|
||||
./home/demenik.nix
|
||||
];
|
||||
};
|
||||
"db56@wsl50" = mkHomeConfig {
|
||||
user = "db56";
|
||||
modules = [
|
||||
./home/headless.nix
|
||||
./home/demenik.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./global.nix
|
||||
./xdg-desktop.nix
|
||||
@@ -16,6 +20,9 @@
|
||||
./editors/nvim
|
||||
./editors/intellij.nix
|
||||
./editors/godot.nix
|
||||
|
||||
inputs.stylix.homeModules.stylix
|
||||
./stylix
|
||||
];
|
||||
|
||||
home.file.".face" = {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
url = {
|
||||
"ssh://git@gitlab.uni-ulm.de".insteadOf = "https://gitlab.uni-ulm.de";
|
||||
"ssh://git@github.com".insteadOf = "https://github.com";
|
||||
"ssh://git@gitea.demenik.dev".insteadOf = "https://gitea.demenik.dev";
|
||||
};
|
||||
|
||||
user = {
|
||||
@@ -32,16 +33,34 @@
|
||||
signingkey = "${config.home.homeDirectory}/.ssh/id_rsa";
|
||||
};
|
||||
|
||||
"includeIf \"hasconfig:remote.*.url:git@gitlab.uni-ulm.de:*/**\"" = {
|
||||
path = "${pkgs.writeText ".gitconfig-gitlab.uni-ulm.de" ''
|
||||
[user]
|
||||
email = "dominik.bernroider@uni-ulm.de"
|
||||
name = "Dominik Bernroider"
|
||||
''}";
|
||||
};
|
||||
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
|
||||
includes = let
|
||||
mkRemoteSsh = {
|
||||
user ? "git",
|
||||
url,
|
||||
config,
|
||||
}: {
|
||||
condition = "hasconfig:remote.*.url:${user}@${url}:*/**";
|
||||
path = "${pkgs.writeText "gitconfig-${url}" (pkgs.lib.generators.toGitINI config)}";
|
||||
};
|
||||
in [
|
||||
(mkRemoteSsh {
|
||||
url = "gitlab.uni-ulm.de";
|
||||
config.user = {
|
||||
email = "dominik.bernroider@uni-ulm.de";
|
||||
name = "Dominik Bernroider";
|
||||
};
|
||||
})
|
||||
(mkRemoteSsh {
|
||||
url = "gitea.demenik.dev";
|
||||
config.user = {
|
||||
email = "mail@demenik.dev";
|
||||
name = "demenik";
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
gpg.enable = true;
|
||||
};
|
||||
|
||||
@@ -57,6 +57,9 @@ final_space = true
|
||||
fetch_upstream_icon = true
|
||||
fetch_status = true
|
||||
|
||||
[blocks.segments.properties.upstream_icons]
|
||||
"gitea.demenik.dev" = ""
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
|
||||
Reference in New Issue
Block a user