aboutsummaryrefslogtreecommitdiff
path: root/nixos/configurations/alpha.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/configurations/alpha.nix')
-rw-r--r--nixos/configurations/alpha.nix112
1 files changed, 112 insertions, 0 deletions
diff --git a/nixos/configurations/alpha.nix b/nixos/configurations/alpha.nix
new file mode 100644
index 0000000..27e8ceb
--- /dev/null
+++ b/nixos/configurations/alpha.nix
@@ -0,0 +1,112 @@
+{ config, pkgs, lib, ...}:
+
+{
+ imports = [];
+
+ security.chromiumSuidSandbox.enable = true;
+
+ boot.kernelPackages = pkgs.linuxPackages_xanmod;
+ # GRUB bootloader
+ boot.loader.efi.canTouchEfiVariables = true;
+ boot.loader.grub = {
+ enable = true;
+ version = 2;
+
+ efiSupport = true;
+ configurationLimit = 10;
+ device = "nodev";
+ useOSProber = true;
+ # device = "/dev/disk/by-uuid/7905-2E41";
+ extraEntries = ''
+ menuentry "Reboot" {
+ reboot
+ }
+ menuentry "Shutdown" {
+ halt
+ }
+ '';
+ };
+
+ networking.networkmanager.enable = true;
+ networking.useDHCP = false;
+ networking.firewall.enable = true;
+
+ i18n.defaultLocale = "en_US.UTF-8";
+ i18n.inputMethod.enabled = "kime";
+
+ console.font = "Lat2-Terminus16";
+ console.keyMap = "us";
+
+ time.timeZone = "Asia/Seoul";
+
+ environment.systemPackages = with pkgs; [ ];
+
+ services.openssh.enable = true;
+
+ sound.enable = true;
+ hardware.pulseaudio = {
+ enable = true;
+ package = pkgs.pulseaudioFull;
+ };
+
+ hardware.bluetooth.enable = true;
+
+ services.greetd = {
+ enable = true;
+
+ settings.default_session.command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
+ };
+
+ programs = {
+ sway = {
+ enable = true;
+ wrapperFeatures.gtk = true;
+
+ extraPackages = with pkgs; [
+ autotiling
+ alacritty
+ swaylock
+ swayidle
+ swaybg
+ wayland-utils
+ wl-clipboard
+ grim
+ slurp
+ sway-contrib.grimshot
+ waybar
+ bemenu
+ qt5.qtwayland
+ xdg_utils
+ ];
+ };
+
+ zsh.enable = true;
+ zsh.enableCompletion = false;
+ };
+
+ hardware.opengl.enable = true;
+ hardware.opengl.driSupport32Bit = true;
+ hardware.opengl.extraPackages = with pkgs; [ vaapiVdpau libvdpau-va-gl ];
+
+ virtualisation.libvirtd.enable = true;
+
+ users.users = {
+ boopy = {
+ isNormalUser = true;
+ shell = pkgs.zsh;
+
+ extraGroups = [
+ "wheel"
+ "audio"
+ "networkmanager"
+ "libvirtd"
+ ];
+ };
+ };
+
+ # This value determines the NixOS release with which your system is to be
+ # compatible, in order to avoid breaking some software such as database
+ # servers. You should change this only after NixOS release notes say you
+ # should.
+ system.stateVersion = "22.05"; # Did you read the comment?
+}