Update configs

This commit is contained in:
Ivan Bushchik 2023-07-16 19:00:44 +03:00
parent e6f48c1e30
commit 4d57da3cf7
No known key found for this signature in database
GPG key ID: 9F6DDABE11A2674D
7 changed files with 60 additions and 16 deletions

View file

@ -5,4 +5,4 @@
- do something with dotfiles installation from [ivabus/dotfiles](https://github.com/ivabus/dotfiles)
- install nixos on more machines
- write proper readme
- switch to swaywm
- fix gtk theming issues

View file

@ -8,12 +8,16 @@
experimental-features = nix-command flakes
'';
};
environment.systemPackages = with pkgs; [
neovim
wget
git
curl
usbutils
usbmuxd
pciutils
coreutils-full
];
networking.networkmanager.enable = true;

View file

@ -4,12 +4,48 @@
environment.systemPackages = with pkgs; [
firefox
alacritty
pavucontrol
mpv
glib
ffmpeg
cinnamon.mint-y-icons
];
services.fwupd.enable = true;
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
user = "greeter";
};
};
};
programs.sway = {
enable = true;
extraPackages = with pkgs; [
waybar
grim
slurp
wf-recorder
sway-launcher-desktop
swaybg
swayidle
swaylock
poweralertd
kanshi
catppuccin-cursors
libsForQt5.qt5ct
mako
pulseaudio
brightnessctl
];
wrapperFeatures.gtk = true;
};
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
xdg.portal = {
enable = true;
wlr.enable = true;
};
services.pipewire = {
enable = true;
alsa.enable = true;
@ -17,7 +53,7 @@
};
services.dbus.enable = true;
fonts.fonts = with pkgs; [
noto-fonts
noto-fonts-cjk

View file

@ -1,5 +1,11 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
powertop
];
services.tlp.enable = true;
services.upower.enable = true;
networking.wireless.iwd.enable = true;
}

View file

@ -9,6 +9,7 @@
cargo
rustc
neofetch
gitFull
];
shell = pkgs.zsh;
};
@ -22,7 +23,5 @@
programs.git = {
enable = true;
userName = "Ivan Bushchik";
userEmail = "ivabus@ivabus.dev";
};
}

View file

@ -2,13 +2,6 @@
{ config, pkgs, ... }:
{
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

View file

@ -27,4 +27,10 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
services.tlp.settings = {
START_CHARGE_THRESH_BAT0 = 40;
STOP_CHARGE_THRESH_BAT0 = 80;
};
powerManagement.enable = true;
powerManagement.cpuFreqGovernor = "powersave";
}