mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-14 21:08:49 +01:00
Merge branch 'main' of https://github.com/thilobillerbeck/dotfiles
This commit is contained in:
commit
8e392148bb
7 changed files with 93 additions and 40 deletions
30
flake.lock
30
flake.lock
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726867173,
|
"lastModified": 1728287529,
|
||||||
"narHash": "sha256-jPKALMGCCwuCRWWTygVePJZb4VB4XV/aAtZRwPYzehw=",
|
"narHash": "sha256-CgS9mFl4FudVF2PR3fzK+6pTXWqge4HrP04TgeEvKAM=",
|
||||||
"owner": "dagger",
|
"owner": "dagger",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"rev": "a46ddf2e3f69a62f49cea83e8f7a66979197eff4",
|
"rev": "45b1f49cee26b3514d975f6b461500ec051f0674",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -93,11 +93,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727383923,
|
"lastModified": 1728337164,
|
||||||
"narHash": "sha256-4/vacp3CwdGoPf8U4e/N8OsGYtO09WTcQK5FqYfJbKs=",
|
"narHash": "sha256-VdRTjJFyq4Q9U7Z/UoC2Q5jK8vSo6E86lHc2OanXtvc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "ffe2d07e771580a005e675108212597e5b367d2d",
|
"rev": "038630363e7de57c36c417fd2f5d7c14773403e4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -213,11 +213,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727580512,
|
"lastModified": 1728263287,
|
||||||
"narHash": "sha256-gEWoJ+027OwsNs6f1GkDPrCxBFr5Vky7vWKjHRJi60s=",
|
"narHash": "sha256-GJDtsxz2/zw6g/Nrp4XVWBS5IaZ7ZUkuvxPOBEDe7pg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-index-database",
|
"repo": "nix-index-database",
|
||||||
"rev": "a2ab1588541ae442bd3a682f8f6bbcbca2672f10",
|
"rev": "5fce10c871bab6d7d5ac9e5e7efbb3a2783f5259",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -271,11 +271,11 @@
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726268095,
|
"lastModified": 1727910488,
|
||||||
"narHash": "sha256-wBd1hcz4wSZYP0+TveNqKYQrdI6ZKMo2FxDluUiI8kc=",
|
"narHash": "sha256-2wU4hcFOdqWLqVjUib5ffZMRDagXxsrD5puXugubon8=",
|
||||||
"owner": "ryantm",
|
"owner": "ryantm",
|
||||||
"repo": "nixpkgs-update",
|
"repo": "nixpkgs-update",
|
||||||
"rev": "d55f27272f33975d67b13be9fa241cdea297dfb1",
|
"rev": "2625c4cffc6053ae368741b0da69a3f329f6e735",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -286,11 +286,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727348695,
|
"lastModified": 1728241625,
|
||||||
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=",
|
"narHash": "sha256-yumd4fBc/hi8a9QgA9IT8vlQuLZ2oqhkJXHPKxH/tRw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "1925c603f17fc89f4c8f6bf6f631a802ad85d784",
|
"rev": "c31898adf5a8ed202ce5bea9f347b1c6871f32d1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
15
home-manager/dotfiles/justfile
Normal file
15
home-manager/dotfiles/justfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
flatpak-override: flatpak-override-chrome flatpak-override-steam
|
||||||
|
|
||||||
|
flatpak-override-chrome:
|
||||||
|
flatpak override \
|
||||||
|
--user \
|
||||||
|
--filesystem=~/.local/share/applications \
|
||||||
|
--filesystem=~/.local/share/icons \
|
||||||
|
--filesystem=~/.pki/nssdb \
|
||||||
|
com.google.Chrome
|
||||||
|
|
||||||
|
flatpak-override-steam:
|
||||||
|
flatpak override \
|
||||||
|
--user \
|
||||||
|
--filesystem=~/mnt \
|
||||||
|
com.valvesoftware.Steam
|
|
@ -8,7 +8,6 @@ with lib;
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./../programs/atuin.nix
|
./../programs/atuin.nix
|
||||||
./../programs/alacritty.nix
|
|
||||||
./../programs/bat.nix
|
./../programs/bat.nix
|
||||||
./../programs/beets.nix
|
./../programs/beets.nix
|
||||||
./../programs/command-not-found.nix
|
./../programs/command-not-found.nix
|
||||||
|
@ -17,6 +16,7 @@ with lib;
|
||||||
./../programs/fzf.nix
|
./../programs/fzf.nix
|
||||||
./../programs/git.nix
|
./../programs/git.nix
|
||||||
./../programs/htop.nix
|
./../programs/htop.nix
|
||||||
|
./../programs/kitty.nix
|
||||||
./../programs/neovim.nix
|
./../programs/neovim.nix
|
||||||
./../programs/starship.nix
|
./../programs/starship.nix
|
||||||
./../programs/topgrade.nix
|
./../programs/topgrade.nix
|
||||||
|
@ -89,6 +89,7 @@ with lib;
|
||||||
".config/nano/nanorc".text = ''
|
".config/nano/nanorc".text = ''
|
||||||
set linenumbers
|
set linenumbers
|
||||||
'';
|
'';
|
||||||
|
"justfile".source = ./../dotfiles/justfile;
|
||||||
".gitignore".source = ./../dotfiles/.gitignore;
|
".gitignore".source = ./../dotfiles/.gitignore;
|
||||||
".config/pipewire/pipewire.conf.d/99-noise-suppression.conf".text = ''
|
".config/pipewire/pipewire.conf.d/99-noise-suppression.conf".text = ''
|
||||||
context.modules = [{
|
context.modules = [{
|
||||||
|
|
|
@ -100,6 +100,7 @@ in
|
||||||
[
|
[
|
||||||
(nixGL insomnia)
|
(nixGL insomnia)
|
||||||
(nixGL comma)
|
(nixGL comma)
|
||||||
|
# (nixGL processing)
|
||||||
(nixGL scrcpy)
|
(nixGL scrcpy)
|
||||||
]
|
]
|
||||||
else
|
else
|
||||||
|
|
|
@ -17,8 +17,12 @@ df.rename(columns={
|
||||||
'Duration': 'duration'
|
'Duration': 'duration'
|
||||||
}, inplace=True)
|
}, inplace=True)
|
||||||
|
|
||||||
df = df.groupby(['project','description','day'], as_index=False).agg({'duration': 'sum'})
|
dfg = df.groupby(['project','description','day'], as_index=False).agg({'duration': 'sum'})
|
||||||
df['duration'] = round(df['duration'].dt.total_seconds() / 60 / 60, 2)
|
dfg['duration'] = round(dfg['duration'].dt.total_seconds() / 60 / 60, 2)
|
||||||
print("Total hours are: ", round(df['duration'].sum(), 2))
|
print("Total hours are: ", round(dfg['duration'].sum(), 2))
|
||||||
|
|
||||||
df.to_csv(Path(sys.argv[1]).stem + '-grouped.csv', index=False)
|
dfg.to_csv(Path(sys.argv[1]).stem + '-grouped.csv', index=False)
|
||||||
|
|
||||||
|
dfc = dfg.groupby(['project'] , as_index=False).agg({'duration': 'sum'})
|
||||||
|
for index, row in dfc.iterrows():
|
||||||
|
print(row['project'], str(row['duration']).replace(".",","))
|
23
home-manager/programs/kitty.nix
Normal file
23
home-manager/programs/kitty.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
nixGL = import ./../../home-manager/utils/nixGLWrap.nix { inherit pkgs config; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
package = (nixGL pkgs.kitty);
|
||||||
|
font = {
|
||||||
|
name = "JetbrainsMono NFM";
|
||||||
|
size = 14;
|
||||||
|
};
|
||||||
|
themeFile = "Dracula";
|
||||||
|
extraConfig = ''
|
||||||
|
background_opacity 0.9
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -55,37 +55,46 @@ let
|
||||||
PubkeyAcceptedKeyTypes = "+ssh-rsa";
|
PubkeyAcceptedKeyTypes = "+ssh-rsa";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"flanders" = {
|
||||||
|
identityFile = "~/.ssh/id_thilo-billerbeck-com";
|
||||||
|
user = "thilo";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
catchAlls = builtins.listToAttrs (
|
catchAlls = builtins.listToAttrs (
|
||||||
builtins.map (host: {
|
builtins.map
|
||||||
name = "*.${host}";
|
(host: {
|
||||||
value = {
|
name = "*.${host}";
|
||||||
identityFile = "~/.ssh/id_thilo-billerbeck-com";
|
value = {
|
||||||
user = "root";
|
identityFile = "~/.ssh/id_thilo-billerbeck-com";
|
||||||
};
|
user = "root";
|
||||||
}) ownDomains
|
};
|
||||||
|
})
|
||||||
|
ownDomains
|
||||||
);
|
);
|
||||||
hostnameAliasses = builtins.listToAttrs (
|
hostnameAliasses = builtins.listToAttrs (
|
||||||
builtins.map (host: {
|
builtins.map
|
||||||
name = "${host}";
|
(host: {
|
||||||
value = {
|
name = "${host}";
|
||||||
hostname = "${host}.thilo-billerbeck.com";
|
value = {
|
||||||
};
|
hostname = "${host}.thilo-billerbeck.com";
|
||||||
}) thiloBillerbeckHosts
|
};
|
||||||
|
})
|
||||||
|
thiloBillerbeckHosts
|
||||||
);
|
);
|
||||||
buildersCCCDA = builtins.listToAttrs (
|
buildersCCCDA = builtins.listToAttrs (
|
||||||
builtins.map (host: {
|
builtins.map
|
||||||
name = "build${host}.darmstadt.ccc.de";
|
(host: {
|
||||||
value = {
|
name = "build${host}.darmstadt.ccc.de";
|
||||||
user = "avocadoom";
|
value = {
|
||||||
|
user = "avocadoom";
|
||||||
identityFile = "~/.ssh/id_darmstadt-ccc-de";
|
identityFile = "~/.ssh/id_darmstadt-ccc-de";
|
||||||
};
|
};
|
||||||
}) ["1" "2" "3" "4"]
|
}) [ "1" "2" "3" "4" ]
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
matchBlocks = manualMatchBlocks // catchAlls // hostnameAliasses // buildersCCCDA;
|
matchBlocks = manualMatchBlocks // catchAlls // hostnameAliasses;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue