Compare commits
No commits in common. "97e1721ce179e542049f6d84e655215ff632f29f" and "c4516d8152f7f3ae70683e83af02fa9b691d1d3d" have entirely different histories.
97e1721ce1
...
c4516d8152
@ -43,17 +43,10 @@
|
|||||||
# Add stuff for your user as you see fit:
|
# Add stuff for your user as you see fit:
|
||||||
programs.neovim.enable = true;
|
programs.neovim.enable = true;
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
steam
|
||||||
librewolf
|
librewolf
|
||||||
kitty
|
|
||||||
teams
|
|
||||||
p3x-onenote
|
|
||||||
spotify
|
|
||||||
zathura
|
|
||||||
playerctl
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.playerctld.enable = true;
|
|
||||||
|
|
||||||
# Enable home-manager and git
|
# Enable home-manager and git
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
programs.git.enable = true;
|
programs.git.enable = true;
|
||||||
|
@ -1,29 +1,45 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
xsession.windowManager.i3 = {
|
mod = "Mod1";
|
||||||
|
in {
|
||||||
|
xsession = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
windowManager.i3 = {
|
||||||
bars = [
|
enable = true;
|
||||||
{
|
config = {
|
||||||
position = "top";
|
modifier = mod;
|
||||||
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-top.toml";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.i3status-rust = {
|
# fonts = ["DejaVu Sans Mono, FontAwesome 6"];
|
||||||
enable = true;
|
|
||||||
bars = {
|
# keybindings = lib.mkOptionDefault {
|
||||||
top = {
|
# "${mod}+p" = "exec ${pkgs.dmenu}/bin/dmenu_run";
|
||||||
blocks = [
|
# "${mod}+x" = "exec sh -c '${pkgs.maim}/bin/maim -s | xclip -selection clipboard -t image/png'";
|
||||||
{
|
# "${mod}+Shift+x" = "exec sh -c '${pkgs.i3lock}/bin/i3lock -c 222222 & sleep 5 && xset dpms force of'";
|
||||||
block = "time";
|
|
||||||
interval = 60;
|
# # Focus
|
||||||
format = "%a %d/%m %k:%M %p";
|
# "${mod}+j" = "focus left";
|
||||||
}
|
# "${mod}+k" = "focus down";
|
||||||
];
|
# "${mod}+l" = "focus up";
|
||||||
|
# "${mod}+semicolon" = "focus right";
|
||||||
|
|
||||||
|
# # Move
|
||||||
|
# "${mod}+Shift+j" = "move left";
|
||||||
|
# "${mod}+Shift+k" = "move down";
|
||||||
|
# "${mod}+Shift+l" = "move up";
|
||||||
|
# "${mod}+Shift+semicolon" = "move right";
|
||||||
|
|
||||||
|
# # My multi monitor setup
|
||||||
|
# # "${mod}+m" = "move workspace to output DP-2";
|
||||||
|
# # "${mod}+Shift+m" = "move workspace to output DP-5";
|
||||||
|
# };
|
||||||
|
|
||||||
|
# bars = [
|
||||||
|
# {
|
||||||
|
# position = "bottom";
|
||||||
|
# statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ${./i3status-rust.toml}";
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
2
home-manager/i3status-rust.toml
Normal file
2
home-manager/i3status-rust.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
theme = "gruvgox-dark"
|
||||||
|
icons = "awesome"
|
@ -6,7 +6,7 @@
|
|||||||
# You can import other NixOS modules here
|
# You can import other NixOS modules here
|
||||||
imports = [
|
imports = [
|
||||||
# If you want to use modules from other flakes (such as nixos-hardware):
|
# If you want to use modules from other flakes (such as nixos-hardware):
|
||||||
inputs.hardware.nixosModules.common-cpu-amd
|
# inputs.hardware.nixosModules.common-cpu-amd
|
||||||
# inputs.hardware.nixosModules.common-gpu-nvidia
|
# inputs.hardware.nixosModules.common-gpu-nvidia
|
||||||
|
|
||||||
# You can also split up your configuration and import pieces of it here:
|
# You can also split up your configuration and import pieces of it here:
|
||||||
@ -101,7 +101,7 @@
|
|||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
# If you want to use JACK applications, uncomment this
|
# If you want to use JACK applications, uncomment this
|
||||||
# jack.enable = true;
|
#jack.enable = true;
|
||||||
|
|
||||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||||
# no need to redefine it in your config for now)
|
# no need to redefine it in your config for now)
|
||||||
|
24
nixos/i3.nix
24
nixos/i3.nix
@ -1,24 +1,17 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.pathsToLink = [ "/libexec" ]; # links /libexec from derivations to /run/current-system/sw
|
|
||||||
# Define the i3 window manager configuration
|
# Define the i3 window manager configuration
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
xrandrHeads = [
|
|
||||||
"HDMI-1 --auto --left-of DP-1"
|
|
||||||
"DP-1 --auto --primary"
|
|
||||||
];
|
|
||||||
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
desktopManager = {
|
desktopManager = {
|
||||||
xterm.enable = false;
|
xterm.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
displayManager.defaultSession = "none+i3";
|
displayManager = {
|
||||||
displayManager.lightdm.enable = true;
|
defaultSession = "none+i3";
|
||||||
displayManager.autoLogin.enable = true;
|
};
|
||||||
displayManager.autoLogin.user = "mans";
|
|
||||||
|
|
||||||
windowManager.i3 = {
|
windowManager.i3 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -30,17 +23,8 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# windowManager.default = "i3";
|
||||||
layout = "us";
|
layout = "us";
|
||||||
xkbVariant = "";
|
xkbVariant = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
hardware.opengl.enable = true;
|
|
||||||
|
|
||||||
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
|
||||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
||||||
|
|
||||||
# nvidia-drm.modeset=1 is required for some wayland compositors, e.g. sway
|
|
||||||
hardware.nvidia.modesetting.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user