Compare commits
2 Commits
57ae9837a8
...
cb9150aa12
Author | SHA1 | Date | |
---|---|---|---|
|
cb9150aa12 | ||
|
28e2523bad |
@@ -1,7 +1,7 @@
|
||||
let
|
||||
installDisk = "sda";
|
||||
bootPartitionSize = "512M";
|
||||
swapfileSize = "34G";
|
||||
swapfileSize = "10G";
|
||||
in {
|
||||
disko.devices = {
|
||||
disk = {
|
||||
@@ -37,26 +37,34 @@ in {
|
||||
type = "btrfs";
|
||||
extraArgs = [ "-f" ];
|
||||
subvolumes = {
|
||||
"@" = {
|
||||
"@root" = {
|
||||
mountpoint = "/";
|
||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
};
|
||||
"@home" = {
|
||||
mountpoint = "/home";
|
||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
};
|
||||
"@.snapshots" = {
|
||||
mountpoint = "/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
||||
"@games" = {
|
||||
mountpoint = "/games";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
};
|
||||
"@nix" = {
|
||||
mountpoint = "/nix";
|
||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
};
|
||||
"@log" = {
|
||||
mountpoint = "/var/log";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
};
|
||||
"@swap" = {
|
||||
mountpoint = "/swap";
|
||||
swap.swapfile.size = swapfileSize;
|
||||
};
|
||||
"@.snapshots" = {
|
||||
mountpoint = "/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@@ -26,7 +26,7 @@
|
||||
locale = "en_US.UTF-8"; # Locale
|
||||
diskoConfig = "luks-btrfs-subvolumes"; # Select the disko config that was used to partition drive
|
||||
hwConfig = "oryp7"; # Select the hardware config from hardware directory
|
||||
desktop = "dwm"; # Selected window manager or desktop environment
|
||||
desktop = "awesome"; # Selected window manager or desktop environment
|
||||
desktopType = "x11"; # x11 or wayland
|
||||
};
|
||||
|
||||
|
19
system/gui/awesome.nix
Normal file
19
system/gui/awesome.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ config, lib, pkgs, userSettings, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./default.nix
|
||||
./lightdm.nix
|
||||
./x11.nix
|
||||
];
|
||||
|
||||
services.xserver.windowManager.awesome = {
|
||||
enable = true;
|
||||
luaModules = with pkgs.luaPackages; [
|
||||
luarocks
|
||||
luadbi-mysql
|
||||
];
|
||||
};
|
||||
|
||||
services.xserver.displayManager.defaultSession = "none+awesome";
|
||||
}
|
Reference in New Issue
Block a user