Compare commits

...

4 Commits

Author SHA1 Message Date
Sravan Balaji
e8f01d585c First attempt at adding polybar-dwm-module
- Update flake.lock
- Switch from awesome back to dwm
- Attempt to modify existing polybar nix package
  to point to mihirlad55's polybar-dwm-module
2024-03-30 16:06:05 -04:00
Sravan Balaji
f04575f44b Add btrbk for backups 2024-03-30 08:26:27 -04:00
Sravan Balaji
cb9150aa12 Add AwesomeWM 2024-03-30 08:22:34 -04:00
Sravan Balaji
28e2523bad Modify disko BTRFS Subvolume Layout
- Decrease swapfile size to 10G (don't really need hibernation)
- Remove extra BTRFS mount options like disarcd=async, space_cache=v2,
  and ssd
- Add a games subvolume
- Add a subvolume for /var/log
2024-03-30 08:15:50 -04:00
6 changed files with 68 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
let let
installDisk = "sda"; installDisk = "sda";
bootPartitionSize = "512M"; bootPartitionSize = "512M";
swapfileSize = "34G"; swapfileSize = "10G";
in { in {
disko.devices = { disko.devices = {
disk = { disk = {
@@ -37,26 +37,34 @@ in {
type = "btrfs"; type = "btrfs";
extraArgs = [ "-f" ]; extraArgs = [ "-f" ];
subvolumes = { subvolumes = {
"@" = { "@root" = {
mountpoint = "/"; mountpoint = "/";
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ]; mountOptions = [ "compress=zstd" "noatime" ];
}; };
"@home" = { "@home" = {
mountpoint = "/home"; mountpoint = "/home";
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ]; mountOptions = [ "compress=zstd" "noatime" ];
}; };
"@.snapshots" = { "@games" = {
mountpoint = "/.snapshots"; mountpoint = "/games";
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ]; mountOptions = [ "compress=zstd" "noatime" ];
}; };
"@nix" = { "@nix" = {
mountpoint = "/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" = { "@swap" = {
mountpoint = "/swap"; mountpoint = "/swap";
swap.swapfile.size = swapfileSize; swap.swapfile.size = swapfileSize;
}; };
"@.snapshots" = {
mountpoint = "/.snapshots";
mountOptions = [ "compress=zstd" "noatime" ];
};
}; };
}; };
}; };

12
flake.lock generated
View File

@@ -313,11 +313,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1711460390, "lastModified": 1711668574,
"narHash": "sha256-akSgjDZL6pVHEfSE6sz1DNSXuYX6hq+P/1Z5IoYWs7E=", "narHash": "sha256-u1dfs0ASQIEr1icTVrsKwg2xToIpn7ZXxW3RHfHxshg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "44733514b72e732bd49f5511bd0203dea9b9a434", "rev": "219951b495fc2eac67b1456824cc1ec1fd2ee659",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -329,11 +329,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1711523803, "lastModified": 1711703276,
"narHash": "sha256-UKcYiHWHQynzj6CN/vTcix4yd1eCu1uFdsuarupdCQQ=", "narHash": "sha256-iMUFArF0WCatKK6RzfUJknjem0H9m4KgorO/p3Dopkk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2726f127c15a4cc9810843b96cad73c7eb39e443", "rev": "d8fe5e6c92d0d190646fb9f1056741a229980089",
"type": "github" "type": "github"
}, },
"original": { "original": {

19
system/gui/awesome.nix Normal file
View 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";
}

View File

@@ -24,4 +24,23 @@
}; };
services.xserver.displayManager.defaultSession = "none+dwm"; services.xserver.displayManager.defaultSession = "none+dwm";
environment.systemPackages = with pkgs; [
(polybar.overrideAttrs (finalAttrs: previousAttrs: {
pname = previousAttrs.pname + "-dwm-module";
version = "3.5.2";
src = fetchFromGithub {
owner = "mihirlad55";
repo = "polybar-dwm-module";
rev = "0c3e139ac54e081c06ef60548927e679d80d4297";
hash = "sha256-DGij8dNp5nnQ05vA+6LcAdPoXAN0eYJHBimXC2Gt5JQ=";
fetchSubmodules = true;
};
buildInputs = previousAttrs.buildInputs ++ [
pkgs.jsoncpp
];
}))
];
} }

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
btrbk
];
}

View File

@@ -6,5 +6,6 @@
./gnome-keyring.nix ./gnome-keyring.nix
./miscellaneous.nix ./miscellaneous.nix
./gaming.nix ./gaming.nix
./backups.nix
]; ];
} }