Compare commits

..

9 commits

Author SHA1 Message Date
51d50ad353 Merge branch 'main' of https://github.com/thilobillerbeck/dotfiles 2024-04-28 16:11:54 +02:00
1578a627d9 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs-update':
    'github:ryantm/nixpkgs-update/936918ca615c6c2479e0ec4eb0fce8ab5cb7b177?narHash=sha256-acWFwjzsrUgJUcUOVE1sErhR4e9ES45AbCJiaGC%2Bdfg%3D' (2024-04-28)
  → 'github:ryantm/nixpkgs-update/df23e62c3322a6471671ec8cb4ad0da36ab7f8a7?narHash=sha256-s77XshW%2B9EoghBWmOf0tFVQZ%2B8rX4%2BbOCz0StL%2BTkvQ%3D' (2024-04-28)
• Added input 'nixpkgs-update/runtimeDeps':
    'github:NixOS/nixpkgs/c8d7c8a78fb516c0842cc65346506a565c88014d?narHash=sha256-6dFKqP/aCKIdpOgqgIQUrRT0NOfVc14ftNcdELa4Pu4%3D' (2024-04-27)
• Added input 'nixpkgs-update/treefmt-nix':
    'github:numtide/treefmt-nix/49dc4a92b02b8e68798abd99184f228243b6e3ac?narHash=sha256-N3QDhoaX%2BpaWXHbEXZapqd1r95mdshxToGowtjtYkGI%3D' (2024-04-01)
• Added input 'nixpkgs-update/treefmt-nix/nixpkgs':
    follows 'nixpkgs-update/nixpkgs'
2024-04-28 14:22:02 +02:00
22084114a5 several adjustments for non nixos systems 2024-04-28 03:53:21 +02:00
e7ec033300 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs-update':
    'github:ryantm/nixpkgs-update/1d6efcd1ed579f549f7e03425ac9f1dfb3a6d254?narHash=sha256-ZZsn7/kdB6c7Cub4BhQDVBHoZzanxH7%2BXFmhMX3OzS4%3D' (2024-04-27)
  → 'github:ryantm/nixpkgs-update/936918ca615c6c2479e0ec4eb0fce8ab5cb7b177?narHash=sha256-acWFwjzsrUgJUcUOVE1sErhR4e9ES45AbCJiaGC%2Bdfg%3D' (2024-04-28)
2024-04-28 03:49:03 +02:00
bfa178762d flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/0c5704eceefcb7bb238a958f532a86e3b59d76db?narHash=sha256-4AItZA3EQIiSNAxliuYEJumw/LaVfrMv84gYyrs0r3U%3D' (2024-04-25)
  → 'github:nix-community/home-manager/c1609d584a6b5e9e6a02010f51bd368cb4782f8e?narHash=sha256-eT7DENhYy7EPLOqHI9zkIMD9RvMCXcqh6gGqOK5BWYQ%3D' (2024-04-27)
• Updated input 'nixpkgs-update':
    'github:ryantm/nixpkgs-update/fbd0e11caeb71d55ab880b09b9929cdc8e2e956e?narHash=sha256-hClY8qu4zwty2x37iiAlwTh9XaNEHzsPR5NvLLJL/gE%3D' (2024-04-11)
  → 'github:ryantm/nixpkgs-update/1d6efcd1ed579f549f7e03425ac9f1dfb3a6d254?narHash=sha256-ZZsn7/kdB6c7Cub4BhQDVBHoZzanxH7%2BXFmhMX3OzS4%3D' (2024-04-27)
2024-04-27 14:06:58 +02:00
be4387391a flake.lock: Update
Flake lock file updates:

• Updated input 'dagger':
    'github:dagger/nix/dd0199825d18b6f47c692c4345dd28a6f6122958?narHash=sha256-KNq2YJa9SsPKb7BvRtoJyyGKS4pw3TPKSTuhlj%2BsWCg%3D' (2024-04-16)
  → 'github:dagger/nix/1b634d4d8d78e50c6cbf8899238c946964b10249?narHash=sha256-ucAlX%2BUadBzeNYRcbNhQ4Tey%2B0eGfRL2xlvL9whHhCA%3D' (2024-04-26)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/572af610f6151fd41c212f897c71f7056e3fb518?narHash=sha256-cfh1hi%2B6muQMbi9acOlju3V1gl8BEaZBXBR9jQfQi4U%3D' (2024-04-23)
  → 'github:NixOS/nixpkgs/7bb2ccd8cdc44c91edba16c48d2c8f331fb3d856?narHash=sha256-Drmja/f5MRHZCskS6mvzFqxEaZMeciScCTFxWVLqWEY%3D' (2024-04-25)
