mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-10 18:22:35 +08:00
..
This commit is contained in:
parent
9a1a5af766
commit
a29306fdf9
6 changed files with 16 additions and 27 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
fonts = {
|
||||
fonts = {
|
||||
enableDefaultFonts = true;
|
||||
|
||||
fonts = with pkgs; [
|
||||
|
|
@ -15,9 +15,6 @@
|
|||
# For fish powerline plugin
|
||||
powerline-fonts
|
||||
cascadia-code
|
||||
|
||||
# Doom emacs
|
||||
emacs-all-the-icons-fonts
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
{ pkgs, inputs, ... }: {
|
||||
nixpkgs.overlays = [ inputs.emacs-overlay.overlay ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
emacsUnstable
|
||||
];
|
||||
}
|
||||
14
features/self-ide.nix
Normal file
14
features/self-ide.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, inputs, ... }: {
|
||||
# For no-prompt Ctrl+Shift+B in VSCode
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ "srid" ];
|
||||
commands = [
|
||||
{
|
||||
command = "/run/current-system/sw/bin/nixos-rebuild";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
configurationNix
|
||||
|
||||
# Features common to all of my machines
|
||||
./features/self-ide.nix
|
||||
./features/current-location.nix
|
||||
./features/passwordstore.nix
|
||||
./features/syncthing.nix
|
||||
|
|
|
|||
1
home.nix
1
home.nix
|
|
@ -117,7 +117,6 @@ in
|
|||
t = "tig";
|
||||
l = "ls --color=always";
|
||||
h = "${himalaya}/bin/himalaya";
|
||||
em = "TERM=xterm-direct emacs -nw";
|
||||
};
|
||||
sessionVariables = { };
|
||||
};
|
||||
|
|
|
|||
|
|
@ -68,31 +68,15 @@
|
|||
gnome3.gnome-tweaks
|
||||
google-chrome
|
||||
htop
|
||||
obsidian
|
||||
psmisc
|
||||
ripgrep
|
||||
signal-desktop
|
||||
vscode
|
||||
opera
|
||||
];
|
||||
|
||||
services = {
|
||||
openssh.enable = true;
|
||||
};
|
||||
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ "srid" ];
|
||||
commands = [
|
||||
{
|
||||
command = "/run/current-system/sw/bin/nixos-rebuild";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue