Compare commits
5 Commits
a3f86d5ca3
...
c4516d8152
Author | SHA1 | Date | |
---|---|---|---|
c4516d8152 | |||
40782cf44d | |||
937cf528ab | |||
2ca9862133 | |||
f3af31e7b9 |
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
# 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:
|
||||||
# ./nvim.nix
|
# ./nvim.nix
|
||||||
|
# ./i3.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@ -41,7 +42,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; [ steam ];
|
home.packages = with pkgs; [
|
||||||
|
steam
|
||||||
|
librewolf
|
||||||
|
];
|
||||||
|
|
||||||
# Enable home-manager and git
|
# Enable home-manager and git
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
@ -3,41 +3,44 @@
|
|||||||
let
|
let
|
||||||
mod = "Mod1";
|
mod = "Mod1";
|
||||||
in {
|
in {
|
||||||
xsession.windowManager.i3 = {
|
xsession = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
windowManager.i3 = {
|
||||||
modifier = mod;
|
enable = true;
|
||||||
|
config = {
|
||||||
|
modifier = mod;
|
||||||
|
|
||||||
fonts = ["DejaVu Sans Mono, FontAwesome 6"];
|
# fonts = ["DejaVu Sans Mono, FontAwesome 6"];
|
||||||
|
|
||||||
keybindings = lib.mkOptionDefault {
|
# keybindings = lib.mkOptionDefault {
|
||||||
"${mod}+p" = "exec ${pkgs.dmenu}/bin/dmenu_run";
|
# "${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}+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'";
|
# "${mod}+Shift+x" = "exec sh -c '${pkgs.i3lock}/bin/i3lock -c 222222 & sleep 5 && xset dpms force of'";
|
||||||
|
|
||||||
# Focus
|
# # Focus
|
||||||
"${mod}+j" = "focus left";
|
# "${mod}+j" = "focus left";
|
||||||
"${mod}+k" = "focus down";
|
# "${mod}+k" = "focus down";
|
||||||
"${mod}+l" = "focus up";
|
# "${mod}+l" = "focus up";
|
||||||
"${mod}+semicolon" = "focus right";
|
# "${mod}+semicolon" = "focus right";
|
||||||
|
|
||||||
# Move
|
# # Move
|
||||||
"${mod}+Shift+j" = "move left";
|
# "${mod}+Shift+j" = "move left";
|
||||||
"${mod}+Shift+k" = "move down";
|
# "${mod}+Shift+k" = "move down";
|
||||||
"${mod}+Shift+l" = "move up";
|
# "${mod}+Shift+l" = "move up";
|
||||||
"${mod}+Shift+semicolon" = "move right";
|
# "${mod}+Shift+semicolon" = "move right";
|
||||||
|
|
||||||
# My multi monitor setup
|
# # My multi monitor setup
|
||||||
"${mod}+m" = "move workspace to output DP-2";
|
# # "${mod}+m" = "move workspace to output DP-2";
|
||||||
"${mod}+Shift+m" = "move workspace to output DP-5";
|
# # "${mod}+Shift+m" = "move workspace to output DP-5";
|
||||||
|
# };
|
||||||
|
|
||||||
|
# bars = [
|
||||||
|
# {
|
||||||
|
# position = "bottom";
|
||||||
|
# statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ${./i3status-rust.toml}";
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
};
|
};
|
||||||
|
|
||||||
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,13 +6,13 @@
|
|||||||
# 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:
|
||||||
# ./users.nix
|
# ./users.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
# ./i3.nix
|
./i3.nix
|
||||||
|
|
||||||
# Import home-manager's NixOS module
|
# Import home-manager's NixOS module
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
@ -131,17 +131,19 @@
|
|||||||
# Feel free to remove if you don't need it.
|
# Feel free to remove if you don't need it.
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Forbid root login through SSH.
|
settings = {
|
||||||
permitRootLogin = "yes";
|
# Forbid root login through SSH.
|
||||||
# Use keys only. Remove if you want to SSH using password (not recommended)
|
PermitRootLogin = "yes";
|
||||||
passwordAuthentication = false;
|
# Use keys only. Remove if you want to SSH using password (not recommended)
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
users = {
|
users = {
|
||||||
# Import your home-manager configuration
|
# Import your home-manager configuration
|
||||||
mans = import ../home-manager;
|
mans = import ../home-manager/home.nix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
displayManager.session = "none";
|
|
||||||
# windowManager.default = "i3";
|
# windowManager.default = "i3";
|
||||||
layout = "us";
|
layout = "us";
|
||||||
xkbVariant = "";
|
xkbVariant = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user