mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-27 19:20:43 +01:00
Compare commits
13 Commits
c4617cad86
...
thinkpad
| Author | SHA1 | Date | |
|---|---|---|---|
| 80ce759b1d | |||
| 406609f990 | |||
| 325cc17e1b | |||
| dc8a82364b | |||
| 04f6dab540 | |||
| 02a5295aef | |||
| 12ead5ae9b | |||
| 06deba1909 | |||
| a1952fa7a9 | |||
| cd8ef7e5db | |||
| 1801311cb5 | |||
| c16e047e32 | |||
| 2b8f7383ad |
18
flake.lock
generated
18
flake.lock
generated
@@ -117,11 +117,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771851181,
|
"lastModified": 1772060133,
|
||||||
"narHash": "sha256-gFgE6mGUftwseV3DUENMb0k0EiHd739lZexPo5O/sdQ=",
|
"narHash": "sha256-VuyRptb8v1lVGMlLp4/1vRX3Efwec0CN0S6mKmDPzLg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "9a4b494b1aa1b93d8edf167f46dc8e0c0011280c",
|
"rev": "ce9b6e52500a0ea0ec48f0bbf6d7a3e431d9dfa4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -205,11 +205,11 @@
|
|||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772022552,
|
"lastModified": 1772107319,
|
||||||
"narHash": "sha256-L3zktLSXcvsqczTz7YL5PXYgn4a08tRfl9t6YYLESM8=",
|
"narHash": "sha256-qdeeNrWmUe1P2FsnNU1ngoZl8UxczEMJBziwm78V42I=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "457617b5a31f70ea63e1fcc0729f29e4a9e6b486",
|
"rev": "c71fbd854dfdedaae011f4b8b1fdb81f8054b309",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -483,11 +483,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771369470,
|
"lastModified": 1771848320,
|
||||||
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
|
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0182a361324364ae3f436a63005877674cf45efb",
|
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
93
flake.nix
93
flake.nix
@@ -32,7 +32,7 @@
|
|||||||
}@inputs:
|
}@inputs:
|
||||||
|
|
||||||
let
|
let
|
||||||
baseUserConfig = {
|
userConfig = {
|
||||||
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 = "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
|
statusBar = "ashell"; # available: ashell|waybar
|
||||||
|
|
||||||
pathConfig = {
|
pathConfig = {
|
||||||
@@ -51,70 +51,45 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
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
|
|
||||||
];
|
|
||||||
|
|
||||||
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" = mkHomeConfig {
|
"arch" = home-manager.lib.homeManagerConfiguration {
|
||||||
isNixOS = false;
|
pkgs = import nixpkgs {
|
||||||
hostName = "arch";
|
inherit system;
|
||||||
};
|
config.allowUnfree = true;
|
||||||
|
|
||||||
"nixos" = mkHomeConfig {
|
|
||||||
isNixOS = true;
|
|
||||||
hostName = "nixos";
|
|
||||||
};
|
|
||||||
|
|
||||||
"pitagoras" = mkHomeConfig {
|
|
||||||
isNixOS = true;
|
|
||||||
overrides = {
|
|
||||||
mainMonitor = "eDP-1";
|
|
||||||
};
|
};
|
||||||
hostName = "pitagoras";
|
extraSpecialArgs = {
|
||||||
};
|
inherit
|
||||||
|
inputs
|
||||||
"pilecki" = mkHomeConfig {
|
userConfig
|
||||||
isNixOS = true;
|
;
|
||||||
overrides = {
|
isNixOS = false;
|
||||||
mainMonitor = "LVDS-1";
|
|
||||||
};
|
};
|
||||||
hostName = "pilecki";
|
modules = [
|
||||||
};
|
./home.nix
|
||||||
|
catppuccin.homeModules.catppuccin
|
||||||
|
nixvim.homeModules.nixvim
|
||||||
|
];
|
||||||
|
|
||||||
"paderewski" = mkHomeConfig {
|
};
|
||||||
isNixOS = false;
|
"nixos" = home-manager.lib.homeManagerConfiguration {
|
||||||
overrides = {
|
pkgs = import nixpkgs {
|
||||||
mainMonitor = "DP-1";
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
hostName = "paderewski";
|
extraSpecialArgs = {
|
||||||
|
inherit
|
||||||
|
inputs
|
||||||
|
userConfig
|
||||||
|
;
|
||||||
|
isNixOS = true;
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
./home.nix
|
||||||
|
catppuccin.homeModules.catppuccin
|
||||||
|
nixvim.homeModules.nixvim
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
0
install_nix_and_home_manager_on_arch.sh
Normal file → Executable file
0
install_nix_and_home_manager_on_arch.sh
Normal file → Executable file
@@ -1,4 +1,4 @@
|
|||||||
{ isNixOS, hostName, ... }:
|
{ isNixOS, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
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 ${hostName}
|
if nh home switch $config_dir -c ${if isNixOS then "nixos" else "arch"}
|
||||||
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 ${hostName}";
|
"nh home switch ~/.config/home-manager -c ${if isNixOS then "nixos" else "arch"}";
|
||||||
};
|
};
|
||||||
|
|
||||||
ls = {
|
ls = {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
isNixOS,
|
isNixOS,
|
||||||
lib,
|
lib,
|
||||||
userConfig,
|
userConfig,
|
||||||
pkgs,
|
|
||||||
inputs,
|
inputs,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
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" = if isNixOS then "zen-beta" else "zen-browser"; # beta on nixos
|
"$browser" = "zen-browser";
|
||||||
"$openrgb_color" = "09ce30";
|
"$openrgb_color" = "09ce30";
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
@@ -174,7 +174,6 @@ 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"
|
||||||
@@ -198,7 +197,6 @@ 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"
|
||||||
@@ -351,8 +349,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, S, layoutmsg, swapsplit"
|
"$mainMod, P, Toggle pseudo, pseudo"
|
||||||
"$mainMod, C, layoutmsg, togglesplit"
|
"$mainMod, S, Toggle split, togglesplit"
|
||||||
"$mainMod, Q, Kill active window, killactive"
|
"$mainMod, Q, Kill active window, killactive"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
waypaper
|
||||||
|
swww
|
||||||
|
gnupg
|
||||||
libnotify
|
libnotify
|
||||||
cliphist
|
cliphist
|
||||||
gh
|
gh
|
||||||
|
|||||||
Reference in New Issue
Block a user