Compare commits

..

4 Commits

Author SHA1 Message Date
Nathan McCarty 88b0d8bc41
Set editor and visual 2023-05-06 21:00:46 -04:00
Nathan McCarty 19aa7f8fc4
Setup wob 2023-05-06 20:54:48 -04:00
Nathan McCarty 4416936e77
Update flake 2023-05-06 20:45:19 -04:00
Nathan McCarty 6c7597b29e
STock sommelier 2023-05-06 20:38:18 -04:00
3 changed files with 62 additions and 34 deletions

View File

@ -27,11 +27,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1682871454, "lastModified": 1683396944,
"narHash": "sha256-NiozRbgHVHg5WXmcQVOABzKGTVgsLPE2k9VTudd+LoY=", "narHash": "sha256-4hDwgwijwsviqwSmtUEZHtrCAoMGLfNpGxtyd+33G/s=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "ff0f8af5d4f511adf3a3252d1c09bfdc1912e8c6", "rev": "1f1b95c4fca959fac6dad0e0a7156bd9f0b2071e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -48,11 +48,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1682835640, "lastModified": 1683354017,
"narHash": "sha256-rAYEOd4nZFLjDlrF9KNlcopPKNVtr1svSXcEValVRMY=", "narHash": "sha256-r0BrHDaljUKyQS5FgA4P9xgK+dGa8L0XDL0vBdriEM8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "006b429d3c493f4c5b1743a94f71ad961c7693ab", "rev": "65fdcbdc0bf35510a013d8a0883b0fa7a4ecd2a8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -156,12 +156,15 @@
} }
}, },
"flake-utils_6": { "flake-utils_6": {
"inputs": {
"systems": "systems_2"
},
"locked": { "locked": {
"lastModified": 1678901627, "lastModified": 1681202837,
"narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=", "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6", "rev": "cfacdce06f30d2b68473a46042957675eebb3401",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -217,11 +220,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1682423965, "lastModified": 1683381134,
"narHash": "sha256-Ry3fRc6eI4EuhreJikD6A8O+PSEqvsQwrub+jERKrAU=", "narHash": "sha256-hHZTG6RfBOozK0zEFHFrnvzxgiY6M1Vn9LtvBjbcT5c=",
"owner": "idris-lang", "owner": "idris-lang",
"repo": "idris2", "repo": "idris2",
"rev": "55efd7dd7b505846d8109b9f72e53827ab2744a7", "rev": "3c9393e5a86fb2999217164d5194ddff749cf29f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -345,11 +348,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1682332772, "lastModified": 1683189539,
"narHash": "sha256-GMoWhChQdeNM2FFqVbEZgBABSdi/+JgSP6v+jUz5b24=", "narHash": "sha256-dqeE6PM1SSNCB9BSBgh/9dJPLn3sf7P4uay8/CymMlQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixos-generators", "repo": "nixos-generators",
"rev": "d774aeedc0685e5871be1e1ee0511900deeb21c2", "rev": "104ca15b0019bf461639050daeaa18e25642ccee",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -360,11 +363,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1682836095, "lastModified": 1683269598,
"narHash": "sha256-PdzpJhuXBz71AgWNWMMYLbB8GMMce6QguhQY/6HOOcc=", "narHash": "sha256-KNsb+nBbB1Fmxd07dt4E0KXMT4YeKJB7gQaA6Xfk+mo=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "e4a21ddcb45ee5f5c85a5d9e9698debf77fb98c3", "rev": "51559e691f1493a26f94f1df1aaf516bb507e78b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -423,11 +426,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1682786779, "lastModified": 1683286087,
"narHash": "sha256-m7QFzPS/CE8hbkbIVK4UStihAQMtczr0vSpOgETOM1g=", "narHash": "sha256-xseOd7W7xwF5GOF2RW8qhjmVGrKoBz+caBlreaNzoeI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b", "rev": "3e313808bd2e0a0669430787fb22e43b2f4bf8bf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -439,11 +442,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1682817260, "lastModified": 1683207485,
"narHash": "sha256-kFMXzKNj4d/0Iqbm5l57rHSLyUeyCLMuvlROZIuuhvk=", "narHash": "sha256-gs+PHt/y/XQB7S8+YyBLAM8LjgYpPZUVFQBwpFSmJro=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "db1e4eeb0f9a9028bcb920e00abbc1409dd3ef36", "rev": "cc45a3f8c98e1c33ca996e3504adefbf660a72d1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -577,11 +580,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1682792082, "lastModified": 1683321754,
"narHash": "sha256-1nuP2rqipsdB8IJ3N5ws3FQm4dX3mKIueIrCUSu1bWw=", "narHash": "sha256-qvyrgObeXw+h+P0VAvaARjRUWn5Ey1ckbs+1El2dc0Y=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "7bcb4c2ef23e151a639ff918fbb8ab9d521eabb9", "rev": "a4966c92829f945d3846eb0ca0e240ac7f7c8c60",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -668,6 +671,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": { "utils": {
"locked": { "locked": {
"lastModified": 1667395993, "lastModified": 1667395993,
@ -722,11 +740,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1681581389, "lastModified": 1682982995,
"narHash": "sha256-+ygySqlQy0ejwE1aOF6i6Tiu63V0jxXik0aLlvmqioo=", "narHash": "sha256-PK0pSY48JkcLDFphafjpLqeTDs0XUqGMHjsiNuEq5s0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NixOS-WSL", "repo": "NixOS-WSL",
"rev": "f3b6f6b04728416c64fc5ef52199fd9b9843c47d", "rev": "c5d7db84c422be515dac8fc26420900c349374e8",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -45,6 +45,11 @@
epkgs.pdf-tools epkgs.pdf-tools
]; ];
}; };
# Set emacs as the editor
home.sessionVariables = {
EDITOR = "emacsclient -c";
VISUAL = "emacsclient -c";
};
})) }))
(lib.mkIf (config.nathan.programs.emacs.enable && pkgs.stdenv.isLinux) { (lib.mkIf (config.nathan.programs.emacs.enable && pkgs.stdenv.isLinux) {
home.packages = with pkgs; home.packages = with pkgs;

View File

@ -7,6 +7,7 @@ in with lib; {
swaylock-command = '' swaylock-command = ''
${swaylock-package}/bin/swaylock --screenshots --grace 30 --indicator --clock --timestr "%-I:%M:%S %p" --datestr "%A %Y-%M-%d" --effect-blur 20x3''; ${swaylock-package}/bin/swaylock --screenshots --grace 30 --indicator --clock --timestr "%-I:%M:%S %p" --datestr "%A %Y-%M-%d" --effect-blur 20x3'';
layman-package = inputs.self.packages.${pkgs.system}.layman; layman-package = inputs.self.packages.${pkgs.system}.layman;
wob-package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.wob;
in { in {
home.packages = with pkgs; [ home.packages = with pkgs; [
# Locking and display management # Locking and display management
@ -49,9 +50,9 @@ in with lib; {
swayest-workstyle swayest-workstyle
font-awesome font-awesome
layman-package layman-package
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.wob wob-package
# For fancy x11 scaling # For fancy x11 scaling
inputs.self.packages.${pkgs.system}.sommelier sommelier
# Polkit # Polkit
polkit_gnome polkit_gnome
]; ];
@ -69,8 +70,12 @@ in with lib; {
extraSessionCommands = '' extraSessionCommands = ''
# Make qt theming work # Make qt theming work
export QT_QPA_PLATFORMTHEME="qt5ct" export QT_QPA_PLATFORMTHEME="qt5ct"
# Prepare for wob
export WOBSOCK $XDG_RUNTIME_DIR/wob.sock
''; '';
config = { config = {
# Startup wob
startup = [{ command = "tail -f $WOBSOCK | wob"; }];
# Setup gaps # Setup gaps
gaps = { gaps = {
smartGaps = true; smartGaps = true;
@ -172,9 +177,9 @@ in with lib; {
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle"; "XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
# Make the volume keys work # Make the volume keys work
"XF86AudioRaiseVolume" = "XF86AudioRaiseVolume" =
"exec pactl set-sink-volume @DEFAULT_SINK@ +5%"; "exec pactl set-sink-volume @DEFAULT_SINK@ +5% && pactl get-sink-volume @DEFAULT_SINK@ | head -n 1| awk '{print substr($5, 1, length($5)-1)}' > $WOBSOCK";
"XF86AudioLowerVolume" = "XF86AudioLowerVolume" =
"exec pactl set-sink-volume @DEFAULT_SINK@ -5%"; "bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pactl get-sink-volume @DEFAULT_SINK@ | head -n 1 | awk '{print substr($5, 1, length($5)-1)}' > $WOBSOCK";
# Play/pause and next song # Play/pause and next song
"XF86AudioPlay" = "exec mpc toggle"; "XF86AudioPlay" = "exec mpc toggle";
"XF86AudioNext" = "exec mpc next"; "XF86AudioNext" = "exec mpc next";