Compare commits

...

20 Commits

Author SHA1 Message Date
d24395e1bd Merge branch 'master' of github.com:szymon-jozef/amazing-dotfiles 2026-03-01 23:20:39 +01:00
a7c5193cf7 function and nixvim 2026-03-01 23:20:25 +01:00
529b52712e phinger cursor 2026-03-01 22:27:08 +01:00
027a74e588 xddxdxdx 2026-03-01 21:44:29 +01:00
42193b3ab2 cursor 2026-03-01 21:25:36 +01:00
7c12cb82aa update 2026-03-01 20:55:16 +01:00
2886f0517b Merge branch 'master' of github.com:szymon-jozef/amazing-dotfiles 2026-03-01 19:25:04 +01:00
6f0d08bf48 add paderewski-nix profile 2026-03-01 19:24:55 +01:00
c4617cad86 Merge branch 'master' of https://github.com/szymon-jozef/amazing-dotfiles 2026-02-28 09:33:10 +01:00
16d9094435 hypr 2026-02-28 09:33:07 +01:00
96e33b9bc4 update: modules/hypr/hyprland.nix 2026-02-28 09:07:16 +01:00
5889e11254 update: modules/hypr/hyprland.nix 2026-02-28 09:06:11 +01:00
ff8b2befb6 update: modules/hypr/hyprland.nix 2026-02-28 09:03:53 +01:00
7e694f9994 update: modules/hypr/hyprland.nix 2026-02-28 09:02:09 +01:00
9c545347a7 update: modules/hypr/hyprland.nix 2026-02-28 09:00:23 +01:00
99aea6fed5 update: modules/hypr/hyprland.nix 2026-02-28 08:59:25 +01:00
507f496a53 update: modules/hypr/hyprland.nix 2026-02-28 08:56:57 +01:00
152ab8bfe1 update: modules/hypr/hyprland.nix 2026-02-28 08:51:09 +01:00
997e669803 move host names to flakes 2026-02-27 21:14:37 +01:00
cbc68e2b5a branching — not good idea... 2026-02-27 20:58:22 +01:00
8 changed files with 218 additions and 84 deletions

41
flake.lock generated
View File

