Clean stuff up

This commit is contained in:
Alexander Bantyev 2021-06-07 18:22:59 +03:00
parent 0015dffed4
commit 6113dd66a9
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
12 changed files with 40 additions and 45 deletions

View File

@ -2,6 +2,7 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
inputs.self.nixosProfiles.desktop inputs.self.nixosProfiles.desktop
inputs.self.nixosModules.print-scan
]; ];
deviceSpecific.devInfo = { deviceSpecific.devInfo = {
cpu = { cpu = {

View File

@ -1,4 +1,4 @@
{ modulesPath, lib, inputs, ... }: { { modulesPath, lib, inputs, pkgs, ... }: {
imports = [ imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix" "${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
inputs.self.nixosProfiles.base inputs.self.nixosProfiles.base
@ -6,5 +6,7 @@
networking.wireless.enable = lib.mkForce false; networking.wireless.enable = lib.mkForce false;
services.openssh.permitRootLogin = lib.mkForce "no"; services.openssh.permitRootLogin = lib.mkForce "no";
services.getty.autologinUser = lib.mkForce "balsoft"; services.getty.autologinUser = lib.mkForce "balsoft";
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
boot.supportedFilesystems = lib.mkForce [ "ext4" "vfat" ];
disabledModules = [ "installer/cd-dvd/channel.nix" ]; disabledModules = [ "installer/cd-dvd/channel.nix" ];
} }

View File

@ -22,6 +22,10 @@
cmd = "${pkgs.gnome3.nautilus}/bin/nautilus"; cmd = "${pkgs.gnome3.nautilus}/bin/nautilus";
desktop = "org.gnome.Nautilus"; desktop = "org.gnome.Nautilus";
}; };
matrix = {
cmd = "${pkgs.nheko}/bin/nheko";
desktop = "nheko";
};
monitor = { monitor = {
cmd = "${pkgs.gnome3.gnome-system-monitor}/bin/gnome-system-monitor"; cmd = "${pkgs.gnome3.gnome-system-monitor}/bin/gnome-system-monitor";
desktop = "gnome-system-monitor"; desktop = "gnome-system-monitor";
@ -66,6 +70,7 @@
"x-scheme-handler/about" = browser; "x-scheme-handler/about" = browser;
"x-scheme-handler/unknown" = browser; "x-scheme-handler/unknown" = browser;
"x-scheme-handler/mailto" = mail; "x-scheme-handler/mailto" = mail;
"x-scheme-handler/matrix" = matrix;
"application/pdf" = { desktop = "org.kde.okular"; }; "application/pdf" = { desktop = "org.kde.okular"; };
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" = "application/vnd.openxmlformats-officedocument.wordprocessingml.document" =
text_processor; text_processor;

View File

@ -38,7 +38,6 @@
pass-wayland pass-wayland
gopass gopass
papirus-icon-theme papirus-icon-theme
gnome3.simple-scan
shellcheck shellcheck
proselint proselint
]; ];

View File

@ -35,7 +35,6 @@ builtins.listToAttrs (builtins.map (path: {
./servers/nextcloud.nix ./servers/nextcloud.nix
./servers/nginx.nix ./servers/nginx.nix
./servers/vsftpd.nix ./servers/vsftpd.nix
./services.nix
./themes.nix ./themes.nix
./virtualisation.nix ./virtualisation.nix
./workspace/cursor.nix ./workspace/cursor.nix
@ -50,6 +49,7 @@ builtins.listToAttrs (builtins.map (path: {
./workspace/locale.nix ./workspace/locale.nix
./workspace/mako.nix ./workspace/mako.nix
./workspace/misc.nix ./workspace/misc.nix
./workspace/print-scan.nix
./workspace/simple-osd-daemons.nix ./workspace/simple-osd-daemons.nix
./workspace/ssh.nix ./workspace/ssh.nix
./workspace/sway ./workspace/sway

View File

@ -12,9 +12,13 @@ with deviceSpecific; {
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
hardware.bluetooth.package = pkgs.bluezFull; hardware.bluetooth.package = pkgs.bluezFull;
hardware.sane.enable = true;
services.saned.enable = true; systemd.services.systemd-udev-settle.enable = false;
services.upower = {
enable = true;
};
services.logind.lidSwitchExternalPower = "ignore"; services.logind.lidSwitchExternalPower = "ignore";

View File

@ -1,32 +0,0 @@
{ config, lib, pkgs, inputs, ... }: {
services.acpid.enable = true;
services.earlyoom = {
enable = config.deviceSpecific.devInfo.ram < 16;
freeMemThreshold = 5;
freeSwapThreshold = 100;
};
services.printing = {
enable = true;
drivers = [ pkgs.gutenprint ];
};
programs.mosh.enable = true;
services.fwupd.enable = true;
services.avahi.enable = true;
systemd.services.systemd-udev-settle.enable = false;
services.pcscd.enable = true;
services.blueman.enable = true;
services.upower = {
enable = true;
};
}

View File

@ -1,13 +1,21 @@
{ pkgs, config, ... }: { { pkgs, config, ... }: {
services.pcscd.enable = true;
services.udev.packages = [ pkgs.yubikey-personalization ];
home-manager.users.balsoft = { home-manager.users.balsoft = {
services.gpg-agent = { services.gpg-agent = {
enable = true; enable = true;
enableSshSupport = true; enableSshSupport = true;
pinentryFlavor = "gtk2"; pinentryFlavor = "gtk2";
}; };
programs.gpg = { programs.gpg = {
enable = true; enable = true;
homedir = "${config.home-manager.users.balsoft.xdg.dataHome}/gnupg"; homedir = "${config.home-manager.users.balsoft.xdg.dataHome}/gnupg";
scdaemonSettings = {
disable-ccid = true;
reader-port = "Yubico Yubi";
};
}; };
}; };
} }

View File

@ -25,10 +25,11 @@
programs.direnv.enable = true; programs.direnv.enable = true;
programs.direnv.enableNixDirenvIntegration = true; programs.direnv.enableNixDirenvIntegration = true;
home.stateVersion = "20.09";
}; };
services.avahi.enable = true;
home-manager.users.balsoft.home.stateVersion = "20.09";
system.stateVersion = "18.03"; system.stateVersion = "18.03";

View File

@ -0,0 +1,12 @@
{ pkgs, config, ... }:
{
services.printing = {
enable = true;
drivers = [ pkgs.gutenprint ];
};
hardware.sane.enable = true;
services.saned.enable = true;
environment.systemPackages = [ pkgs.gnome3.simple-scan ];
}

View File

@ -11,12 +11,8 @@
users.users.balsoft.openssh.authorizedKeys.keys = users.users.balsoft.openssh.authorizedKeys.keys =
["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDd2OdcSHUsgezuV+cpFqk9+Svtup6PxIolv1zokVZdqvS8qxLsA/rwYmQgTnuq4/zK/GIxcUCH4OxYlW6Or4M4G7qrDKcLAUrRPWkectqEooWRflZXkfHduMJhzeOAsBdMfYZQ9024GwKr/4yriw2BGa8GbbAnQxiSeTipzvXHoXuRME+/2GsMFAfHFvxzXRG7dNOiLtLaXEjUPUTcw/fffKy55kHtWxMkEvvcdyR53/24fmO3kLVpEuoI+Mp1XFtX3DvRM9ulgfwZUn8/CLhwSLwWX4Xf9iuzVi5vJOJtMOktQj/MwGk4tY/NPe+sIk+nAUKSdVf0y9k9JrJT98S/ comment"]; ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDd2OdcSHUsgezuV+cpFqk9+Svtup6PxIolv1zokVZdqvS8qxLsA/rwYmQgTnuq4/zK/GIxcUCH4OxYlW6Or4M4G7qrDKcLAUrRPWkectqEooWRflZXkfHduMJhzeOAsBdMfYZQ9024GwKr/4yriw2BGa8GbbAnQxiSeTipzvXHoXuRME+/2GsMFAfHFvxzXRG7dNOiLtLaXEjUPUTcw/fffKy55kHtWxMkEvvcdyR53/24fmO3kLVpEuoI+Mp1XFtX3DvRM9ulgfwZUn8/CLhwSLwWX4Xf9iuzVi5vJOJtMOktQj/MwGk4tY/NPe+sIk+nAUKSdVf0y9k9JrJT98S/ comment"];
services.udev.packages = [ pkgs.yubikey-personalization ];
# home-manager.users.balsoft.home.sessionVariables.SSH_AUTH_SOCK = "/run/user/1000/gnupg/S.gpg-agent.ssh"; # home-manager.users.balsoft.home.sessionVariables.SSH_AUTH_SOCK = "/run/user/1000/gnupg/S.gpg-agent.ssh";
home-manager.users.balsoft.home.file.".gnupg/scdaemon.conf".text = "reader-port Yubico Yubi";
home-manager.users.balsoft.programs.ssh = { home-manager.users.balsoft.programs.ssh = {
enable = true; enable = true;
matchBlocks = { matchBlocks = {

View File

@ -6,7 +6,6 @@
ezwg ezwg
hardware hardware
power power
services
themes themes
virtualisation virtualisation