mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-27 19:20:43 +01:00
Compare commits
29 Commits
laptop
...
04210f9d25
| Author | SHA1 | Date | |
|---|---|---|---|
| 04210f9d25 | |||
| 0b7364b4bd | |||
| 71e8871aa0 | |||
| de109a7dd9 | |||
| 27144d7e49 | |||
| b93e319d78 | |||
| 313050d577 | |||
| 272d026e54 | |||
| 0288a57961 | |||
| d24395e1bd | |||
| a7c5193cf7 | |||
| 529b52712e | |||
| 027a74e588 | |||
| 42193b3ab2 | |||
| 7c12cb82aa | |||
| 2886f0517b | |||
| 6f0d08bf48 | |||
| c4617cad86 | |||
| 16d9094435 | |||
| 96e33b9bc4 | |||
| 5889e11254 | |||
| ff8b2befb6 | |||
| 7e694f9994 | |||
| 9c545347a7 | |||
| 99aea6fed5 | |||
| 507f496a53 | |||
| 152ab8bfe1 | |||
| 997e669803 | |||
| cbc68e2b5a |
95
flake.lock
generated
95
flake.lock
generated
@@ -20,11 +20,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771610171,
|
"lastModified": 1772292445,
|
||||||
"narHash": "sha256-+DeInuhbm6a6PpHDNUS7pozDouq2+8xSDefoNaZLW0E=",
|
"narHash": "sha256-4F1Q7U313TKUDDovCC96m/Za4wZcJ3yqtu4eSrj8lk8=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "aquamarine",
|
"repo": "aquamarine",
|
||||||
"rev": "7f9eb087703ec4acc6b288d02fa9ea3db803cd3d",
|
"rev": "1dbbba659c1cef0b0202ce92cadfe13bae550e8f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -38,11 +38,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771587924,
|
"lastModified": 1772983749,
|
||||||
"narHash": "sha256-eVYOGmF8nQBhudJyU6lHdgJI87kvGz8JyCq5/Vi9Mjk=",
|
"narHash": "sha256-IRC/YpTVMDr/lMmWMEc+JU4d+L9z3v38jZuj0jSLaW0=",
|
||||||
"owner": "catppuccin",
|
"owner": "catppuccin",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"rev": "b0c65edbf31c2ad3d84438d82c2310f2c28373f3",
|
"rev": "3594e4c94994515e0e32884dad20ca70ae88fc49",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -117,11 +117,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771851181,
|
"lastModified": 1772985285,
|
||||||
"narHash": "sha256-gFgE6mGUftwseV3DUENMb0k0EiHd739lZexPo5O/sdQ=",
|
"narHash": "sha256-wEEmvfqJcl9J0wyMgMrj1TixOgInBW/6tLPhWGoZE3s=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "9a4b494b1aa1b93d8edf167f46dc8e0c0011280c",
|
"rev": "5be5d8245cbc7bc0c09fbb5f38f23f223c543f85",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -159,6 +159,24 @@
|
|||||||
"type": "github"
|
"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": {
|
"hyprgraphics": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprutils": [
|
"hyprutils": [
|
||||||
@@ -199,17 +217,17 @@
|
|||||||
"hyprutils": "hyprutils",
|
"hyprutils": "hyprutils",
|
||||||
"hyprwayland-scanner": "hyprwayland-scanner",
|
"hyprwayland-scanner": "hyprwayland-scanner",
|
||||||
"hyprwire": "hyprwire",
|
"hyprwire": "hyprwire",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"pre-commit-hooks": "pre-commit-hooks",
|
"pre-commit-hooks": "pre-commit-hooks",
|
||||||
"systems": "systems",
|
"systems": "systems",
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772022552,
|
"lastModified": 1772913214,
|
||||||
"narHash": "sha256-L3zktLSXcvsqczTz7YL5PXYgn4a08tRfl9t6YYLESM8=",
|
"narHash": "sha256-lI361+KhTUerHMYJOaDzVhIikAX1PNcZMNY1WEx/+dc=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "457617b5a31f70ea63e1fcc0729f29e4a9e6b486",
|
"rev": "a4ecae91600d7e8ceb31610176d6b40cb816711b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -451,11 +469,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771369470,
|
"lastModified": 1772773019,
|
||||||
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
|
"narHash": "sha256-E1bxHxNKfDoQUuvriG71+f+s/NT0qWkImXsYZNFFfCs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0182a361324364ae3f436a63005877674cf45efb",
|
"rev": "aca4d95fce4914b3892661bcb80b8087293536c6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -467,11 +485,27 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771848320,
|
"lastModified": 1762977756,
|
||||||
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
|
"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": 1772198003,
|
||||||
|
"narHash": "sha256-I45esRSssFtJ8p/gLHUZ1OUaaTaVLluNkABkk6arQwE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
|
"rev": "dd9b079222d43e1943b6ebd802f04fd959dc8e61",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -481,13 +515,13 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771369470,
|
"lastModified": 1772773019,
|
||||||
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
|
"narHash": "sha256-E1bxHxNKfDoQUuvriG71+f+s/NT0qWkImXsYZNFFfCs=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0182a361324364ae3f436a63005877674cf45efb",
|
"rev": "aca4d95fce4914b3892661bcb80b8087293536c6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -506,11 +540,11 @@
|
|||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771135771,
|
"lastModified": 1772402258,
|
||||||
"narHash": "sha256-wyvBIhDuyCRyjB3yPg77qoyxrlgQtBR1rVW3c9knV3E=",
|
"narHash": "sha256-3DmCFOdmbkFML1/G9gj8Wb+rCCZFPOQtNoMCpqOF8SA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "ed0424f0b08d303a7348f52f7850ad1b2704f9ba",
|
"rev": "21ae25e13b01d3b4cdc750b5f9e7bad68b150c10",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -529,11 +563,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771858127,
|
"lastModified": 1772024342,
|
||||||
"narHash": "sha256-Gtre9YoYl3n25tJH2AoSdjuwcqij5CPxL3U3xysYD08=",
|
"narHash": "sha256-+eXlIc4/7dE6EcPs9a2DaSY3fTA9AE526hGqkNID3Wg=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "git-hooks.nix",
|
"repo": "git-hooks.nix",
|
||||||
"rev": "49bbbfc218bf3856dfa631cead3b052d78248b83",
|
"rev": "6e34e97ed9788b17796ee43ccdbaf871a5c2b476",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -546,8 +580,9 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"catppuccin": "catppuccin",
|
"catppuccin": "catppuccin",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
"hyprcursor-phinger": "hyprcursor-phinger",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"wallpapers": "wallpapers"
|
"wallpapers": "wallpapers"
|
||||||
}
|
}
|
||||||
|
|||||||
106
flake.nix
106
flake.nix
@@ -19,6 +19,8 @@
|
|||||||
url = "github:nix-community/nixvim";
|
url = "github:nix-community/nixvim";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hyprcursor-phinger.url = "github:jappie3/hyprcursor-phinger";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
@@ -32,7 +34,7 @@
|
|||||||
}@inputs:
|
}@inputs:
|
||||||
|
|
||||||
let
|
let
|
||||||
userConfig = {
|
baseUserConfig = {
|
||||||
username = "szymon";
|
username = "szymon";
|
||||||
# for git
|
# for git
|
||||||
email = "szymon_jozef@proton.me";
|
email = "szymon_jozef@proton.me";
|
||||||
@@ -40,7 +42,7 @@
|
|||||||
# your public ssh key
|
# your public ssh key
|
||||||
signingKey = "~/.ssh/github.pub";
|
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
|
statusBar = "ashell"; # available: ashell|waybar
|
||||||
|
|
||||||
pathConfig = {
|
pathConfig = {
|
||||||
@@ -51,45 +53,79 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
system = "x86_64-linux";
|
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
|
in
|
||||||
{
|
{
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
"arch" = home-manager.lib.homeManagerConfiguration {
|
"arch" = mkHomeConfig {
|
||||||
pkgs = import nixpkgs {
|
isNixOS = false;
|
||||||
inherit system;
|
hostName = "arch";
|
||||||
config.allowUnfree = true;
|
|
||||||
};
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit
|
|
||||||
inputs
|
|
||||||
userConfig
|
|
||||||
;
|
|
||||||
isNixOS = false;
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./home.nix
|
|
||||||
catppuccin.homeModules.catppuccin
|
|
||||||
nixvim.homeModules.nixvim
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
};
|
||||||
"nixos" = home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = import nixpkgs {
|
"nixos" = mkHomeConfig {
|
||||||
inherit system;
|
isNixOS = true;
|
||||||
config.allowUnfree = true;
|
hostName = "nixos";
|
||||||
|
};
|
||||||
|
|
||||||
|
"${baseUserConfig.username}@pitagoras" = mkHomeConfig {
|
||||||
|
isNixOS = true;
|
||||||
|
overrides = {
|
||||||
|
mainMonitor = "eDP-1";
|
||||||
};
|
};
|
||||||
extraSpecialArgs = {
|
hostName = "pitagoras";
|
||||||
inherit
|
};
|
||||||
inputs
|
|
||||||
userConfig
|
"${baseUserConfig.username}@pilecki" = mkHomeConfig {
|
||||||
;
|
isNixOS = true;
|
||||||
isNixOS = true;
|
overrides = {
|
||||||
|
mainMonitor = "LVDS-1";
|
||||||
};
|
};
|
||||||
modules = [
|
hostName = "pilecki";
|
||||||
./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";
|
||||||
|
};
|
||||||
|
hostName = "paderewski-nix";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
19
home.nix
19
home.nix
@@ -68,13 +68,24 @@
|
|||||||
".config/gtk-3.0/gtk.css".source = ./dotfiles/gtk-3.0/gtk.css;
|
".config/gtk-3.0/gtk.css".source = ./dotfiles/gtk-3.0/gtk.css;
|
||||||
${userConfig.pathConfig.wallpaper}.source = inputs.wallpapers;
|
${userConfig.pathConfig.wallpaper}.source = inputs.wallpapers;
|
||||||
};
|
};
|
||||||
|
programs.hyprcursor-phinger.enable = true;
|
||||||
|
|
||||||
# === VARS ===
|
# === VARS ===
|
||||||
|
|
||||||
home.sessionVariables = {
|
home = {
|
||||||
EDITOR = "nvim";
|
sessionVariables = {
|
||||||
VISUAL = "nvim";
|
EDITOR = "nvim";
|
||||||
XDG_DATA_DIRS = "$HOME/.nix-profile/share/applications:$XDG_DATA_DIRS";
|
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;
|
programs.home-manager.enable = true;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
xdg.configFile."fastfetch/startup.jsonc".text = builtins.toJSON {
|
xdg.configFile."fastfetch/startup.jsonc".text = builtins.toJSON {
|
||||||
logo = {
|
logo = {
|
||||||
source = "arch_small";
|
source = "nixos_small";
|
||||||
padding = {
|
padding = {
|
||||||
bottom = 1;
|
bottom = 1;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ isNixOS, ... }:
|
{ isNixOS, hostName, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
@@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
fish_vi_key_bindings
|
fish_vi_key_bindings
|
||||||
|
|
||||||
|
direnv hook fish | source
|
||||||
|
|
||||||
fastfetch --config ~/.config/fastfetch/startup.jsonc
|
fastfetch --config ~/.config/fastfetch/startup.jsonc
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@@ -45,7 +47,7 @@
|
|||||||
|
|
||||||
set -l rel_file (realpath --relative-to=$config_dir $file)
|
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
|
||||||
git add -A
|
git add -A
|
||||||
set commit_msg "update: $rel_file"
|
set commit_msg "update: $rel_file"
|
||||||
git commit -m "$commit_msg"
|
git commit -m "$commit_msg"
|
||||||
@@ -61,17 +63,12 @@
|
|||||||
|
|
||||||
reload_dotfiles = {
|
reload_dotfiles = {
|
||||||
body = # fish
|
body = # fish
|
||||||
"nh home switch ~/.config/home-manager -c ${if isNixOS then "nixos" else "arch"}";
|
"nh home switch ~/.config/home-manager";
|
||||||
};
|
};
|
||||||
|
|
||||||
ls = {
|
reload_system = {
|
||||||
body = # fish
|
body = # fish
|
||||||
"eza --long --icons --group-directories-first --git $argv";
|
"nh os switch /etc/nixos/";
|
||||||
};
|
|
||||||
|
|
||||||
lst = {
|
|
||||||
body = # fish
|
|
||||||
"eza --long --icons --color --git --tree $argv";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
cp_mail = {
|
cp_mail = {
|
||||||
@@ -80,48 +77,101 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
update = {
|
update = {
|
||||||
body = # fish
|
body =
|
||||||
''
|
if isNixOS then
|
||||||
echo "===System update==="
|
# fish
|
||||||
|
''
|
||||||
|
echo "=== System packages update ==="
|
||||||
|
pushd /etc/nixos
|
||||||
|
|
||||||
if not type -q yay
|
if git pull
|
||||||
echo "Yay not found… Is this Arch? If yes, then please consider installing it!"
|
git add -A
|
||||||
else
|
git commit --allow-empty -m "chore: state before system update"
|
||||||
yay
|
|
||||||
end
|
nix flake update
|
||||||
|
|
||||||
if type -q pacman
|
if test $status -eq 0
|
||||||
echo "===Remove orphans==="
|
git add ./flake.lock
|
||||||
set orphans (pacman -Qtdq)
|
git commit --allow-empty -m "chore: update system flake.lock"
|
||||||
if test (count $orphans) -gt 0
|
reload_system
|
||||||
sudo pacman -Rns $orphans
|
else
|
||||||
|
echo "Error while updating system flake!"
|
||||||
end
|
end
|
||||||
end
|
else
|
||||||
|
echo "Error: 'git pull' failed in /etc/nixos. Skipping system update."
|
||||||
|
end
|
||||||
|
|
||||||
if type -q flatpak
|
popd
|
||||||
echo "===Flatpak update==="
|
|
||||||
|
echo "=== User packages update ==="
|
||||||
|
pushd $HOME/.config/home-manager
|
||||||
|
|
||||||
|
if git pull
|
||||||
|
git add -A
|
||||||
|
git commit --allow-empty -m "chore: state before home-manager update"
|
||||||
|
|
||||||
|
nix flake update
|
||||||
|
|
||||||
|
if test $status -eq 0
|
||||||
|
git add ./flake.lock
|
||||||
|
git commit --allow-empty -m "chore: update home flake.lock"
|
||||||
|
reload_dotfiles
|
||||||
|
else
|
||||||
|
echo "Error while updating home flake!"
|
||||||
|
end
|
||||||
|
else
|
||||||
|
echo "Error: 'git pull' failed in home-manager. Skipping user update."
|
||||||
|
end
|
||||||
|
|
||||||
|
popd
|
||||||
|
|
||||||
|
if type -q flatpak
|
||||||
|
echo "=== Flatpak update ==="
|
||||||
flatpak update --noninteractive
|
flatpak update --noninteractive
|
||||||
echo "===Flatpak remove unused==="
|
|
||||||
flatpak uninstall --unused
|
echo "=== Flatpak remove unused ==="
|
||||||
end
|
flatpak uninstall --unused --noninteractive
|
||||||
|
end
|
||||||
|
''
|
||||||
|
else
|
||||||
|
# fish
|
||||||
|
''
|
||||||
|
echo "===System update==="
|
||||||
|
|
||||||
if type -q nix-channel
|
if not type -q yay
|
||||||
echo "===Nix update==="
|
echo "Yay not found… Please consider installing it!"
|
||||||
nix-channel --update
|
else
|
||||||
echo "===Nix garbage collection==="
|
yay
|
||||||
home-manager expire-generations "-7 days"
|
end
|
||||||
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 = {
|
shellAliases = {
|
||||||
body = "trash $argv";
|
ls = "eza --long --icons --group-directories-first --git";
|
||||||
};
|
lst = "eza --long --icons --color --git --tree";
|
||||||
|
rm = "trash";
|
||||||
open = {
|
|
||||||
body = "nohup xdg-open $argv > /dev/null & ";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,6 +100,14 @@
|
|||||||
action.__raw = "function() require('harpoon'):list():next() end";
|
action.__raw = "function() require('harpoon'):list():next() end";
|
||||||
options.desc = "Toggle next harpoon buffer";
|
options.desc = "Toggle next harpoon buffer";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
key = "j";
|
||||||
|
action= "jzz";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "k";
|
||||||
|
action= "kzz";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
autoGroups = {
|
autoGroups = {
|
||||||
@@ -203,9 +211,14 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
indent-blankline = {
|
cursorline = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.scope.enabled = true;
|
timeout = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
mini-indentscope = {
|
||||||
|
enable = true;
|
||||||
|
settings.draw.delay = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
cmp = {
|
cmp = {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
lib,
|
lib,
|
||||||
userConfig,
|
userConfig,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -24,15 +25,20 @@ in
|
|||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
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 = {
|
settings = {
|
||||||
"$mainMod" = "SUPER";
|
"$mainMod" = "SUPER";
|
||||||
"$terminal" = "uwsm app -- kitty";
|
"$terminal" = "uwsm app -- kitty";
|
||||||
"$menu" = "hyprlauncher";
|
"$menu" = "hyprlauncher";
|
||||||
"$music_player" = "flatpak run com.spotify.Client";
|
"$music_player" = if isNixOS then "spotify" else "flatpak run com.spotify.Client";
|
||||||
"$notes" = "obsidian";
|
"$notes" = "obsidian";
|
||||||
"$browser" = "zen-browser";
|
"$browser" = if isNixOS then "zen-beta" else "zen-browser"; # beta on nixos
|
||||||
"$openrgb_color" = "09ce30";
|
"$openrgb_color" = "09ce30";
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
@@ -50,7 +56,7 @@ in
|
|||||||
"col.inactive_border" = "$overlay1";
|
"col.inactive_border" = "$overlay1";
|
||||||
resize_on_border = false;
|
resize_on_border = false;
|
||||||
allow_tearing = false;
|
allow_tearing = false;
|
||||||
layout = "dwindle";
|
layout = "scrolling";
|
||||||
};
|
};
|
||||||
|
|
||||||
animations = {
|
animations = {
|
||||||
@@ -168,6 +174,7 @@ in
|
|||||||
|
|
||||||
workspace = [
|
workspace = [
|
||||||
"1, monitor:DP-2"
|
"1, monitor:DP-2"
|
||||||
|
"1, layout: dwindle"
|
||||||
"2, monitor:DP-1"
|
"2, monitor:DP-1"
|
||||||
"3, monitor:DP-1"
|
"3, monitor:DP-1"
|
||||||
"4, monitor:DP-1"
|
"4, monitor:DP-1"
|
||||||
@@ -191,6 +198,7 @@ in
|
|||||||
"match:class ^(vesktop)$, workspace 1 silent"
|
"match:class ^(vesktop)$, workspace 1 silent"
|
||||||
"match:class ^(chrome-facebook.com__-Default)$, workspace 1"
|
"match:class ^(chrome-facebook.com__-Default)$, workspace 1"
|
||||||
"match:class ^(zen)$, workspace 2"
|
"match:class ^(zen)$, workspace 2"
|
||||||
|
"match:class ^(zen-beta)$, workspace 2"
|
||||||
"match:class ^(com.github.IsmaelMartinez.teams_for_linux)$, workspace 2"
|
"match:class ^(com.github.IsmaelMartinez.teams_for_linux)$, workspace 2"
|
||||||
"match:class ^(FreeTube)$, workspace 2"
|
"match:class ^(FreeTube)$, workspace 2"
|
||||||
"match:class ^(brave-x.com__-Default)$, workspace 2"
|
"match:class ^(brave-x.com__-Default)$, workspace 2"
|
||||||
@@ -202,6 +210,7 @@ in
|
|||||||
"match:class ^(net.lutris.Lutris)$, workspace 3"
|
"match:class ^(net.lutris.Lutris)$, workspace 3"
|
||||||
"match:class ^(rpcs3)$, workspace 3"
|
"match:class ^(rpcs3)$, workspace 3"
|
||||||
"match:class ^(winboat)$, workspace 5"
|
"match:class ^(winboat)$, workspace 5"
|
||||||
|
"match:class ^(qemu)$, workspace 5"
|
||||||
"match:class ^(obsidian)$, workspace 6"
|
"match:class ^(obsidian)$, workspace 6"
|
||||||
"match:class ^(gimp)$, workspace 8"
|
"match:class ^(gimp)$, workspace 8"
|
||||||
"match:class .*potify, workspace 9 silent"
|
"match:class .*potify, workspace 9 silent"
|
||||||
@@ -343,8 +352,6 @@ in
|
|||||||
bindd = [
|
bindd = [
|
||||||
"$mainMod, F, Make app fullscreen, fullscreen"
|
"$mainMod, F, Make app fullscreen, fullscreen"
|
||||||
"$mainMod, T, Toggle floating, togglefloating"
|
"$mainMod, T, Toggle floating, togglefloating"
|
||||||
"$mainMod, P, Toggle pseudo, pseudo"
|
|
||||||
"$mainMod, S, Toggle split, togglesplit"
|
|
||||||
"$mainMod, Q, Kill active window, killactive"
|
"$mainMod, Q, Kill active window, killactive"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -19,5 +19,11 @@
|
|||||||
slurp
|
slurp
|
||||||
bc
|
bc
|
||||||
nh
|
nh
|
||||||
|
runc
|
||||||
];
|
];
|
||||||
|
|
||||||
|
xdg.configFile."containers/containers.conf".text = ''
|
||||||
|
[engine]
|
||||||
|
runtime = "runc"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
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/uwu_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/wd_backup/home/szymon/
|
||||||
|
|||||||
Reference in New Issue
Block a user