@@ -159,6 +159,24 @@
"type": "github"
}
},
"hyprcursor-phinger": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1763845612,
"narHash": "sha256-78zH5GrYa35bEkzeVnl8uXFbZ/zsiSHayjxZlNt+Xe8=",
"owner": "jappie3",
"repo": "hyprcursor-phinger",
"rev": "1207a845501a28e0e00d4a8e935ee0c9cab30650",
"type": "github"
},
"original": {
"owner": "jappie3",
"repo": "hyprcursor-phinger",
"type": "github"
}
},
"hyprgraphics": {
"inputs": {
"hyprutils": [
@@ -199,7 +217,7 @@
"hyprutils": "hyprutils",
"hyprwayland-scanner": "hyprwayland-scanner",
"hyprwire": "hyprwire",
"nixpkgs": "nixpkgs_2",
"nixpkgs": "nixpkgs_3",
"pre-commit-hooks": "pre-commit-hooks",
"systems": "systems",
"xdph": "xdph"
@@ -466,6 +484,22 @@
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1762977756,
"narHash": "sha256-4PqRErxfe+2toFJFgcRKZ0UI9NSIOJa+7RXVtBhy4KE=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c5ae371f1a6a7fd27823bc500d9390b38c05fa55",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1771848320,
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
@@ -481,7 +515,7 @@
"type": "github"
}
},
"nixpkgs_3": {
"nixpkgs_4": {
"locked": {
"lastModified": 1771369470,
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
@@ -546,8 +580,9 @@
"inputs": {
"catppuccin": "catppuccin",
"home-manager": "home-manager",
"hyprcursor-phinger": "hyprcursor-phinger",
"hyprland": "hyprland",
"nixpkgs": "nixpkgs_3",
"nixpkgs": "nixpkgs_4",
"nixvim": "nixvim",
"wallpapers": "wallpapers"
}

106
flake.nix
View File

@@ -19,6 +19,8 @@
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprcursor-phinger.url = "github:jappie3/hyprcursor-phinger";
};
outputs =
@@ -32,7 +34,7 @@
}@inputs:
let
userConfig = {
baseUserConfig = {
username = "szymon";
# for git
email = "szymon_jozef@proton.me";
@@ -40,7 +42,7 @@
# your public ssh key
signingKey = "~/.ssh/github.pub";
mainMonitor = "eDP-1"; # only for some applications: you still need to set hyprland monitors yourself!
mainMonitor = "DP-1"; # only for some applications: you still need to set hyprland monitors yourself!
statusBar = "ashell"; # available: ashell|waybar
pathConfig = {
@@ -51,45 +53,79 @@
};
system = "x86_64-linux";
general_import = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
general_module_import = [
./home.nix
catppuccin.homeModules.catppuccin
nixvim.homeModules.nixvim
inputs.hyprcursor-phinger.homeManagerModules.hyprcursor-phinger
];
mkHomeConfig =
{
isNixOS,
overrides ? { },
hostName,
}:
home-manager.lib.homeManagerConfiguration {
pkgs = general_import;
extraSpecialArgs = {
inherit inputs isNixOS hostName;
userConfig = baseUserConfig // overrides;
};
modules = general_module_import;
};
in
{
homeConfigurations = {
"arch" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
extraSpecialArgs = {
inherit
inputs
userConfig
;
isNixOS = false;
};
modules = [
./home.nix
catppuccin.homeModules.catppuccin
nixvim.homeModules.nixvim
];
"arch" = mkHomeConfig {
isNixOS = false;
hostName = "arch";
};
"nixos" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
"nixos" = mkHomeConfig {
isNixOS = true;
hostName = "nixos";
};
"${baseUserConfig.username}@pitagoras" = mkHomeConfig {
isNixOS = true;
overrides = {
mainMonitor = "eDP-1";
};
extraSpecialArgs = {
inherit
inputs
userConfig
;
isNixOS = true;
hostName = "pitagoras";
};
"${baseUserConfig.username}@pilecki" = mkHomeConfig {
isNixOS = true;
overrides = {
mainMonitor = "LVDS-1";
};
modules = [
./home.nix
catppuccin.homeModules.catppuccin
nixvim.homeModules.nixvim
];
hostName = "pilecki";
};
"${baseUserConfig.username}@paderewski" = mkHomeConfig {
isNixOS = false;
overrides = {
mainMonitor = "DP-1";
};
hostName = "paderewski";
};
"${baseUserConfig.username}@paderewski-nix" = mkHomeConfig {
isNixOS = true;
overrides = {
mainMonitor = "DP-1";
};
hostName = "paderewski-nix";
};
};
};

View File

@@ -68,13 +68,24 @@
".config/gtk-3.0/gtk.css".source = ./dotfiles/gtk-3.0/gtk.css;
${userConfig.pathConfig.wallpaper}.source = inputs.wallpapers;
};
programs.hyprcursor-phinger.enable = true;
# === VARS ===
home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
XDG_DATA_DIRS = "$HOME/.nix-profile/share/applications:$XDG_DATA_DIRS";
home = {
sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
XDG_DATA_DIRS = "$HOME/.nix-profile/share/applications:$XDG_DATA_DIRS";
};
pointerCursor = {
name = "phinger-cursors-light";
package = pkgs.phinger-cursors;
size = 24;
gtk.enable = true;
x11.enable = true;
};
};
programs.home-manager.enable = true;

View File

@@ -36,7 +36,7 @@
xdg.configFile."fastfetch/startup.jsonc".text = builtins.toJSON {
logo = {
source = "arch_small";
source = "nixos_small";
padding = {
bottom = 1;
};

View File

@@ -1,4 +1,4 @@
{ isNixOS, ... }:
{ isNixOS, hostName, ... }:
{
programs.fish = {
@@ -45,7 +45,7 @@
set -l rel_file (realpath --relative-to=$config_dir $file)
if nh home switch $config_dir -c ${if isNixOS then "nixos" else "arch"}
if nh home switch $config_dir -c ${hostName}
git add -A
set commit_msg "update: $rel_file"
git commit -m "$commit_msg"
@@ -61,7 +61,12 @@
reload_dotfiles = {
body = # fish
"nh home switch ~/.config/home-manager -c ${if isNixOS then "nixos" else "arch"}";
"nh home switch ~/.config/home-manager";
};
reload_system = {
body = # fish
"nh os switch /etc/nixos/";
};
ls = {
@@ -80,38 +85,64 @@
};
update = {
body = # fish
''
echo "===System update==="
body =
if isNixOS then
# fish
''
echo "=== System packages update==="
pushd /etc/nixos
nix flake update
reload_system
popd
if not type -q yay
echo "Yay not found… Is this Arch? If yes, then please consider installing it!"
else
yay
end
echo "===User packages update==="
pushd $HOME/.config/home-manager
nix flake update
reload_dotfiles
popd
if type -q pacman
echo "===Remove orphans==="
set orphans (pacman -Qtdq)
if test (count $orphans) -gt 0
sudo pacman -Rns $orphans
end
end
if type -q flatpak
echo "===Flatpak update==="
flatpak update --noninteractive
echo "===Flatpak remove unused==="
flatpak uninstall --unused
end
echo "=== Flatpak update==="
if type -q flatpak
echo "===Flatpak update==="
flatpak update --noninteractive
echo "===Flatpak remove unused==="
flatpak uninstall --unused
end
''
else
# fish
''
echo "===System update==="
if type -q nix-channel
echo "===Nix update==="
nix-channel --update
echo "===Nix garbage collection==="
home-manager expire-generations "-7 days"
end
'';
if not type -q yay
echo "Yay not found… Please consider installing it!"
else
yay
end
if type -q pacman
echo "===Remove orphans==="
set orphans (pacman -Qtdq)
if test (count $orphans) -gt 0
sudo pacman -Rns $orphans
end
end
if type -q flatpak
echo "===Flatpak update==="
flatpak update --noninteractive
echo "===Flatpak remove unused==="
flatpak uninstall --unused
end
if type -q nix-channel
echo "===Nix update==="
nix-channel --update
echo "===Nix garbage collection==="
home-manager expire-generations "-7 days"
end
'';
};
rm = {

View File

@@ -100,6 +100,14 @@
action.__raw = "function() require('harpoon'):list():next() end";
options.desc = "Toggle next harpoon buffer";
}
{
key = "j";
action= "jzz";
}
{
key = "k";
action= "kzz";
}
];
autoGroups = {
@@ -203,9 +211,14 @@
};
};
indent-blankline = {
cursorline = {
enable = true;
settings.scope.enabled = true;
timeout = 0;
};
mini-indentscope = {
enable = true;
settings.draw.delay = 0;
};
cmp = {

View File

@@ -3,6 +3,7 @@
lib,
userConfig,
pkgs,
inputs,
...
}:
let
@@ -24,15 +25,20 @@ in
{
wayland.windowManager.hyprland = {
enable = true;
package = lib.mkIf (!isNixOS) null;
package =
if isNixOS then inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland else null;
portalPackage = lib.mkIf (
isNixOS
) inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
xwayland.enable = true;
settings = {
"$mainMod" = "SUPER";
"$terminal" = "uwsm app -- kitty";
"$menu" = "hyprlauncher";
"$music_player" = "flatpak run com.spotify.Client";
"$music_player" = if isNixOS then "spotify" else "flatpak run com.spotify.Client";
"$notes" = "obsidian";
"$browser" = "zen-browser";
"$browser" = if isNixOS then "zen-beta" else "zen-browser"; # beta on nixos
"$openrgb_color" = "09ce30";
env = [
@@ -50,7 +56,7 @@ in
"col.inactive_border" = "$overlay1";
resize_on_border = false;
allow_tearing = false;
layout = "dwindle";
layout = "scrolling";
};
animations = {
@@ -168,6 +174,7 @@ in
workspace = [
"1, monitor:DP-2"
"1, layout: dwindle"
"2, monitor:DP-1"
"3, monitor:DP-1"
"4, monitor:DP-1"
@@ -191,6 +198,7 @@ in
"match:class ^(vesktop)$, workspace 1 silent"
"match:class ^(chrome-facebook.com__-Default)$, workspace 1"
"match:class ^(zen)$, workspace 2"
"match:class ^(zen-beta)$, workspace 2"
"match:class ^(com.github.IsmaelMartinez.teams_for_linux)$, workspace 2"
"match:class ^(FreeTube)$, workspace 2"
"match:class ^(brave-x.com__-Default)$, workspace 2"
@@ -343,8 +351,8 @@ in
bindd = [
"$mainMod, F, Make app fullscreen, fullscreen"
"$mainMod, T, Toggle floating, togglefloating"
"$mainMod, P, Toggle pseudo, pseudo"
"$mainMod, S, Toggle split, togglesplit"
"$mainMod, S, layoutmsg, swapsplit"
"$mainMod, C, layoutmsg, togglesplit"
"$mainMod, Q, Kill active window, killactive"
];
};

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
rsync -avh --no-links --delete --exclude=.* --exclude=dyski /home/szymon/ /mnt/backup/home/szymon/
rsync -avh --no-links --delete --exclude=.* --exclude=dyski /home/szymon/ /mnt/backup_wd/home/szymon/
rsync -avh --no-links --delete --exclude=.* --exclude=dyski /home/szymon/ /mnt/uwu_backup/home/szymon/
rsync -avh --no-links --delete --exclude=.* --exclude=dyski /home/szymon/ /mnt/wd_backup/home/szymon/