};
};
-# services.mpd = {
-# enable = true;
-# musicDirectory = "${config.home.homeDirectory}/Music";
-# playlistDirectory = "${config.home.homeDirectory}/.playlists";
-# # mixer_type "none" # maybe mess around with this some time, it will turn off volume in rmpc, but apparently it will make the sound more quality for music
-# extraConfig = ''
-# auto_update "yes"
-# audio_output {
-# type "pulse"
-# name "PipeWire Output"
-# }
-# '';
-# };
-
+ # services.mpd = {
+ # enable = true;
+ # musicDirectory = "${config.home.homeDirectory}/Music";
+ # playlistDirectory = "${config.home.homeDirectory}/.playlists";
+ # # mixer_type "none" # maybe mess around with this some time, it will turn off volume in rmpc, but apparently it will make the sound more quality for music
+ # extraConfig = ''
+ # auto_update "yes"
+ # audio_output {
+ # type "pulse"
+ # name "PipeWire Output"
+ # }
+ # '';
+ # };
}
{
imports = [
./hardware-configuration.nix
- ./lockscreen.nix
-./x11.nix
-./hjem.nix
-./audio.nix
+ ./lockscreen.nix
+ ./x11.nix
+ ./hjem.nix
+ ./audio.nix
];
# Bootloader.
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
- (lib.lowPrio pkgs.vim) # Lower Vim's priority
- (pkgs.writeShellApplication {
- name = "vi";
- runtimeInputs = [ pkgs.nvi ];
- text = ''
- exec ${pkgs.nvi}/bin/vi "$@"
- '';
- })
+ (lib.lowPrio pkgs.vim) # Lower Vim's priority
+ (pkgs.writeShellApplication {
+ name = "vi";
+ runtimeInputs = [ pkgs.nvi ];
+ text = ''
+ exec ${pkgs.nvi}/bin/vi "$@"
+ '';
+ })
neovim
wget
git
xdotool
];
-
-
programs.git = {
enable = true;
config = {
};
};
-
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
# programs here, NOT in environment.systemPackages
];
-
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# Services
services.openssh.enable = true;
-
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
}@inputs:
{
nixosConfigurations.nepsis = nixpkgs.lib.nixosSystem {
- specialArgs = {inherit inputs;};
+ specialArgs = { inherit inputs; };
modules = [
hjem.nixosModules.default
./configuration.nix
- ./overlays.nix
+ ./overlays.nix
];
};
};
directory = "/home/andrew";
files = {
- ".config/sxhkd/sxhkdrc".text = builtins.readFile (pkgs.replaceVars ./dotfiles/sxhkdrc {
- dmenu = pkgs.dmenu;
- st = pkgs.st;
- librewolf = pkgs.librewolf;
- pamixer = pkgs.pamixer;
- maim = pkgs.maim;
- xdotool = pkgs.xdotool;
- xclip = pkgs.xclip;
- lockscreen = pkgs.lock-screen;
-});
+ ".config/sxhkd/sxhkdrc".text = builtins.readFile (
+ pkgs.replaceVars ./dotfiles/sxhkdrc {
+ dmenu = pkgs.dmenu;
+ st = pkgs.st;
+ librewolf = pkgs.librewolf;
+ pamixer = pkgs.pamixer;
+ maim = pkgs.maim;
+ xdotool = pkgs.xdotool;
+ xclip = pkgs.xclip;
+ lockscreen = pkgs.lock-screen;
+ }
+ );
};
packages = with pkgs; [
discord
-lazygit
+ lazygit
];
};
-{ pkgs } :
+{ pkgs }:
pkgs.writeShellApplication {
- name = "lock-screen";
- runtimeInputs = [ pkgs.betterlockscreen ];
- text = ''
- if [ ! -f "$HOME/.cache/betterlockscreen/current/lock_dimblur.png" ]; then
- betterlockscreen -u "$HOME/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg" --fx dimblur
- fi
+ name = "lock-screen";
+ runtimeInputs = [ pkgs.betterlockscreen ];
+ text = ''
+ if [ ! -f "$HOME/.cache/betterlockscreen/current/lock_dimblur.png" ]; then
+ betterlockscreen -u "$HOME/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg" --fx dimblur
+ fi
- betterlockscreen -l dimblur
- '';
+ betterlockscreen -l dimblur
+ '';
}
# $ nix search wget
environment.systemPackages = with pkgs; [
betterlockscreen
- lock-screen
+ lock-screen
];
programs.i3lock = {
-{pkgs, ...} : {
-nixpkgs.overlays = [
-(final: prev: {
-lock-screen = import ./lock-screen.nix {pkgs= prev;};
-})
-];
+{ pkgs, ... }:
+{
+ nixpkgs.overlays = [
+ (final: prev: {
+ lock-screen = import ./lock-screen.nix { pkgs = prev; };
+ })
+ ];
}
windowManager.dwm.enable = true;
desktopManager.runXdgAutostartIfNone = false;
displayManager = {
- setupCommands = '''';
+ setupCommands = "";
sessionCommands = ''
#!/bin/sh
${pkgs.xrandr}/bin/xrandr --output DP-3 --primary --mode 2560x1440 --rate 180 --pos 0x0 --output DP-2 --mode 1920x1080 --rate 160 --pos 2560x360