upgrades from macbookpro
This commit is contained in:
parent
274954af86
commit
637d902291
5 changed files with 16 additions and 65 deletions
|
@ -25,6 +25,8 @@
|
||||||
networking.hostName = "luffy"; # Define your hostname.
|
networking.hostName = "luffy"; # Define your hostname.
|
||||||
networking.extraHosts = ''
|
networking.extraHosts = ''
|
||||||
127.0.0.1 yeswiki.test
|
127.0.0.1 yeswiki.test
|
||||||
|
192.168.36.206 chmok.net
|
||||||
|
fd72:51a6:d583:0:984a:cc56:cf75:dc6 chmok.net
|
||||||
'';
|
'';
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
|
@ -61,8 +63,8 @@
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
layout = "us,ru";
|
xkb.layout = "us,ru";
|
||||||
xkbVariant = "mac";
|
xkb.variant = "mac";
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
wirelesstools
|
wirelesstools
|
||||||
yt-dlp
|
yt-dlp
|
||||||
zellij
|
zellij
|
||||||
|
zoxide
|
||||||
zsh-autosuggestions
|
zsh-autosuggestions
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,13 +22,15 @@
|
||||||
printing.drivers = [ pkgs.brlaser ];
|
printing.drivers = [ pkgs.brlaser ];
|
||||||
avahi = {
|
avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns = true;
|
nssmdns4 = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
displayManager.defaultSession = "plasmawayland";
|
||||||
|
displayManager.sddm.wayland.enable = true;
|
||||||
|
displayManager.sddm.enableHidpi = true;
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager.defaultSession = "plasmawayland";
|
|
||||||
desktopManager.plasma5.enable = true;
|
desktopManager.plasma5.enable = true;
|
||||||
displayManager.sddm.wayland.enable = true;
|
displayManager.sddm.wayland.enable = true;
|
||||||
displayManager.sddm.enableHidpi = true;
|
displayManager.sddm.enableHidpi = true;
|
||||||
|
|
|
@ -7,36 +7,6 @@ let
|
||||||
rev = "4e56cfeb95081a43cb49487d0996dc936d6201e5";
|
rev = "4e56cfeb95081a43cb49487d0996dc936d6201e5";
|
||||||
sha256 = "sha256-LJ/lFEupLSi7xtUps234hhMk7ZdVLRoYeU7KiCFaoGw=";
|
sha256 = "sha256-LJ/lFEupLSi7xtUps234hhMk7ZdVLRoYeU7KiCFaoGw=";
|
||||||
};
|
};
|
||||||
treesitterWithGrammars = (pkgs.vimPlugins.nvim-treesitter.withPlugins (p: [
|
|
||||||
p.bash
|
|
||||||
p.comment
|
|
||||||
p.css
|
|
||||||
p.dockerfile
|
|
||||||
p.fish
|
|
||||||
p.gitattributes
|
|
||||||
p.gitignore
|
|
||||||
p.go
|
|
||||||
p.gomod
|
|
||||||
p.gowork
|
|
||||||
p.hcl
|
|
||||||
p.html
|
|
||||||
p.php
|
|
||||||
p.javascript
|
|
||||||
p.jq
|
|
||||||
p.json5
|
|
||||||
p.json
|
|
||||||
p.lua
|
|
||||||
p.make
|
|
||||||
p.markdown
|
|
||||||
p.nix
|
|
||||||
p.python
|
|
||||||
p.rust
|
|
||||||
p.twig
|
|
||||||
p.toml
|
|
||||||
p.typescript
|
|
||||||
p.vue
|
|
||||||
p.yaml
|
|
||||||
]));
|
|
||||||
startupScript = pkgs.pkgs.writeShellScriptBin "hyprland-start" ''
|
startupScript = pkgs.pkgs.writeShellScriptBin "hyprland-start" ''
|
||||||
${pkgs.waybar}/bin/waybar &
|
${pkgs.waybar}/bin/waybar &
|
||||||
${pkgs.swww}/bin/swww init &
|
${pkgs.swww}/bin/swww init &
|
||||||
|
@ -47,7 +17,7 @@ let
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
# TODO can we automate the installation of home-manager ?
|
# TODO can we automate the installation of home-manager ?
|
||||||
# sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager
|
# sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
|
||||||
imports = [
|
imports = [
|
||||||
<home-manager/nixos>
|
<home-manager/nixos>
|
||||||
];
|
];
|
||||||
|
@ -55,7 +25,6 @@ in {
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
#programs.home-manager.enable = true;
|
#programs.home-manager.enable = true;
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
|
||||||
users.users.mrflos = {
|
users.users.mrflos = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "mrflos";
|
description = "mrflos";
|
||||||
|
@ -104,13 +73,6 @@ in {
|
||||||
source = ../dotfiles/tmux;
|
source = ../dotfiles/tmux;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Treesitter is configured as a locally developed module in lazy.nvim
|
|
||||||
# we hardcode a symlink here so that we can refer to it in our lazy config
|
|
||||||
"./.local/share/nvim/nix/nvim-treesitter/" = {
|
|
||||||
recursive = true;
|
|
||||||
source = treesitterWithGrammars;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
|
@ -247,29 +209,11 @@ in {
|
||||||
core.fileMode = false;
|
core.fileMode = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
neovim = {
|
neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
coc.enable = false;
|
|
||||||
|
|
||||||
plugins = [ treesitterWithGrammars ];
|
|
||||||
};
|
|
||||||
|
|
||||||
password-store = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
|
|
||||||
settings = {
|
|
||||||
PASSWORD_STORE_DIR = "$XDG_DATA_HOME/password-store";
|
|
||||||
PASSWORD_STORE_KEY = "How to Hide This ?";
|
|
||||||
PASSWORD_STORE_CLIP_TIME = "60";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
thunderbird = {
|
|
||||||
enable = true;
|
|
||||||
profiles.default = { isDefault = true; };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
starship = {
|
starship = {
|
||||||
|
@ -279,7 +223,7 @@ in {
|
||||||
|
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAutosuggestions = true;
|
autosuggestion.enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
#tmux = "tmux -f ~/.config/tmux/tmux.conf attach || tmux -f ~/.config/tmux/tmux.conf new";
|
#tmux = "tmux -f ~/.config/tmux/tmux.conf attach || tmux -f ~/.config/tmux/tmux.conf new";
|
||||||
|
@ -295,6 +239,7 @@ in {
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
export BUN_INSTALL="$HOME/.bun"
|
export BUN_INSTALL="$HOME/.bun"
|
||||||
export PATH="$HOME/.local/bin:$BUN_INSTALL/bin:$PATH"
|
export PATH="$HOME/.local/bin:$BUN_INSTALL/bin:$PATH"
|
||||||
|
eval "$(zoxide init zsh)"
|
||||||
'';
|
'';
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -73,11 +73,11 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
#clang
|
#clang
|
||||||
dart-sass
|
dart-sass
|
||||||
dbeaver
|
dbeaver-bin
|
||||||
docker-compose
|
docker-compose
|
||||||
gcc
|
gcc
|
||||||
go
|
go
|
||||||
nixfmt
|
nixfmt-rfc-style
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
nodejs
|
nodejs
|
||||||
nodePackages.eslint
|
nodePackages.eslint
|
||||||
|
@ -91,6 +91,7 @@
|
||||||
ruff-lsp
|
ruff-lsp
|
||||||
stylelint
|
stylelint
|
||||||
symfony-cli
|
symfony-cli
|
||||||
|
tree-sitter
|
||||||
virt-manager
|
virt-manager
|
||||||
yarn
|
yarn
|
||||||
zig
|
zig
|
||||||
|
|
Loading…
Reference in a new issue