2024-04-26 14:06:04 +02:00
50642599a3 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/2f072c127c041eec36621b8e38a531fe0fe07961?narHash=sha256-bW7K4WPo6jhYMo4ZUGoJfog6xJV0XZh8adXqZKunRoc%3D' (2024-04-24)
  → 'github:nix-community/home-manager/0c5704eceefcb7bb238a958f532a86e3b59d76db?narHash=sha256-4AItZA3EQIiSNAxliuYEJumw/LaVfrMv84gYyrs0r3U%3D' (2024-04-25)
2024-04-25 17:30:26 +02:00
38dd5f2794 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/bfa7c06436771e3a0c666ccc6ee01e815d4c33aa?narHash=sha256-fv84DCOkBtjF6wMATt0rfovu7e95L8rdEkSfNbwKR3U%3D' (2024-04-23)
  → 'github:nix-community/home-manager/2f072c127c041eec36621b8e38a531fe0fe07961?narHash=sha256-bW7K4WPo6jhYMo4ZUGoJfog6xJV0XZh8adXqZKunRoc%3D' (2024-04-24)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/6143fc5eeb9c4f00163267708e26191d1e918932?narHash=sha256-%2Bz/XjO3QJs5rLE5UOf015gdVauVRQd2vZtsFkaXBq2Y%3D' (2024-04-21)
  → 'github:NixOS/nixpkgs/572af610f6151fd41c212f897c71f7056e3fb518?narHash=sha256-cfh1hi%2B6muQMbi9acOlju3V1gl8BEaZBXBR9jQfQi4U%3D' (2024-04-23)
• Updated input 'suyu':
    'github:Noodlez1232/suyu-flake/5b5b36c4896820b632bf57e5fe7f238d8ad097c7?narHash=sha256-jl6MEqKa%2Bmc511xkj2X2q1jKqc8ndi/WcGSYVcH7j/0%3D' (2024-04-18)
  → 'github:Noodlez1232/suyu-flake/b3904f149f124bc485e1cb61b4e824ed9ec5c7e7?narHash=sha256-7dvQhBvf8IGL2djRtVeWFLqo%2BAK7cvYxyj8PDJ/qvh0%3D' (2024-04-25)
• Updated input 'suyu/nixpkgs':
    'github:NixOS/nixpkgs/2fd19c8be2551a61c1ddc3d9f86d748f4db94f00?narHash=sha256-0TZIsfDbHG5zibtlw6x0yOp3jkInIGaJ35B7Y4G8Pec%3D' (2024-04-16)
  → 'github:NixOS/nixpkgs/1e1dc66fe68972a76679644a5577828b6a7e8be4?narHash=sha256-YgSEan4CcrjivCNO5ZNzhg7/8ViLkZ4CB/GrGBVSudo%3D' (2024-04-22)
2024-04-25 09:17:40 +02:00
6cd43612e1 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/67de98ae6eed5ad6f91b1142356d71a87ba97f21?narHash=sha256-aw3xbVPJauLk/bbrlakIYxKpeuMWzA2feGrkIpIuXd8%3D' (2024-04-22)
  → 'github:nix-community/home-manager/bfa7c06436771e3a0c666ccc6ee01e815d4c33aa?narHash=sha256-fv84DCOkBtjF6wMATt0rfovu7e95L8rdEkSfNbwKR3U%3D' (2024-04-23)
2024-04-24 13:41:46 +02:00
8 changed files with 133 additions and 94 deletions

View file

@ -10,7 +10,7 @@ in {
isGeneric = true; isGeneric = true;
isGnome = false; isGnome = false;
noiseSuppression.enable = false; noiseSuppression.enable = false;
isGraphical = false; isGraphical = true;
}; };
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
@ -18,9 +18,4 @@ in {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nixGLPrefix = lib.getExe pkgs.nixgl.nixGLIntel; nixGLPrefix = lib.getExe pkgs.nixgl.nixGLIntel;
home.packages = with pkgs; [
(nixGL insomnia)
(nixGL inputs.muse-sounds-manager.packages.x86_64-linux.muse-sounds-manager)
];
} }

