about summary refs log tree commit diff
path: root/nixos/configurations/alpha.nix
blob: 27e8cebc241c4dc8e3000b4166d53bbd467931b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
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?
}