Working on modularizing stuff
This commit is contained in:
parent
835faf218d
commit
8349809fec
15 changed files with 256 additions and 41 deletions
2
hosts/laptop/default.nix
Normal file
2
hosts/laptop/default.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{}:
|
||||
{}
|
36
hosts/pc/default.nix
Normal file
36
hosts/pc/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./hardware-configuration.nix ];
|
||||
|
||||
modules = {
|
||||
themes.active = "everforrest";
|
||||
|
||||
desktop = {
|
||||
plasma.enable = true;
|
||||
|
||||
terminal = {
|
||||
default = "alacritty";
|
||||
allacrity.enable = true;
|
||||
};
|
||||
|
||||
editors = {
|
||||
default = "nano";
|
||||
nano.enable = true;
|
||||
};
|
||||
|
||||
browsers = {
|
||||
default = "firefox";
|
||||
firefox.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
shell = {
|
||||
default = "zsh";
|
||||
toolset = {
|
||||
git.enable = true;
|
||||
gnupg.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../modules/system/boot.nix
|
||||
../../modules/system/networking.nix
|
||||
../../modules/system/audio.nix
|
||||
../../modules/system/zsa_voyager.nix
|
||||
|
||||
|
@ -25,33 +26,8 @@
|
|||
allowUnfree = true;
|
||||
};
|
||||
|
||||
networking.hostName = "chris-pc";
|
||||
# Pick only one of the below networking options.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
|
||||
# Enable sound.
|
||||
sound.enable = false;
|
||||
hardware.pulseaudio.enable = false;
|
||||
users.extraGroups.audio.members = [ "chris" ];
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.chris = {
|
||||
isNormalUser = true;
|
||||
|
@ -76,7 +52,6 @@
|
|||
# chromium
|
||||
thunderbird
|
||||
zoxide
|
||||
bottles
|
||||
atuin
|
||||
btop
|
||||
dust
|
||||
|
@ -86,9 +61,6 @@
|
|||
nextcloud-client
|
||||
];
|
||||
|
||||
# session variable for chrome/electron wayland
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
systemd.services.numLockOnTty = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
2
hosts/server/default.nix
Normal file
2
hosts/server/default.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{}:
|
||||
{}
|
Loading…
Add table
Add a link
Reference in a new issue