bit structure changed and voice init
This commit is contained in:
parent
51f6a03060
commit
7c948f74b9
7 changed files with 54 additions and 36 deletions
|
@ -18,9 +18,14 @@
|
||||||
nur = {
|
nur = {
|
||||||
url = "github:nix-community/nur";
|
url = "github:nix-community/nur";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
talon-nix = {
|
||||||
|
url = "github:nix-community/talon-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, nixos-hardware, nur, ... }:
|
outputs = { nixpkgs, home-manager, nixos-hardware, nur, talon-nix, ... }:
|
||||||
let
|
let
|
||||||
x86 = "x86_64-linux";
|
x86 = "x86_64-linux";
|
||||||
common = ./modules/system;
|
common = ./modules/system;
|
||||||
|
@ -38,6 +43,7 @@
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
nur.overlay
|
nur.overlay
|
||||||
|
talon-nix.overlays
|
||||||
];
|
];
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
@ -61,6 +67,7 @@
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
nur.overlay
|
nur.overlay
|
||||||
|
talon-nix.overlays
|
||||||
];
|
];
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
|
5
modules/home/voice/default.nix
Normal file
5
modules/home/voice/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
talon
|
||||||
|
];
|
||||||
|
}
|
18
modules/system/audio.nix
Normal file
18
modules/system/audio.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
# Enable sound with pipewire.
|
||||||
|
sound.enable = true;
|
||||||
|
hardware.pulseaudio.enable = false;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
#jack.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.noisetorch.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
pamixer
|
||||||
|
];
|
||||||
|
}
|
|
@ -4,8 +4,10 @@
|
||||||
|
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
|
./audio.nix
|
||||||
|
./fonts.nix
|
||||||
|
./docker.nix
|
||||||
../gnome
|
../gnome
|
||||||
../virt
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Allow packages from nixpkgs
|
# Allow packages from nixpkgs
|
||||||
|
@ -70,20 +72,8 @@
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = false;
|
services.printing.enable = false;
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Security
|
||||||
sound.enable = true;
|
|
||||||
hardware.pulseaudio.enable = false;
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
#jack.enable = true;
|
|
||||||
};
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
pamixer
|
|
||||||
];
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.twoneis = {
|
users.users.twoneis = {
|
||||||
|
@ -91,19 +81,4 @@
|
||||||
description = "twoneis";
|
description = "twoneis";
|
||||||
extraGroups = [ "networkmanager" "wheel" "surface-control" "docker" ];
|
extraGroups = [ "networkmanager" "wheel" "surface-control" "docker" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure fonts
|
|
||||||
fonts.packages = with pkgs; [
|
|
||||||
alegreya
|
|
||||||
alegreya-sans
|
|
||||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
|
||||||
];
|
|
||||||
|
|
||||||
fonts.fontconfig = {
|
|
||||||
defaultFonts = {
|
|
||||||
serif = [ "Alegreya" ];
|
|
||||||
sansSerif = [ "Alegreya Sans" ];
|
|
||||||
monospace = [ "Fira Code Nerd Font" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
3
modules/system/docker.nix
Normal file
3
modules/system/docker.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{ ... }: {
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
}
|
16
modules/system/fonts.nix
Normal file
16
modules/system/fonts.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
# Configure fonts
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
alegreya
|
||||||
|
alegreya-sans
|
||||||
|
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||||
|
];
|
||||||
|
|
||||||
|
fonts.fontconfig = {
|
||||||
|
defaultFonts = {
|
||||||
|
serif = [ "Alegreya" ];
|
||||||
|
sansSerif = [ "Alegreya Sans" ];
|
||||||
|
monospace = [ "Fira Code Nerd Font" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +0,0 @@
|
||||||
{ pkgs, ... }: {
|
|
||||||
virtualisation.docker.enable = true;
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
distrobox
|
|
||||||
];
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue