Configuration is more flexible
Add new host must be easier
This commit is contained in:
parent
431c99a58e
commit
51fdbb4a87
16 changed files with 91 additions and 79 deletions
60
nixos/default.nix
Normal file
60
nixos/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ config, pkgs, lib, stateVersion, hostname, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
../hosts/${hostname}/hardware-configuration.nix
|
||||
./includes/hardware/bootloader.nix
|
||||
./includes/system/locales.nix
|
||||
./includes/system/flakes.nix
|
||||
./includes/system/user.nix
|
||||
./includes/system/udisks2.nix
|
||||
./includes/system/lvm.nix
|
||||
./includes/system/doas.nix
|
||||
./includes/system/neovim.nix
|
||||
./includes/desktop/swaylock.nix
|
||||
./includes/desktop/pipewire.nix
|
||||
./includes/desktop/xdg-portal.nix
|
||||
./includes/gaming/steam.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
networking.hostName = hostname;
|
||||
|
||||
console = {
|
||||
earlySetup = true;
|
||||
font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
|
||||
packages = with pkgs; [terminus_font];
|
||||
# keyMap = "us";
|
||||
useXkbConfig = true; # use xkbOptions in tty.
|
||||
};
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
zsh
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.ephase = {
|
||||
home.stateVersion = stateVersion;
|
||||
programs.home-manager.enable = true;
|
||||
imports = [
|
||||
../modules/home/desktop
|
||||
../modules/home/webcord.nix
|
||||
../modules/home/cli
|
||||
../modules/home/firefox
|
||||
../modules/home/foot.nix
|
||||
../modules/home/lutris.nix
|
||||
../modules/home/zathura.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue