config,
pkgs,
...
-}: {
+}:
+{
services.pipewire = {
enable = true;
audio.enable = true;
systemd.user.services.mpd = {
description = "Music Player Daemon";
- wantedBy = ["default.target"];
+ wantedBy = [ "default.target" ];
serviceConfig = {
ExecStart = "${pkgs.mpd}/bin/mpd --no-daemon /home/andrew/.config/mpd/mpd.conf";
Restart = "on-failure";
inputs.nixpkgs.follows = "nixpkgs";
};
};
- outputs = {
- self,
- nixpkgs,
- hjem,
- my-slstatus,
- my-surf,
- my-dwm,
- my-st,
- my-dmenu,
- nvf,
- } @ inputs: let
- system = "x86_64-linux";
- pkgs = nixpkgs.legacyPackages.${system};
- customNeovim = nvf.lib.neovimConfiguration {
- inherit pkgs;
- modules = [./nvf/nvf.nix];
- };
- in {
- nixosConfigurations.nepsis = nixpkgs.lib.nixosSystem {
- specialArgs = {inherit inputs customNeovim;};
- modules = [
- hjem.nixosModules.default
- ./linux-common.nix
- ./hosts/nepsis/configuration.nix
- ./overlays.nix
- ];
- };
- nixosConfigurations.icon = nixpkgs.lib.nixosSystem {
- modules = [
- hjem.nixosModules.default
- ./linux-common.nix
- ./hosts/icon/configuration.nix
- ./overlays.nix
- ];
- };
+ outputs =
+ {
+ self,
+ nixpkgs,
+ hjem,
+ my-slstatus,
+ my-surf,
+ my-dwm,
+ my-st,
+ my-dmenu,
+ nvf,
+ }@inputs:
+ let
+ system = "x86_64-linux";
+ pkgs = nixpkgs.legacyPackages.${system};
+ customNeovim = nvf.lib.neovimConfiguration {
+ inherit pkgs;
+ modules = [ ./nvf/nvf.nix ];
+ };
+ in
+ {
+ nixosConfigurations.nepsis = nixpkgs.lib.nixosSystem {
+ specialArgs = { inherit inputs customNeovim; };
+ modules = [
+ hjem.nixosModules.default
+ ./linux-common.nix
+ ./hosts/nepsis/configuration.nix
+ ./overlays.nix
+ ];
+ };
+ nixosConfigurations.icon = nixpkgs.lib.nixosSystem {
+ modules = [
+ hjem.nixosModules.default
+ ./linux-common.nix
+ ./hosts/icon/configuration.nix
+ ./overlays.nix
+ ];
+ };
- packages.${system}.my-neovim = customNeovim.neovim;
- };
+ packages.${system}.my-neovim = customNeovim.neovim;
+ };
}
pkgs,
inputs,
...
-}: {
+}:
+{
imports = [
./hardware-configuration.nix
];
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
-{ config, lib, pkgs, modulesPath, ... }:
+{
+ config,
+ lib,
+ pkgs,
+ modulesPath,
+ ...
+}:
{
- imports =
- [ (modulesPath + "/installer/scan/not-detected.nix")
- ];
+ imports = [
+ (modulesPath + "/installer/scan/not-detected.nix")
+ ];
- boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
+ boot.initrd.availableKernelModules = [
+ "ehci_pci"
+ "ahci"
+ "usb_storage"
+ "usbhid"
+ "sd_mod"
+ ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
- fileSystems."/" =
- { device = "/dev/disk/by-uuid/2e969677-74d5-4c22-a708-fa27ba11f2f9";
- fsType = "ext4";
- };
+ fileSystems."/" = {
+ device = "/dev/disk/by-uuid/2e969677-74d5-4c22-a708-fa27ba11f2f9";
+ fsType = "ext4";
+ };
- fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/C246-075A";
- fsType = "vfat";
- options = [ "fmask=0077" "dmask=0077" ];
- };
-
- swapDevices =
- [ { device = "/dev/disk/by-uuid/c562b7b7-2a7e-4416-8223-120956671eae"; }
+ fileSystems."/boot" = {
+ device = "/dev/disk/by-uuid/C246-075A";
+ fsType = "vfat";
+ options = [
+ "fmask=0077"
+ "dmask=0077"
];
+ };
+
+ swapDevices = [
+ { device = "/dev/disk/by-uuid/c562b7b7-2a7e-4416-8223-120956671eae"; }
+ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
pkgs,
inputs,
...
-}: {
+}:
+{
imports = [
./hardware-configuration.nix
./../../lockscreen.nix
./../../x11.nix
./../../hjem.nix
./../../audio.nix
+ ./../../vim.nix
+ ./../../sh.nix
];
networking.hostName = "nepsis";
pkgs,
inputs,
...
-}: {
+}:
+{
imports = [
./sh.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
- boot.supportedFilesystems = ["exfat"];
+ boot.supportedFilesystems = [ "exfat" ];
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;