mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-28 11:10:42 +01:00
Compare commits
12 Commits
thinkpad
...
c4617cad86
| Author | SHA1 | Date | |
|---|---|---|---|
| c4617cad86 | |||
| 16d9094435 | |||
| 96e33b9bc4 | |||
| 5889e11254 | |||
| ff8b2befb6 | |||
| 7e694f9994 | |||
| 9c545347a7 | |||
| 99aea6fed5 | |||
| 507f496a53 | |||
| 152ab8bfe1 | |||
| 997e669803 | |||
| cbc68e2b5a |
18
flake.lock
generated
18
flake.lock
generated
@@ -117,11 +117,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772060133,
|
"lastModified": 1771851181,
|
||||||
"narHash": "sha256-VuyRptb8v1lVGMlLp4/1vRX3Efwec0CN0S6mKmDPzLg=",
|
"narHash": "sha256-gFgE6mGUftwseV3DUENMb0k0EiHd739lZexPo5O/sdQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "ce9b6e52500a0ea0ec48f0bbf6d7a3e431d9dfa4",
|
"rev": "9a4b494b1aa1b93d8edf167f46dc8e0c0011280c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -205,11 +205,11 @@
|
|||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772107319,
|
"lastModified": 1772022552,
|
||||||
"narHash": "sha256-qdeeNrWmUe1P2FsnNU1ngoZl8UxczEMJBziwm78V42I=",
|
"narHash": "sha256-L3zktLSXcvsqczTz7YL5PXYgn4a08tRfl9t6YYLESM8=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "c71fbd854dfdedaae011f4b8b1fdb81f8054b309",
|
"rev": "457617b5a31f70ea63e1fcc0729f29e4a9e6b486",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -483,11 +483,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771848320,
|
"lastModified": 1771369470,
|
||||||
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
|
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
|
"rev": "0182a361324364ae3f436a63005877674cf45efb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
87
flake.nix
87
flake.nix
@@ -32,7 +32,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 +40,7 @@
|
|||||||
# your public ssh key
|
# your public ssh key
|
||||||
signingKey = "~/.ssh/github.pub";
|
signingKey = "~/.ssh/github.pub";
|
||||||
|
|
||||||
mainMonitor = "LVDS-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 +51,70 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
in
|
|
||||||
{
|
general_import = import nixpkgs {
|
||||||
homeConfigurations = {
|
|
||||||
"arch" = home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit
|
general_module_import = [
|
||||||
inputs
|
|
||||||
userConfig
|
|
||||||
;
|
|
||||||
isNixOS = false;
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./home.nix
|
./home.nix
|
||||||
catppuccin.homeModules.catppuccin
|
catppuccin.homeModules.catppuccin
|
||||||
nixvim.homeModules.nixvim
|
nixvim.homeModules.nixvim
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
mkHomeConfig =
|
||||||
"nixos" = home-manager.lib.homeManagerConfiguration {
|
{
|
||||||
pkgs = import nixpkgs {
|
isNixOS,
|
||||||
inherit system;
|
overrides ? { },
|
||||||
config.allowUnfree = true;
|
hostName,
|
||||||
};
|
}:
|
||||||
|
home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = general_import;
|
||||||
|
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit
|
inherit inputs isNixOS hostName;
|
||||||
inputs
|
userConfig = baseUserConfig // overrides;
|
||||||
userConfig
|
|
||||||
;
|
|
||||||
isNixOS = true;
|
|
||||||
};
|
};
|
||||||
modules = [
|
|
||||||
./home.nix
|
modules = general_module_import;
|
||||||
catppuccin.homeModules.catppuccin
|
};
|
||||||
nixvim.homeModules.nixvim
|
|
||||||
];
|
in
|
||||||
|
{
|
||||||
|
homeConfigurations = {
|
||||||
|
"arch" = mkHomeConfig {
|
||||||
|
isNixOS = false;
|
||||||
|
hostName = "arch";
|
||||||
|
};
|
||||||
|
|
||||||
|
"nixos" = mkHomeConfig {
|
||||||
|
isNixOS = true;
|
||||||
|
hostName = "nixos";
|
||||||
|
};
|
||||||
|
|
||||||
|
"pitagoras" = mkHomeConfig {
|
||||||
|
isNixOS = true;
|
||||||
|
overrides = {
|
||||||
|
mainMonitor = "eDP-1";
|
||||||
|
};
|
||||||
|
hostName = "pitagoras";
|
||||||
|
};
|
||||||
|
|
||||||
|
"pilecki" = mkHomeConfig {
|
||||||
|
isNixOS = true;
|
||||||
|
overrides = {
|
||||||
|
mainMonitor = "LVDS-1";
|
||||||
|
};
|
||||||
|
hostName = "pilecki";
|
||||||
|
};
|
||||||
|
|
||||||
|
"paderewski" = mkHomeConfig {
|
||||||
|
isNixOS = false;
|
||||||
|
overrides = {
|
||||||
|
mainMonitor = "DP-1";
|
||||||
|
};
|
||||||
|
hostName = "paderewski";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
0
install_nix_and_home_manager_on_arch.sh
Executable file → Normal file
0
install_nix_and_home_manager_on_arch.sh
Executable file → Normal file
@@ -1,4 +1,4 @@
|
|||||||
{ isNixOS, ... }:
|
{ isNixOS, hostName, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
@@ -45,7 +45,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 -c ${hostName}
|
||||||
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,7 +61,7 @@
|
|||||||
|
|
||||||
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 -c ${hostName}";
|
||||||
};
|
};
|
||||||
|
|
||||||
ls = {
|
ls = {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
isNixOS,
|
isNixOS,
|
||||||
lib,
|
lib,
|
||||||
userConfig,
|
userConfig,
|
||||||
inputs,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -38,7 +38,7 @@ in
|
|||||||
"$menu" = "hyprlauncher";
|
"$menu" = "hyprlauncher";
|
||||||
"$music_player" = "flatpak run com.spotify.Client";
|
"$music_player" = "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 = [
|
||||||
@@ -174,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"
|
||||||
@@ -197,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"
|
||||||
@@ -349,8 +351,8 @@ 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, layoutmsg, swapsplit"
|
||||||
"$mainMod, S, Toggle split, togglesplit"
|
"$mainMod, C, layoutmsg, togglesplit"
|
||||||
"$mainMod, Q, Kill active window, killactive"
|
"$mainMod, Q, Kill active window, killactive"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,9 +2,6 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
waypaper
|
|
||||||
swww
|
|
||||||
gnupg
|
|
||||||
libnotify
|
libnotify
|
||||||
cliphist
|
cliphist
|
||||||
gh
|
gh
|
||||||
|
|||||||
Reference in New Issue
Block a user