View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713273854, "lastModified": 1714131597,
"narHash": "sha256-KNq2YJa9SsPKb7BvRtoJyyGKS4pw3TPKSTuhlj+sWCg=", "narHash": "sha256-ucAlX+UadBzeNYRcbNhQ4Tey+0eGfRL2xlvL9whHhCA=",
"owner": "dagger", "owner": "dagger",
"repo": "nix", "repo": "nix",
"rev": "dd0199825d18b6f47c692c4345dd28a6f6122958", "rev": "1b634d4d8d78e50c6cbf8899238c946964b10249",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -93,11 +93,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713906585, "lastModified": 1714203603,
"narHash": "sha256-fv84DCOkBtjF6wMATt0rfovu7e95L8rdEkSfNbwKR3U=", "narHash": "sha256-eT7DENhYy7EPLOqHI9zkIMD9RvMCXcqh6gGqOK5BWYQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "bfa7c06436771e3a0c666ccc6ee01e815d4c33aa", "rev": "c1609d584a6b5e9e6a02010f51bd368cb4782f8e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -263,14 +263,16 @@
"nixpkgs-update": { "nixpkgs-update": {
"inputs": { "inputs": {
"mmdoc": "mmdoc", "mmdoc": "mmdoc",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3",
"runtimeDeps": "runtimeDeps",
"treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1712805493, "lastModified": 1714270547,
"narHash": "sha256-hClY8qu4zwty2x37iiAlwTh9XaNEHzsPR5NvLLJL/gE=", "narHash": "sha256-s77XshW+9EoghBWmOf0tFVQZ+8rX4+bOCz0StL+TkvQ=",
"owner": "ryantm", "owner": "ryantm",
"repo": "nixpkgs-update", "repo": "nixpkgs-update",
"rev": "fbd0e11caeb71d55ab880b09b9929cdc8e2e956e", "rev": "df23e62c3322a6471671ec8cb4ad0da36ab7f8a7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -281,11 +283,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1713714899, "lastModified": 1714076141,
"narHash": "sha256-+z/XjO3QJs5rLE5UOf015gdVauVRQd2vZtsFkaXBq2Y=", "narHash": "sha256-Drmja/f5MRHZCskS6mvzFqxEaZMeciScCTFxWVLqWEY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6143fc5eeb9c4f00163267708e26191d1e918932", "rev": "7bb2ccd8cdc44c91edba16c48d2c8f331fb3d856",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -311,11 +313,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1713254108, "lastModified": 1713805509,
"narHash": "sha256-0TZIsfDbHG5zibtlw6x0yOp3jkInIGaJ35B7Y4G8Pec=", "narHash": "sha256-YgSEan4CcrjivCNO5ZNzhg7/8ViLkZ4CB/GrGBVSudo=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2fd19c8be2551a61c1ddc3d9f86d748f4db94f00", "rev": "1e1dc66fe68972a76679644a5577828b6a7e8be4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -338,17 +340,33 @@
"w17": "w17" "w17": "w17"
} }
}, },
"runtimeDeps": {
"locked": {
"lastModified": 1714247354,
"narHash": "sha256-6dFKqP/aCKIdpOgqgIQUrRT0NOfVc14ftNcdELa4Pu4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c8d7c8a78fb516c0842cc65346506a565c88014d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable-small",
"repo": "nixpkgs",
"type": "github"
}
},
"suyu": { "suyu": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_3", "flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_4" "nixpkgs": "nixpkgs_4"
}, },
"locked": { "locked": {
"lastModified": 1713412554, "lastModified": 1714016451,
"narHash": "sha256-jl6MEqKa+mc511xkj2X2q1jKqc8ndi/WcGSYVcH7j/0=", "narHash": "sha256-7dvQhBvf8IGL2djRtVeWFLqo+AK7cvYxyj8PDJ/qvh0=",
"owner": "Noodlez1232", "owner": "Noodlez1232",
"repo": "suyu-flake", "repo": "suyu-flake",
"rev": "5b5b36c4896820b632bf57e5fe7f238d8ad097c7", "rev": "b3904f149f124bc485e1cb61b4e824ed9ec5c7e7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -402,6 +420,27 @@
"type": "github" "type": "github"
} }
}, },
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"nixpkgs-update",
"nixpkgs"
]
},
"locked": {
"lastModified": 1711963903,
"narHash": "sha256-N3QDhoaX+paWXHbEXZapqd1r95mdshxToGowtjtYkGI=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "49dc4a92b02b8e68798abd99184f228243b6e3ac",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"utils": { "utils": {
"inputs": { "inputs": {
"systems": "systems_3" "systems": "systems_3"

View file

@ -126,16 +126,6 @@ with lib; {
${pkgs.nodejs}/bin/npm config set prefix ${config.home.homeDirectory}/.node-global ${pkgs.nodejs}/bin/npm config set prefix ${config.home.homeDirectory}/.node-global
''; '';
}; };
} // mkIf (config.machine.isGeneric && config.machine.isGraphical) {
linkDesktopApplications = {
after = [ "writeBoundary" "createXdgUserDirectories" ];
before = [ ];
data = ''
for dir in ${config.home.homeDirectory}/.nix-profile/share/applications/*; do
chmod +x $(realpath $dir) -v
done
'';
};
}; };
sessionPath = [ "${config.home.homeDirectory}/.node-global/bin" ]; sessionPath = [ "${config.home.homeDirectory}/.node-global/bin" ];
}; };

View file

@ -2,9 +2,11 @@
with lib; with lib;
let let
nixGL = import ./../../home-manager/utils/nixGLWrap.nix { inherit pkgs config; };
electronFlags = electronFlags =
"--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --disable-gpu-shader-disk-cache -n"; "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --disable-gpu-shader-disk-cache -n";
in { in
{
config = { config = {
nixpkgs.overlays = [ nixpkgs.overlays = [
(_: prev: { (_: prev: {
@ -76,7 +78,17 @@ in {
nix-output-monitor nix-output-monitor
nodePackages.pnpm nodePackages.pnpm
npm-check-updates npm-check-updates
] ++ (if config.machine.isGraphical then [ ] ++ (
if (
config.machine.isGraphical
) then [
(nixGL insomnia)
] else
[ ]
) ++ (
if (
config.machine.isGraphical && !config.machine.isGeneric
) then [
corefonts corefonts
vistafonts vistafonts
jetbrains.webstorm jetbrains.webstorm
@ -86,7 +98,6 @@ in {
element-desktop element-desktop
ludusavi ludusavi
dbeaver dbeaver
insomnia
onlyoffice-bin onlyoffice-bin
spotify spotify
vesktop vesktop
@ -106,7 +117,7 @@ in {
quickgui quickgui
trilium-desktop trilium-desktop
anki anki
inputs.muse-sounds-manager.packages.x86_64-linux.muse-sounds-manager # inputs.muse-sounds-manager.packages.x86_64-linux.muse-sounds-manager
jetbrains-toolbox jetbrains-toolbox
mumble mumble
prusa-slicer prusa-slicer
@ -123,7 +134,8 @@ in {
kdePackages.kdenlive kdePackages.kdenlive
audacity audacity
] else ] else
[ ]) ++ (if config.machine.isGnome then [ [ ]
) ++ (if config.machine.isGnome then [
gnomeExtensions.blur-my-shell gnomeExtensions.blur-my-shell
gnomeExtensions.dash-to-panel gnomeExtensions.dash-to-panel
gnomeExtensions.user-themes gnomeExtensions.user-themes

View file

@ -1,8 +1,11 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ let
nixGL = import ./../../home-manager/utils/nixGLWrap.nix { inherit pkgs config; };
in {
programs.alacritty = { programs.alacritty = {
enable = if config.machine.isGraphical then true else false; enable = if config.machine.isGraphical then true else false;
package = (nixGL pkgs.alacritty);
settings = { settings = {
window = { window = {
decorations = "full"; decorations = "full";

View file

@ -19,7 +19,7 @@ let
"bmnlcjabgnpnenekpadlanbbkooimhnj" # Honey "bmnlcjabgnpnenekpadlanbbkooimhnj" # Honey
"kbfnbcaeplbcioakkpcpgfkobkghlhen" # Grammarly "kbfnbcaeplbcioakkpcpgfkobkghlhen" # Grammarly
]; ];
isEnabled = if config.machine.isGraphical then true else false; isEnabled = if (config.machine.isGraphical && !config.machine.isGeneric) then true else false;
dictionaries = with pkgs.hunspellDictsChromium; [ en_US de_DE ]; dictionaries = with pkgs.hunspellDictsChromium; [ en_US de_DE ];
commandLineArgs = [ commandLineArgs = [
"--enable-wayland-ime" "--enable-wayland-ime"

View file

@ -2,6 +2,6 @@
{ {
programs.firefox = { programs.firefox = {
enable = if config.machine.isGraphical then true else false; enable = if (config.machine.isGraphical && !config.machine.isGeneric) then true else false;
}; };
} }

View file

@ -2,7 +2,7 @@
{ {
programs.mpv = { programs.mpv = {
enable = if config.machine.isGraphical then true else false; enable = if (config.machine.isGraphical && !config.machine.isGeneric) then true else false;
scripts = with pkgs.mpvScripts; [ autoload mpris sponsorblock ]; scripts = with pkgs.mpvScripts; [ autoload mpris sponsorblock ];
}; };
} }