From 9e6e8ca7427c352478245ae6c6ca959aaabe68f7 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 13 Jul 2023 14:23:07 +0530 Subject: dump more stuff --- flake.lock | 8 ++++---- flake.nix | 2 +- home.nix | 1 + hosts/myrtle/configuration.nix | 27 +++++++++++++++++++++------ services/default.nix | 2 +- theme/default.nix | 2 +- x/2bwm.nix | 4 ++-- 7 files changed, 31 insertions(+), 15 deletions(-) diff --git a/flake.lock b/flake.lock index 3e2da29..95b0fe7 100644 --- a/flake.lock +++ b/flake.lock @@ -79,16 +79,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1681753173, - "narHash": "sha256-MrGmzZWLUqh2VstoikKLFFIELXm/lsf/G9U9zR96VD4=", + "lastModified": 1688868408, + "narHash": "sha256-RR9N5XTAxSBhK8MCvLq9uxfdkd7etC//seVXldy0k48=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "0a4206a51b386e5cda731e8ac78d76ad924c7125", + "rev": "510d721ce097150ae3b80f84b04b13b039186571", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixpkgs-unstable", + "ref": "nixos-23.05", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 3ee2f7c..d1f39f6 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = "nerdypepper's nixos config"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; nixos-hardware.url = "github:nixos/nixos-hardware"; diff --git a/home.nix b/home.nix index f183947..7a51f63 100644 --- a/home.nix +++ b/home.nix @@ -121,6 +121,7 @@ initExtra = '' ${pkgs.hsetroot}/bin/hsetroot -solid "${theme.base00}" xrdb -load $HOME/.Xresources + ${pkgs.picom}/bin/picom & xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto ''; diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index be9852e..27b16ce 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix @@ -14,6 +14,7 @@ boot.kernelParams = [ # "i915.modeset=0" # "intel_pstate=disable" + "ibt=off" ]; networking = { @@ -104,10 +105,6 @@ hardware = { opengl.driSupport = true; - # pulseaudio = { - # enable = true; - # package = pkgs.pulseaudioFull; - # }; bluetooth = { enable = true; powerOnBoot = true; @@ -126,7 +123,7 @@ }; sensor.iio.enable = true; # enable screen autorotate asus.battery = { - chargeUpto = 80; + chargeUpto = 100; }; }; @@ -187,16 +184,34 @@ pulse.enable = true; }; + signald = { + enable = true; + group = "signald"; + }; + + bitlbee = { + enable = true; + libpurple_plugins = [ + pkgs.purple-signald + ]; + portNumber = 8888; + }; }; systemd.sleep.extraConfig = '' - HibernateMode=shutdown + HibernateMode=suspend ''; virtualisation.docker.enable = true; virtualisation.virtualbox.host.enable = true; users.extraGroups.vboxusers.members = [ "np" ]; + security.sudo.extraRules = [ + { + users = [ "np" ]; + commands = map (cmd: "${pkgs.systemd}/bin/systemctl ${cmd}") [ "poweroff" "suspend" "reboot" ]; + } + ]; users.users.np = { isNormalUser = true; diff --git a/services/default.nix b/services/default.nix index 2bce0e4..b2a39bb 100644 --- a/services/default.nix +++ b/services/default.nix @@ -8,7 +8,7 @@ imports = [ ./dunst.nix - # ./picom.nix + ./picom.nix ./redshift.nix ./sxhkd.nix # ./mbsync.nix diff --git a/theme/default.nix b/theme/default.nix index b3af086..7c67057 100644 --- a/theme/default.nix +++ b/theme/default.nix @@ -3,4 +3,4 @@ let night = import ./night.nix; gruvbox = import ./gruvbox.nix; in -night +day diff --git a/x/2bwm.nix b/x/2bwm.nix index af66b7a..4000850 100644 --- a/x/2bwm.nix +++ b/x/2bwm.nix @@ -7,8 +7,8 @@ with theme; { xresources.properties = { - "twobwm.border_width" = 12; - "twobwm.outer_border" = 10; + "twobwm.border_width" = 22; + "twobwm.outer_border" = 20; "twobwm.focus_color" = base01; "twobwm.unfocus_color" = base01; "twobwm.fixed_color" = base0D; -- cgit v1.2.3