12 31 23
This commit is contained in:
parent
94df20b14c
commit
ac318199ea
@ -1,4 +1,4 @@
|
||||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.loader = {
|
||||
@ -9,9 +9,11 @@
|
||||
editor = false;
|
||||
configurationLimit = 5;
|
||||
extraInstallCommands = ''
|
||||
sed -i 's/^version Generation \([0-9]\+\).*$/version Generation \1/' /boot/loader/entries/nixos-generation-*
|
||||
sed -i 's/^default .*$/default 00-arch.conf/' /boot/loader/loader.conf
|
||||
${pkgs.gnused}/bin/sed -i 's/^version Generation \([0-9]\+\).*$/version Generation \1/' /boot/loader/entries/nixos-generation-*
|
||||
${pkgs.gnused}/bin/sed -i 's/^default .*$/default 00-arch.conf/' /boot/loader/loader.conf
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
boot.kernelParams = [ "quiet" "splash" ];
|
||||
}
|
||||
|
@ -17,6 +17,9 @@
|
||||
./xserver.nix
|
||||
./printing.nix
|
||||
./sound.nix
|
||||
./power.nix
|
||||
./login-manager.nix
|
||||
./desktop.nix
|
||||
./packages.nix
|
||||
|
||||
# User configuration
|
||||
|
19
desktop.nix
Normal file
19
desktop.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
sway = {
|
||||
enable = true;
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
swaylock
|
||||
swayidle
|
||||
dmenu
|
||||
wmenu
|
||||
i3status
|
||||
brightnessctl
|
||||
wob
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
13
login-manager.nix
Normal file
13
login-manager.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
28
packages.nix
28
packages.nix
@ -4,38 +4,20 @@
|
||||
programs = {
|
||||
zsh.enable = true;
|
||||
vim.defaultEditor = true;
|
||||
|
||||
sway = {
|
||||
enable = true;
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
swaylock
|
||||
swayidle
|
||||
dmenu
|
||||
wmenu
|
||||
i3status
|
||||
brightnessctl
|
||||
wob
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
environment.systemPackages = (with pkgs; [
|
||||
vim
|
||||
neovim
|
||||
git
|
||||
wget
|
||||
kitty
|
||||
ranger
|
||||
lf
|
||||
firefox
|
||||
gnome.gnome-tweaks
|
||||
];
|
||||
|
||||
environment.gnome.excludePackages = with pkgs; [
|
||||
gnome-tour
|
||||
gnome-console
|
||||
epiphany
|
||||
gnome.geary
|
||||
];
|
||||
greetd.tuigreet
|
||||
]);
|
||||
|
||||
environment.shells = with pkgs; [ bash zsh ];
|
||||
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
{
|
||||
services.printing = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
};
|
||||
}
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
{
|
||||
services.xserver = {
|
||||
# Enable X11. GDM won't launch without it
|
||||
enable = true;
|
||||
# Disable X11. Don't need it with tuigreet and sway
|
||||
enable = false;
|
||||
|
||||
layout = "us";
|
||||
libinput = {
|
||||
@ -12,10 +12,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
# Enable GNOME and its display manager, GDM
|
||||
desktopManager.gnome.enable = true;
|
||||
displayManager.gdm.enable = true;
|
||||
|
||||
# I don't need xterm
|
||||
excludePackages = [ pkgs.xterm ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user