add basic (and working) sway config
This commit is contained in:
parent
c4219c5b62
commit
0ed78d898e
4 changed files with 112 additions and 56 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -10,3 +10,4 @@ config/mpv/shaders
|
||||||
**/*-lock.json
|
**/*-lock.json
|
||||||
config/spicetify/Backup
|
config/spicetify/Backup
|
||||||
nixos/hardware-configuration.nix
|
nixos/hardware-configuration.nix
|
||||||
|
result
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,12 @@ set $term alacritty
|
||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
||||||
# on the original workspace that the command was run on.
|
# on the original workspace that the command was run on.
|
||||||
set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
set $menu bemenu-run
|
||||||
|
|
||||||
### Output configuration
|
### Output configuration
|
||||||
#
|
#
|
||||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||||
output * bg ~/Pictures/wallpaper.jpg fill
|
# output * bg ~/Pictures/wallpaper.jpg fill
|
||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
#
|
#
|
||||||
|
|
@ -221,4 +221,8 @@ bar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Start Stuff
|
||||||
|
|
||||||
|
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||||
|
|
||||||
include /etc/sway/config.d/*
|
include /etc/sway/config.d/*
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[
|
||||||
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -17,10 +18,6 @@
|
||||||
networking.hostName = "nixos"; # Define your hostname.
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# 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
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
|
@ -46,8 +43,26 @@
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
# Enable the GNOME Desktop Environment.
|
# Enable the GNOME Desktop Environment.
|
||||||
services.xserver.displayManager.gdm.enable = true;
|
services.xserver.displayManager.sddm.enable = true;
|
||||||
services.xserver.desktopManager.gnome.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
|
# Configure keymap in X11
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
|
|
@ -88,7 +103,6 @@
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
firefox
|
firefox
|
||||||
# thunderbird
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -98,37 +112,51 @@
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
bat
|
bat
|
||||||
cargo
|
bemenu
|
||||||
duf
|
cargo
|
||||||
exa
|
duf
|
||||||
fd
|
exa
|
||||||
flatpak
|
fd
|
||||||
fzf
|
flatpak
|
||||||
jq
|
fzf
|
||||||
gcc
|
gcc
|
||||||
git
|
git
|
||||||
gnome.gnome-software
|
glib
|
||||||
gnome.gnome-tweaks
|
gnome.gnome-software
|
||||||
gnomeExtensions.hibernate-status-button
|
gnome.gnome-tweaks
|
||||||
hyprland
|
gnomeExtensions.hibernate-status-button
|
||||||
hyprpaper
|
grim
|
||||||
lazygit
|
grim #screenshots
|
||||||
luajitPackages.luarocks
|
hyprland
|
||||||
neovim
|
hyprpaper
|
||||||
nerdfonts
|
jq
|
||||||
nodejs
|
lazygit
|
||||||
ripgrep
|
luajitPackages.luarocks
|
||||||
rustc
|
mako
|
||||||
sd
|
mako
|
||||||
starship
|
neovim
|
||||||
tealdeer
|
nodejs
|
||||||
tmux
|
ripgrep
|
||||||
tree-sitter
|
rustc
|
||||||
wget
|
sd
|
||||||
zellij
|
slurp
|
||||||
zsh
|
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
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
|
|
@ -144,12 +172,6 @@
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
# services.openssh.enable = true;
|
# 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
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
@ -157,18 +179,29 @@
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "23.05"; # Did you read the comment?
|
system.stateVersion = "23.05"; # Did you read the comment?
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
options = "--delete-older-than 7d";
|
options = "--delete-older-than 7d";
|
||||||
};
|
};
|
||||||
system.autoUpgrade.enable = true;
|
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 ];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
18
nixos/theme.nix
Normal file
18
nixos/theme.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ stdenv, fetchFromGitHub }:
|
||||||
|
{
|
||||||
|
sddm-catppucin-theme = stdenv.mkDerivation rec {
|
||||||
|
pname = "sddm-catppucin-theme";
|
||||||
|
version = "1";
|
||||||
|
dontBuild = true;
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/sddm/themes
|
||||||
|
cp -aR $src/src/* $out/share/sddm/themes/
|
||||||
|
'';
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "sddm";
|
||||||
|
rev = "bde6932e1ae0f8fdda76eff5c81ea8d3b7d653c0";
|
||||||
|
sha256 = "1lg10dyxgz080qfcp6k3zk6374jlj067s6p5fgx5r135ivy8mrki";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue