feat: use services instead of packages and fix gdm bug no1
This commit is contained in:
parent
0e125b262f
commit
67f1a68090
3 changed files with 53 additions and 26 deletions
|
@ -1,8 +1,7 @@
|
||||||
what is currently not working:
|
what is currently not working:
|
||||||
- gdm doesn't let me use other tty
|
|
||||||
- gdm thinks i tried to login when pressing on the user
|
- gdm thinks i tried to login when pressing on the user
|
||||||
|
|
||||||
what i want to do:
|
what i want to do:
|
||||||
- split up configs
|
- split up configs well
|
||||||
- learn flakes
|
- learn flakes
|
||||||
- give more stuff over to home-manager
|
- give more stuff over to home-manager
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
|
|
||||||
]) ++
|
]) ++
|
||||||
(with python311Packages; [
|
(with python311Packages; [
|
||||||
|
python
|
||||||
pyclip
|
pyclip
|
||||||
|
|
||||||
]) ++
|
]) ++
|
||||||
|
@ -81,19 +82,12 @@
|
||||||
wget
|
wget
|
||||||
firefox
|
firefox
|
||||||
tree
|
tree
|
||||||
mlocate
|
|
||||||
mosh
|
mosh
|
||||||
rsync
|
rsync
|
||||||
tmux
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
killall
|
killall
|
||||||
htop
|
jq # enable using home-manager?
|
||||||
fzf
|
ripgrep-all
|
||||||
jq
|
|
||||||
ripgrep
|
|
||||||
hyprpaper
|
hyprpaper
|
||||||
python3
|
|
||||||
rofi-wayland
|
rofi-wayland
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
|
|
|
@ -17,10 +17,55 @@
|
||||||
displayManager = {
|
displayManager = {
|
||||||
gdm.enable = true;
|
gdm.enable = true;
|
||||||
gdm.wayland = 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.hostName = "wim";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
networking.networkmanager.wifi.backend = "iwd";
|
networking.networkmanager.wifi.backend = "iwd";
|
||||||
|
@ -69,29 +114,18 @@
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages in root user PATH
|
||||||
# $ nix search wget
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
pulseaudio
|
|
||||||
alsa-utils
|
alsa-utils
|
||||||
wget
|
wget
|
||||||
tree
|
tree
|
||||||
mlocate
|
|
||||||
rsync
|
rsync
|
||||||
tmux
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
killall
|
killall
|
||||||
htop
|
ripgrep-all
|
||||||
fzf
|
neovim # TODO: use nix
|
||||||
jq
|
|
||||||
ripgrep
|
|
||||||
python3
|
|
||||||
neovim
|
|
||||||
imagemagick
|
imagemagick
|
||||||
usbutils
|
usbutils
|
||||||
catppuccin-plymouth
|
|
||||||
evtest
|
evtest
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue