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) - do something with dotfiles installation from [ivabus/dotfiles](https://github.com/ivabus/dotfiles)
- install nixos on more machines - install nixos on more machines
- write proper readme - write proper readme
- switch to swaywm - fix gtk theming issues

View file

@ -14,6 +14,10 @@
wget wget
git git
curl curl
usbutils
usbmuxd
pciutils
coreutils-full
]; ];
networking.networkmanager.enable = true; networking.networkmanager.enable = true;

View file

@ -4,12 +4,48 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
firefox firefox
alacritty 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; xdg.portal = {
services.xserver.displayManager.sddm.enable = true; enable = true;
services.xserver.desktopManager.plasma5.enable = true; wlr.enable = true;
};
services.pipewire = { services.pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;

View file

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

View file

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

View file

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

View file

@ -27,4 +27,10 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 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";
} }