MODULARIZE
This commit is contained in:
parent
7703ac4a6f
commit
70c9294388
3 changed files with 23 additions and 29 deletions
|
|
@ -66,6 +66,7 @@
|
|||
];
|
||||
};
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
|
|
|||
20
common/laptop-things.nix
Normal file
20
common/laptop-things.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.logind = {
|
||||
extraConfig = "HandlePowerKey=suspend";
|
||||
lidSwitch = "suspend";
|
||||
};
|
||||
|
||||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
layout = "us,us";
|
||||
xkbVariant = "dvorak,";
|
||||
xkbOptions = "grp:win_space_toggle";
|
||||
};
|
||||
|
||||
# Configure console keymap
|
||||
console.keyMap = "dvorak";
|
||||
}
|
||||
|
|
@ -8,6 +8,8 @@ in
|
|||
[
|
||||
# ./home-git-repos.nix
|
||||
../../common/configuration.nix
|
||||
../../common/laptop-things.nix
|
||||
../../common/exwm.nix
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
|
@ -21,15 +23,6 @@ in
|
|||
services.xserver.displayManager.sddm.enable = true;
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
|
||||
# home-manager.users.benson = {
|
||||
# services.network-manager-applet.enable = true;
|
||||
# };
|
||||
|
||||
# VNC Server
|
||||
services.xrdp.enable = true;
|
||||
services.xrdp.defaultWindowManager = "startplasma-x11";
|
||||
services.xrdp.openFirewall = true;
|
||||
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "benson";
|
||||
|
|
@ -37,23 +30,6 @@ in
|
|||
dataDir = "/home/benson/.config/syncthing/db"; # Folder for Syncthing's database
|
||||
};
|
||||
|
||||
services.logind = {
|
||||
extraConfig = "HandlePowerKey=suspend";
|
||||
lidSwitch = "suspend";
|
||||
};
|
||||
|
||||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
layout = "us,us";
|
||||
xkbVariant = "dvorak,";
|
||||
xkbOptions = "grp:win_space_toggle";
|
||||
};
|
||||
|
||||
# Configure console keymap
|
||||
console.keyMap = "dvorak";
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.benson = {
|
||||
isNormalUser = true;
|
||||
|
|
@ -66,11 +42,8 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [ roboto-mono ];
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
services.tailscale.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue