Compare commits
2 commits
cf626fef85
...
cb7105e54b
Author | SHA1 | Date | |
---|---|---|---|
cb7105e54b | |||
cda51d2990 |
4 changed files with 45 additions and 6 deletions
2
hive.nix
2
hive.nix
|
@ -3,7 +3,7 @@ let
|
|||
inherit (inputs) nixpkgs nixpkgs-unstable;
|
||||
inherit (self) outputs;
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; };
|
||||
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; config.allowUnfree = true; };
|
||||
in
|
||||
{
|
||||
flake = rec {
|
||||
|
|
|
@ -12,9 +12,6 @@
|
|||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable sound.
|
||||
# sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
|
||||
home-manager.users.sammy.programs.ssh.includes = [
|
||||
"./famedly-config"
|
||||
|
@ -26,6 +23,12 @@
|
|||
}
|
||||
];
|
||||
|
||||
fileSystems."/mnt/Media" = {
|
||||
device = "192.168.0.3:/mnt/user/Media";
|
||||
fsType = "nfs";
|
||||
options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" "noatime" ]; # disconnects after 10 minutes (i.e. 600 seconds)
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
|
||||
# Famedly compliance foo - stolen from evelyn :3
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, pkgs-unstable, ... }: {
|
||||
|
||||
imports = [
|
||||
./sway
|
||||
|
@ -9,8 +9,23 @@
|
|||
users.users.sammy.packages = with pkgs; [
|
||||
telegram-desktop
|
||||
mpv
|
||||
thunderbird
|
||||
pkgs-unstable.obsidian
|
||||
bluez-tools
|
||||
blueman
|
||||
pavucontrol
|
||||
];
|
||||
|
||||
home-manager.users.sammy.services.nextcloud-client.enable = true;
|
||||
|
||||
services.rpcbind.enable = true; # needed for NFS
|
||||
|
||||
# Enable sound.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
services.logind.lidSwitch = "suspend-then-hibernate";
|
||||
services.logind.powerKey = "hibernate";
|
||||
services.logind.powerKeyLongPress = "poweroff";
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
];
|
||||
timeouts = [
|
||||
{ timeout = 300; command = lockCommand; }
|
||||
{ timeout = 1800; command = "systemctl hybrid-sleep"; }
|
||||
];
|
||||
};
|
||||
wayland.windowManager.sway =
|
||||
|
@ -70,9 +71,15 @@
|
|||
hideEdgeBorders = "both";
|
||||
};
|
||||
gaps.inner = 10;
|
||||
gaps.smartGaps = true;
|
||||
|
||||
output = {
|
||||
"*" = { };
|
||||
"eDP-1" = {
|
||||
position = "0 1080";
|
||||
};
|
||||
"DP-6" = {
|
||||
position = "0 0";
|
||||
};
|
||||
};
|
||||
|
||||
input = {
|
||||
|
@ -176,6 +183,11 @@
|
|||
"${cfg.config.modifier}+9" = "workspace 9";
|
||||
"${cfg.config.modifier}+0" = "workspace 10";
|
||||
|
||||
"${cfg.config.modifier}+Alt+Right" = "workspace next";
|
||||
"${cfg.config.modifier}+Alt+Left" = "workspace prev";
|
||||
"${cfg.config.modifier}+Alt+Up" = "move workspace to output up";
|
||||
"${cfg.config.modifier}+Alt+Down" = "move workspace to output down";
|
||||
|
||||
"${cfg.config.modifier}+Shift+1" = "move container to workspace 1";
|
||||
"${cfg.config.modifier}+Shift+2" = "move container to workspace 2";
|
||||
"${cfg.config.modifier}+Shift+3" = "move container to workspace 3";
|
||||
|
@ -187,6 +199,9 @@
|
|||
"${cfg.config.modifier}+Shift+9" = "move container to workspace 9";
|
||||
"${cfg.config.modifier}+Shift+0" = "move container to workspace 10";
|
||||
|
||||
"${cfg.config.modifier}+Alt+N" = "move container to workspace next";
|
||||
"${cfg.config.modifier}+Alt+P" = "move container to workspace prev";
|
||||
|
||||
"XF86AudioRaiseVolume" = "exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -i 5";
|
||||
"XF86AudioLowerVolume" = "exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -d 5";
|
||||
"XF86AudioMute" = "exec --no-startup-id ${pkgs.pamixer}/bin/pamixer -t";
|
||||
|
@ -196,6 +211,12 @@
|
|||
|
||||
"${cfg.config.modifier}+r" = "mode resize";
|
||||
};
|
||||
|
||||
startup = [{
|
||||
command = "systemctl --user restart nextcloud-client";
|
||||
always = true;
|
||||
}];
|
||||
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
|
|
Loading…
Reference in a new issue