Compare commits

...

4 Commits

Author SHA1 Message Date
97e1721ce1 simple config 2023-06-10 10:59:31 +02:00
b8c3bfbebf test 2 2023-06-08 15:15:47 +02:00
84da86bb17 try and fix monitors 2023-06-08 15:11:21 +02:00
f1b1d5cc0e i3 test 2023-06-06 19:25:40 +02:00
6 changed files with 54 additions and 47 deletions

View File

@ -43,10 +43,17 @@
# Add stuff for your user as you see fit:
programs.neovim.enable = true;
home.packages = with pkgs; [
steam
librewolf
kitty
teams
p3x-onenote
spotify
zathura
playerctl
];
services.playerctld.enable = true;
# Enable home-manager and git
programs.home-manager.enable = true;
programs.git.enable = true;

View File

@ -1,45 +1,29 @@
{ config, lib, pkgs, ... }:
let
mod = "Mod1";
in {
xsession = {
{
xsession.windowManager.i3 = {
enable = true;
windowManager.i3 = {
enable = true;
config = {
modifier = mod;
config = {
bars = [
{
position = "top";
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-top.toml";
}
];
};
};
# fonts = ["DejaVu Sans Mono, FontAwesome 6"];
# keybindings = lib.mkOptionDefault {
# "${mod}+p" = "exec ${pkgs.dmenu}/bin/dmenu_run";
# "${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'";
# # Focus
# "${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}";
# }
# ];
programs.i3status-rust = {
enable = true;
bars = {
top = {
blocks = [
{
block = "time";
interval = 60;
format = "%a %d/%m %k:%M %p";
}
];
};
};
};

View File

@ -1,2 +0,0 @@
theme = "gruvgox-dark"
icons = "awesome"

View File

@ -6,7 +6,7 @@
# You can import other NixOS modules here
imports = [
# 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
# You can also split up your configuration and import pieces of it here:
@ -101,7 +101,7 @@
alsa.support32Bit = true;
pulse.enable = true;
# 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,
# no need to redefine it in your config for now)

View File

@ -1,17 +1,24 @@
{ config, lib, pkgs, ... }:
{
environment.pathsToLink = [ "/libexec" ]; # links /libexec from derivations to /run/current-system/sw
# Define the i3 window manager configuration
services.xserver = {
xrandrHeads = [
"HDMI-1 --auto --left-of DP-1"
"DP-1 --auto --primary"
];
enable = true;
desktopManager = {
xterm.enable = false;
};
displayManager = {
defaultSession = "none+i3";
};
displayManager.defaultSession = "none+i3";
displayManager.lightdm.enable = true;
displayManager.autoLogin.enable = true;
displayManager.autoLogin.user = "mans";
windowManager.i3 = {
enable = true;
@ -23,8 +30,17 @@
];
};
# windowManager.default = "i3";
layout = "us";
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;
}

2
update.sh Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
sudo nixos-rebuild switch --flake .#nixos-mans