feat(dev and desktop) : starship with conf, devenv,wip gnome

This commit is contained in:
Florian Schmitt 2023-05-11 17:03:37 +03:00
parent 5b62192a52
commit 3774c53e72
6 changed files with 98 additions and 15 deletions

14
configs/starship.toml Normal file
View file

@ -0,0 +1,14 @@
"$schema" = 'https://starship.rs/config-schema.json'
format = '${custom.tztime}$all$directory$character'
add_newline = true # Inserts a blank line between shell prompts
[character]
success_symbol = '[➜](bold green)'
error_symbol = "[➜](bold red)"
[custom.tztime]
command = 'date +"%a %d %b %H:%M%p"'
when = "true"
format = '\[$symbol($output)\] (purple)'

View file

@ -37,4 +37,5 @@
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# high-resolution display # high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true; hardware.video.hidpi.enable = lib.mkDefault true;
hardware.opengl.enable = true;
} }

View file

@ -10,12 +10,16 @@
vimAlias = true; vimAlias = true;
}; };
ssh.startAgent = true; ssh.startAgent = true;
starship.enable = true; starship = {
enable = true;
settings = with builtins; fromTOML (readFile ../configs/starship.toml);
};
zsh = { zsh = {
enable = true; enable = true;
autosuggestions.enable = true; autosuggestions.enable = true;
shellAliases = { shellAliases = {
nixedit = "sudo micro /etc/nixos/configuration.nix"; ls = "ls --hyperlink=auto";
nixedit = "codium /etc/nixos";
nixupdate = "sudo nixos-rebuild switch"; nixupdate = "sudo nixos-rebuild switch";
nixclean = "sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch && sudo nix-store --gc"; nixclean = "sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch && sudo nix-store --gc";
}; };

View file

@ -11,7 +11,7 @@ in
security.rtkit.enable = true; security.rtkit.enable = true;
services = { services = {
blueman.enable = true; #blueman.enable = true;
pipewire = { pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
@ -38,11 +38,15 @@ in
khelpcenter khelpcenter
plasma-browser-integration plasma-browser-integration
]; ];
desktopManager.gnome.enable = true;
# libinput.enable = true; # Enable touchpad support (enabled default in most desktopManager). # libinput.enable = true; # Enable touchpad support (enabled default in most desktopManager).
}; };
}; };
programs = { programs = {
# conflict between kde and gnome cf. https://github.com/NixOS/nixpkgs/issues/75867
ssh.askPassword = pkgs.lib.mkForce "${pkgs.ksshaskpass.out}/bin/ksshaskpass";
dconf.enable = true; dconf.enable = true;
firefox.enable = true; firefox.enable = true;
chromium = { chromium = {
@ -83,6 +87,7 @@ in
(vscode-with-extensions.override { (vscode-with-extensions.override {
vscode = vscodium; vscode = vscodium;
vscodeExtensions = with vscode-extensions; [ vscodeExtensions = with vscode-extensions; [
ms-ceintl.vscode-language-pack-fr
mkhl.direnv mkhl.direnv
jnoortheen.nix-ide jnoortheen.nix-ide
dracula-theme.theme-dracula dracula-theme.theme-dracula
@ -101,23 +106,45 @@ in
enableWideVine = true; # DRM support enableWideVine = true; # DRM support
}) })
bitwarden bitwarden
chromium
element-desktop element-desktop
filezilla filezilla
gimp-with-plugins
gnome.gnome-tweaks
inkscape-with-extensions inkscape-with-extensions
inter inter
gimp-with-plugins kitty
kitty-themes
libsForQt5.ark libsForQt5.ark
libsForQt5.bismuth
mattermost-desktop mattermost-desktop
nextcloud-client nextcloud-client
signal-desktop signal-desktop
tdesktop tdesktop
thunderbird thunderbird
vlc vlc
vscodium unstable.hyprland
unstable.obsidian unstable.obsidian
]; ];
environment.gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
]) ++ (with pkgs.gnome; [
cheese # webcam tool
gnome-music
gedit # text editor
epiphany # web browser
geary # email reader
gnome-characters
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
yelp # Help view
gnome-contacts
gnome-initial-setup
]);
# Do not restart the display manager automatically # Do not restart the display manager automatically
systemd.services.display-manager.restartIfChanged = lib.mkForce false; systemd.services.display-manager.restartIfChanged = lib.mkForce false;

View file

@ -39,15 +39,15 @@
}; };
}; };
# programs.git = { programs.git = {
# enable = true; enable = true;
# userName = "Florian Schmitt"; userName = "Florian Schmitt";
# userEmail = "mrflos@gmail.com"; userEmail = "mrflos@gmail.com";
# extraConfig = { extraConfig = {
# pull.rebase = true; pull.rebase = true;
# init.defaultBranch = "main"; init.defaultBranch = "main";
# }; };
# }; };
programs.thunderbird = { programs.thunderbird = {
enable = true; enable = true;
@ -55,6 +55,41 @@
isDefault = true; isDefault = true;
}; };
}; };
gtk = {
enable = true;
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
theme = {
name = "palenight";
package = pkgs.palenight-theme;
};
cursorTheme = {
name = "Numix-Cursor";
package = pkgs.numix-cursor-theme;
};
gtk3.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
gtk4.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
};
home.sessionVariables.GTK_THEME = "palenight";
}; };
users.users.mrflos = { users.users.mrflos = {

View file

@ -118,7 +118,9 @@
(import (fetchTarball https://github.com/cachix/devenv/archive/v0.6.2.tar.gz)).default (import (fetchTarball https://github.com/cachix/devenv/archive/v0.6.2.tar.gz)).default
direnv direnv
docker-compose docker-compose
nodejs
virt-manager virt-manager
yarn
zola zola
]; ];
} }