Compare commits

..

13 Commits

Author SHA1 Message Date
80ce759b1d init for thinkpad 2026-02-26 20:29:56 +01:00
406609f990 merge 2026-02-26 14:27:35 +01:00
325cc17e1b trele morele 2026-02-26 13:52:30 +01:00
dc8a82364b dxdxd 2026-02-26 13:39:32 +01:00
04f6dab540 Merge remote-tracking branch 'origin/master' into laptop 2026-02-25 15:17:54 +01:00
02a5295aef change ssh key 2026-02-25 15:16:08 +01:00
12ead5ae9b merge 2026-02-25 15:07:46 +01:00
06deba1909 flake 2026-02-25 01:16:54 +01:00
a1952fa7a9 test 2026-02-25 00:24:43 +01:00
cd8ef7e5db comituje 2026-02-24 23:39:07 +01:00
1801311cb5 laptop
Merge branch 'master' of https://github.com/szymon-jozef/amazing-dotfiles
2026-02-23 13:51:43 +01:00
c16e047e32 comituje 2026-02-23 13:51:37 +01:00
2b8f7383ad comituje 2026-02-23 13:51:11 +01:00
10 changed files with 93 additions and 218 deletions

59
flake.lock generated
View File

@@ -117,11 +117,11 @@
]
},
"locked": {
"lastModified": 1771851181,
"narHash": "sha256-gFgE6mGUftwseV3DUENMb0k0EiHd739lZexPo5O/sdQ=",
"lastModified": 1772060133,
"narHash": "sha256-VuyRptb8v1lVGMlLp4/1vRX3Efwec0CN0S6mKmDPzLg=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "9a4b494b1aa1b93d8edf167f46dc8e0c0011280c",
"rev": "ce9b6e52500a0ea0ec48f0bbf6d7a3e431d9dfa4",
"type": "github"
},
"original": {
@@ -159,24 +159,6 @@
"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": [
@@ -217,17 +199,17 @@
"hyprutils": "hyprutils",
"hyprwayland-scanner": "hyprwayland-scanner",
"hyprwire": "hyprwire",
"nixpkgs": "nixpkgs_3",
"nixpkgs": "nixpkgs_2",
"pre-commit-hooks": "pre-commit-hooks",
"systems": "systems",
"xdph": "xdph"
},
"locked": {
"lastModified": 1772022552,
"narHash": "sha256-L3zktLSXcvsqczTz7YL5PXYgn4a08tRfl9t6YYLESM8=",
"lastModified": 1772107319,
"narHash": "sha256-qdeeNrWmUe1P2FsnNU1ngoZl8UxczEMJBziwm78V42I=",
"owner": "hyprwm",
"repo": "Hyprland",
"rev": "457617b5a31f70ea63e1fcc0729f29e4a9e6b486",
"rev": "c71fbd854dfdedaae011f4b8b1fdb81f8054b309",
"type": "github"
},
"original": {
@@ -484,22 +466,6 @@
}
},
"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=",
@@ -515,13 +481,13 @@
"type": "github"
}
},
"nixpkgs_4": {
"nixpkgs_3": {
"locked": {
"lastModified": 1771369470,
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
"lastModified": 1771848320,
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "0182a361324364ae3f436a63005877674cf45efb",
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
"type": "github"
},
"original": {
@@ -580,9 +546,8 @@
"inputs": {
"catppuccin": "catppuccin",
"home-manager": "home-manager",
"hyprcursor-phinger": "hyprcursor-phinger",
"hyprland": "hyprland",
"nixpkgs": "nixpkgs_4",
"nixpkgs": "nixpkgs_3",
"nixvim": "nixvim",
"wallpapers": "wallpapers"
}

102
flake.nix
View File

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

View File

@@ -68,24 +68,13 @@
".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";
};
pointerCursor = {
name = "phinger-cursors-light";
package = pkgs.phinger-cursors;
size = 24;
gtk.enable = true;
x11.enable = true;
};
home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
XDG_DATA_DIRS = "$HOME/.nix-profile/share/applications:$XDG_DATA_DIRS";
};
programs.home-manager.enable = true;

0
install_nix_and_home_manager_on_arch.sh Normal file → Executable file
View File

View File

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

View File

@@ -1,4 +1,4 @@
{ isNixOS, hostName, ... }:
{ isNixOS, ... }:
{
programs.fish = {
@@ -45,7 +45,7 @@
set -l rel_file (realpath --relative-to=$config_dir $file)
if nh home switch $config_dir -c ${hostName}
if nh home switch $config_dir -c ${if isNixOS then "nixos" else "arch"}
git add -A
set commit_msg "update: $rel_file"
git commit -m "$commit_msg"
@@ -61,12 +61,7 @@
reload_dotfiles = {
body = # fish
"nh home switch ~/.config/home-manager";
};
reload_system = {
body = # fish
"nh os switch /etc/nixos/";
"nh home switch ~/.config/home-manager -c ${if isNixOS then "nixos" else "arch"}";
};
ls = {
@@ -85,64 +80,38 @@
};
update = {
body =
if isNixOS then
# fish
''
echo "=== System packages update==="
pushd /etc/nixos
nix flake update
reload_system
popd
body = # fish
''
echo "===System update==="
echo "===User packages update==="
pushd $HOME/.config/home-manager
nix flake update
reload_dotfiles
popd
if not type -q yay
echo "Yay not found… Is this Arch? If yes, then 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
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 flatpak
echo "===Flatpak update==="
flatpak update --noninteractive
echo "===Flatpak remove unused==="
flatpak uninstall --unused
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
'';
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,14 +100,6 @@
action.__raw = "function() require('harpoon'):list():next() end";
options.desc = "Toggle next harpoon buffer";
}
{
key = "j";
action= "jzz";
}
{
key = "k";
action= "kzz";
}
];
autoGroups = {
@@ -211,14 +203,9 @@
};
};
cursorline = {
indent-blankline = {
enable = true;
timeout = 0;
};
mini-indentscope = {
enable = true;
settings.draw.delay = 0;
settings.scope.enabled = true;
};
cmp = {

View File

@@ -2,8 +2,8 @@
isNixOS,
lib,
userConfig,
pkgs,
inputs,
pkgs,
...
}:
let
@@ -36,9 +36,9 @@ in
"$mainMod" = "SUPER";
"$terminal" = "uwsm app -- kitty";
"$menu" = "hyprlauncher";
"$music_player" = if isNixOS then "spotify" else "flatpak run com.spotify.Client";
"$music_player" = "flatpak run com.spotify.Client";
"$notes" = "obsidian";
"$browser" = if isNixOS then "zen-beta" else "zen-browser"; # beta on nixos
"$browser" = "zen-browser";
"$openrgb_color" = "09ce30";
env = [
@@ -174,7 +174,6 @@ in
workspace = [
"1, monitor:DP-2"
"1, layout: dwindle"
"2, monitor:DP-1"
"3, monitor:DP-1"
"4, monitor:DP-1"
@@ -198,7 +197,6 @@ 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"
@@ -351,8 +349,8 @@ in
bindd = [
"$mainMod, F, Make app fullscreen, fullscreen"
"$mainMod, T, Toggle floating, togglefloating"
"$mainMod, S, layoutmsg, swapsplit"
"$mainMod, C, layoutmsg, togglesplit"
"$mainMod, P, Toggle pseudo, pseudo"
"$mainMod, S, Toggle split, togglesplit"
"$mainMod, Q, Kill active window, killactive"
];
};

View File

@@ -2,6 +2,9 @@
{
home.packages = with pkgs; [
waypaper
swww
gnupg
libnotify
cliphist
gh

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
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/
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/