rewrite nixos config for gnome
This commit is contained in:
parent
16335582c0
commit
bc5d182e1e
3 changed files with 68 additions and 77 deletions
|
|
@ -60,7 +60,7 @@ window:
|
||||||
# Values for `decorations` (macOS only):
|
# Values for `decorations` (macOS only):
|
||||||
# - transparent: Title bar, transparent background and title bar buttons
|
# - transparent: Title bar, transparent background and title bar buttons
|
||||||
# - buttonless: Title bar, transparent background and no title bar buttons
|
# - buttonless: Title bar, transparent background and no title bar buttons
|
||||||
decorations: none
|
decorations: full
|
||||||
# Background opacity
|
# Background opacity
|
||||||
#
|
#
|
||||||
# Window opacity as a floating point number from `0.0` to `1.0`.
|
# Window opacity as a floating point number from `0.0` to `1.0`.
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,11 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[ # Include the results of the hardware scan.
|
||||||
# Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -15,8 +14,16 @@
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
# Setup keyfile
|
||||||
|
boot.initrd.secrets = {
|
||||||
|
"/crypto_keyfile.bin" = null;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable swap on luks
|
||||||
|
boot.initrd.luks.devices."luks-1575a101-9e21-4b2c-b64f-64de1ca35b89".device = "/dev/disk/by-uuid/1575a101-9e21-4b2c-b64f-64de1ca35b89";
|
||||||
|
boot.initrd.luks.devices."luks-1575a101-9e21-4b2c-b64f-64de1ca35b89".keyFile = "/crypto_keyfile.bin";
|
||||||
|
|
||||||
networking.hostName = "nixos"; # Define your hostname.
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
@ -43,32 +50,14 @@
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
# Enable the GNOME Desktop Environment.
|
# Enable the GNOME Desktop Environment.
|
||||||
services.xserver.displayManager.sddm.enable = true;
|
services.xserver.displayManager.gdm.enable = true;
|
||||||
services.xserver.displayManager.sddm.theme = "catppuccin-macchiato";
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
systemd.services.sddm.serviceConfig.TimeoutStartSec = lib.mkForce "5s";
|
|
||||||
# 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 = {
|
||||||
layout = "latam";
|
layout = "latam";
|
||||||
xkbVariant = "";
|
xkbVariant = "";
|
||||||
|
xkbOptions = "caps:escape";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
|
|
@ -102,11 +91,16 @@
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "aleidk";
|
description = "aleidk";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
packages = with pkgs; [
|
|
||||||
firefox
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Enable automatic login for the user.
|
||||||
|
services.xserver.displayManager.autoLogin.enable = true;
|
||||||
|
services.xserver.displayManager.autoLogin.user = "aleidk";
|
||||||
|
|
||||||
|
# Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
|
||||||
|
systemd.services."getty@tty1".enable = false;
|
||||||
|
systemd.services."autovt@tty1".enable = false;
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
|
@ -115,11 +109,12 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
bat
|
bat
|
||||||
bemenu
|
|
||||||
cargo
|
cargo
|
||||||
|
celluloid
|
||||||
duf
|
duf
|
||||||
exa
|
exa
|
||||||
fd
|
fd
|
||||||
|
firefox
|
||||||
flatpak
|
flatpak
|
||||||
fzf
|
fzf
|
||||||
gcc
|
gcc
|
||||||
|
|
@ -127,71 +122,43 @@
|
||||||
glib
|
glib
|
||||||
gnome.gnome-software
|
gnome.gnome-software
|
||||||
gnome.gnome-tweaks
|
gnome.gnome-tweaks
|
||||||
|
gnome.dconf-editor
|
||||||
|
gnomeExtensions.arcmenu
|
||||||
|
gnomeExtensions.caffeine
|
||||||
|
gnomeExtensions.dash-to-dock
|
||||||
|
gnomeExtensions.extensions-sync
|
||||||
|
gnomeExtensions.gesture-improvements
|
||||||
|
gnomeExtensions.go-to-last-workspace
|
||||||
gnomeExtensions.hibernate-status-button
|
gnomeExtensions.hibernate-status-button
|
||||||
grim
|
gnomeExtensions.just-perfection
|
||||||
grim #screenshots
|
imv
|
||||||
hyprland
|
|
||||||
hyprpaper
|
|
||||||
jq
|
jq
|
||||||
lazygit
|
lazygit
|
||||||
luajitPackages.luarocks
|
luajitPackages.luarocks
|
||||||
mako
|
mpv
|
||||||
mako
|
|
||||||
neovim
|
neovim
|
||||||
|
neovim
|
||||||
|
nodePackages.pnpm
|
||||||
nodejs
|
nodejs
|
||||||
|
python3
|
||||||
ripgrep
|
ripgrep
|
||||||
rustc
|
rustc
|
||||||
sd
|
sd
|
||||||
slurp
|
signal-desktop
|
||||||
slurp # screenshot
|
|
||||||
starship
|
starship
|
||||||
swayidle
|
|
||||||
swaylock-effects
|
|
||||||
swaycons
|
|
||||||
tealdeer
|
tealdeer
|
||||||
tmux
|
tmux
|
||||||
tree-sitter
|
tree-sitter
|
||||||
wget
|
wget
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
wl-clipboard
|
|
||||||
xdg-utils
|
xdg-utils
|
||||||
zellij
|
zellij
|
||||||
zsh
|
zsh
|
||||||
brightnessctl
|
|
||||||
libnotify
|
|
||||||
autotiling
|
|
||||||
wdisplays
|
|
||||||
imv
|
|
||||||
mpv
|
|
||||||
celluloid
|
|
||||||
swappy
|
|
||||||
signal-desktop
|
|
||||||
squeekboard
|
|
||||||
python3
|
|
||||||
nodePackages.pnpm
|
|
||||||
(callPackage ./theme.nix { }).sddm-catppucin-theme
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = {
|
|
||||||
# enable = true;
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
# services.openssh.enable = true;
|
|
||||||
# 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. It‘s perfectly fine and recommended to leave
|
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# 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?
|
|
||||||
|
|
||||||
|
hardware.sensor.iio.enable = true;
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
|
|
@ -216,4 +183,31 @@
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
|
# started in user sessions.
|
||||||
|
# programs.mtr.enable = true;
|
||||||
|
# programs.gnupg.agent = {
|
||||||
|
# enable = true;
|
||||||
|
# enableSSHSupport = true;
|
||||||
|
# };
|
||||||
|
|
||||||
|
# List services that you want to enable:
|
||||||
|
|
||||||
|
# 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. It‘s perfectly fine and recommended to leave
|
||||||
|
# this value at the release version of the first install of this system.
|
||||||
|
# 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?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,6 @@ setup_zsh() {
|
||||||
create "$HOME/.local/state/zsh/"
|
create "$HOME/.local/state/zsh/"
|
||||||
symlink "$DOTS/config/zsh/zshrc" "$HOME"/.zshrc
|
symlink "$DOTS/config/zsh/zshrc" "$HOME"/.zshrc
|
||||||
symlink "$DOTS/config/zsh/zprofile" "$HOME"/.zprofile
|
symlink "$DOTS/config/zsh/zprofile" "$HOME"/.zprofile
|
||||||
if [ "$SHELL" != "$(which zsh)" ]; then
|
|
||||||
chsh -s "$(which zsh)"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_zsh
|
setup_zsh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue