Fix commands
parent
570ecc674e
commit
429cdbe18f
|
@ -46,7 +46,12 @@
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
enableDefaultFonts = true;
|
enableDefaultFonts = true;
|
||||||
fonts = with pkgs; [ source-code-pro fira-code fira-code-symbols font-awesome_5 ];
|
fonts = with pkgs; [
|
||||||
|
source-code-pro
|
||||||
|
fira-code
|
||||||
|
fira-code-symbols
|
||||||
|
font-awesome_5
|
||||||
|
];
|
||||||
fontconfig = {
|
fontconfig = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultFonts = { monospace = [ "Fira Code" ]; };
|
defaultFonts = { monospace = [ "Fira Code" ]; };
|
||||||
|
@ -84,6 +89,7 @@
|
||||||
programs = {
|
programs = {
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
seahorse.enable = true;
|
seahorse.enable = true;
|
||||||
|
light.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
|
@ -98,6 +104,14 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
layout = "us";
|
layout = "us";
|
||||||
|
|
||||||
|
config = ''
|
||||||
|
Section "Device"
|
||||||
|
Identifier "Card0"
|
||||||
|
Driver "intel"
|
||||||
|
Option "Backlight" "/sys/class/backlight/intel_backlight"
|
||||||
|
EndSection
|
||||||
|
'';
|
||||||
|
|
||||||
# Enable touchpad support.
|
# Enable touchpad support.
|
||||||
libinput = {
|
libinput = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -128,7 +142,9 @@
|
||||||
|
|
||||||
# Enable sound.
|
# Enable sound.
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
hardware.pulseaudio.enable = true;
|
|
||||||
|
# Hardware switches
|
||||||
|
hardware = { pulseaudio.enable = true; };
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.mat = {
|
users.users.mat = {
|
||||||
|
@ -138,6 +154,7 @@
|
||||||
"wheel" # Enable ‘sudo’ for the user.
|
"wheel" # Enable ‘sudo’ for the user.
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"audio"
|
"audio"
|
||||||
|
"video"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
home-manager.users.mat = import ./home.nix;
|
home-manager.users.mat = import ./home.nix;
|
||||||
|
|
20
home.nix
20
home.nix
|
@ -4,6 +4,7 @@ let
|
||||||
name = "Matthew Ess";
|
name = "Matthew Ess";
|
||||||
email = "daringseal@gmail.com";
|
email = "daringseal@gmail.com";
|
||||||
workEmail = "mess@yelp.com";
|
workEmail = "mess@yelp.com";
|
||||||
|
lockCmd = "i3lock -i ~/.background-image";
|
||||||
|
|
||||||
in {
|
in {
|
||||||
home = {
|
home = {
|
||||||
|
@ -30,8 +31,7 @@ in {
|
||||||
clipmenu
|
clipmenu
|
||||||
clipnotify
|
clipnotify
|
||||||
dmenu
|
dmenu
|
||||||
i3lock-fancy
|
i3lock
|
||||||
xorg.xbacklight
|
|
||||||
];
|
];
|
||||||
file = {
|
file = {
|
||||||
".background-image".source = ./assets/background-image;
|
".background-image".source = ./assets/background-image;
|
||||||
|
@ -84,7 +84,7 @@ in {
|
||||||
volume master {
|
volume master {
|
||||||
format = " %volume"
|
format = " %volume"
|
||||||
format_muted = " (%volume)"
|
format_muted = " (%volume)"
|
||||||
device = "pulse:1"
|
device = "pulse:0"
|
||||||
mixer = "Master"
|
mixer = "Master"
|
||||||
mixer_idx = 0
|
mixer_idx = 0
|
||||||
}
|
}
|
||||||
|
@ -231,7 +231,7 @@ in {
|
||||||
};
|
};
|
||||||
screen-locker = {
|
screen-locker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lockCmd = "i3lock-fancy";
|
lockCmd = "${lockCmd}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xsession = {
|
xsession = {
|
||||||
|
@ -250,7 +250,7 @@ in {
|
||||||
keybindings = lib.mkOptionDefault {
|
keybindings = lib.mkOptionDefault {
|
||||||
"${modifier}+c" = "exec CM_ONESHOT=1 clipmenud";
|
"${modifier}+c" = "exec CM_ONESHOT=1 clipmenud";
|
||||||
"${modifier}+v" = "exec clipmenu";
|
"${modifier}+v" = "exec clipmenu";
|
||||||
"${modifier}+Escape" = "exec i3lock-fancy";
|
"${modifier}+Escape" = "exec ${lockCmd}";
|
||||||
"${modifier}+0" = "workspace number 0";
|
"${modifier}+0" = "workspace number 0";
|
||||||
"${modifier}+1" = "workspace number 1";
|
"${modifier}+1" = "workspace number 1";
|
||||||
"${modifier}+2" = "workspace number 2";
|
"${modifier}+2" = "workspace number 2";
|
||||||
|
@ -261,10 +261,12 @@ in {
|
||||||
"${modifier}+7" = "workspace number 7";
|
"${modifier}+7" = "workspace number 7";
|
||||||
"${modifier}+8" = "workspace number 8";
|
"${modifier}+8" = "workspace number 8";
|
||||||
"${modifier}+9" = "workspace number 9";
|
"${modifier}+9" = "workspace number 9";
|
||||||
"XF86AudioRaiseVolume" = "exec --no-startup-id amixer sset Master 5%+";
|
"XF86AudioRaiseVolume" =
|
||||||
"XF86AudioLowerVolume" = "exec --no-startup-id amixer sset Master 5%-";
|
"exec --no-startup-id amixer sset Master 5%+";
|
||||||
"XF86MonBrightnessUp" = "exec xbacklight -inc 20";
|
"XF86AudioLowerVolume" =
|
||||||
"XF86MonBrightnessDown" = "exec xbacklight -dec 20";
|
"exec --no-startup-id amixer sset Master 5%-";
|
||||||
|
"XF86MonBrightnessUp" = "exec light -A 20";
|
||||||
|
"XF86MonBrightnessDown" = "exec light -U 20";
|
||||||
};
|
};
|
||||||
workspaceLayout = "tabbed";
|
workspaceLayout = "tabbed";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue