feat: use services instead of packages and fix gdm bug no1

This commit is contained in:
matt1432 2023-06-19 20:49:16 -04:00
parent 0e125b262f
commit 67f1a68090
3 changed files with 53 additions and 26 deletions

View file

@ -1,8 +1,7 @@
what is currently not working:
- gdm doesn't let me use other tty
- gdm thinks i tried to login when pressing on the user
what i want to do:
- split up configs
- split up configs well
- learn flakes
- give more stuff over to home-manager

View file

@ -32,6 +32,7 @@
]) ++
(with python311Packages; [
python
pyclip
]) ++
@ -81,19 +82,12 @@
wget
firefox
tree
mlocate
mosh
rsync
tmux
git
git-lfs
killall
htop
fzf
jq
ripgrep
jq # enable using home-manager?
ripgrep-all
hyprpaper
python3
rofi-wayland
networkmanagerapplet
nextcloud-client

View file

@ -17,10 +17,55 @@
displayManager = {
gdm.enable = true;
gdm.wayland = true;
sessionPackages = [ pkgs.hyprland ];
sessionPackages = [ pkgs.hyprland pkgs.gnome.gnome-session.sessions ];
};
};
services.locate = {
enable = true;
interval = "hourly";
prunePaths = [
"/tmp"
"/var/tmp"
"/var/cache"
"/var/lock"
"/var/run"
"/var/spool"
"/nix/var/log/nix"
"/proc"
];
};
programs.tmux = {
enable = true;
keyMode = "vi";
terminal = "screen-256color";
newSession = true;
historyLimit = 30000;
extraConfig = ''
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
set -g mouse on
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
'';
};
programs.git = { # TODO: make better config
enable = true;
lfs.enable = true;
};
programs.htop = {
enable = true;
};
programs.fzf = {
fuzzyCompletion = true;
keybindings = true;
};
networking.hostName = "wim";
networking.networkmanager.enable = true;
networking.networkmanager.wifi.backend = "iwd";
@ -69,29 +114,18 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
# List packages in root user PATH
environment.systemPackages = with pkgs; [
wl-clipboard
pulseaudio
alsa-utils
wget
tree
mlocate
rsync
tmux
git
git-lfs
killall
htop
fzf
jq
ripgrep
python3
neovim
ripgrep-all
neovim # TODO: use nix
imagemagick
usbutils
catppuccin-plymouth
evtest
];