add basic (and working) sway config

This commit is contained in:
Alexander Navarro 2023-07-09 19:10:49 -04:00
parent c4219c5b62
commit 0ed78d898e
4 changed files with 112 additions and 56 deletions

View file

@ -6,7 +6,8 @@
{
imports =
[ # Include the results of the hardware scan.
[
# Include the results of the hardware scan.
./hardware-configuration.nix
];
@ -17,10 +18,6 @@
networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
@ -46,8 +43,26 @@
services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.displayManager.sddm.theme = "catppuccin-macchiato";
# services.xserver.displayManager.gdm.wayland = true;
# services.xserver.desktopManager.gnome.enable = true;
# enable sway window manager
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
extraSessionCommands = ''
export MOZ_ENABLE_WAYLAND=1
'';
};
programs.waybar.enable = true;
services.dbus.enable = true;
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
# Configure keymap in X11
services.xserver = {
@ -88,7 +103,6 @@
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
firefox
# thunderbird
];
};
@ -98,37 +112,51 @@
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
alacritty
bat
cargo
duf
exa
fd
flatpak
fzf
jq
gcc
git
gnome.gnome-software
gnome.gnome-tweaks
gnomeExtensions.hibernate-status-button
hyprland
hyprpaper
lazygit
luajitPackages.luarocks
neovim
nerdfonts
nodejs
ripgrep
rustc
sd
starship
tealdeer
tmux
tree-sitter
wget
zellij
zsh
alacritty
bat
bemenu
cargo
duf
exa
fd
flatpak
fzf
gcc
git
glib
gnome.gnome-software
gnome.gnome-tweaks
gnomeExtensions.hibernate-status-button
grim
grim #screenshots
hyprland
hyprpaper
jq
lazygit
luajitPackages.luarocks
mako
mako
neovim
nodejs
ripgrep
rustc
sd
slurp
slurp # screenshot
starship
swayidle
swaylock
swaycons
tealdeer
tmux
tree-sitter
wget
wl-clipboard
wl-clipboard
xdg-utils
zellij
zsh
(callPackage ./theme.nix { }).sddm-catppucin-theme
];
# Some programs need SUID wrappers, can be configured further or are
@ -144,12 +172,6 @@
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
@ -157,18 +179,29 @@
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
services.flatpak.enable = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
system.autoUpgrade.enable = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
system.autoUpgrade.enable = true;
programs.zsh.enable = true;
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
environment.shells = with pkgs; [ zsh ];
fonts.fonts = with pkgs; [
(nerdfonts.override {
fonts = [
"JetBrainsMono"
];
}
)
];
users.defaultUserShell = pkgs.zsh;
environment.shells = with pkgs; [ zsh ];
}