Changes
- use niv, for real this time - support ARM builds - install ADB, rofi, nmap, fping - reduplicate and remove limit on bash history - change prompt color and remove extra newline - replace chromium with ungoogled-chromium - install obs-studio, zoom-us - Add desktop notifications with dunst, libnotify - bump nixpkgs
This commit is contained in:
parent
693a5ee413
commit
7dc43ff3c8
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
sources ? import ./nix/sources.nix,
|
pkgs,
|
||||||
pkgs ? import sources.nixpkgs {},
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -10,11 +9,23 @@
|
|||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Use nixpkgs from niv
|
||||||
|
nixpkgs.pkgs = let
|
||||||
|
sources = import ./nix/sources.nix;
|
||||||
|
in import sources.nixpkgs {
|
||||||
|
config = config.nixpkgs.config // {
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./desktop-configuration.nix
|
./desktop-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Support ARM builds
|
||||||
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
@ -38,12 +49,14 @@
|
|||||||
users.users = {
|
users.users = {
|
||||||
illustris = {
|
illustris = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "docker" "tty" ]; # Enable ‘sudo’ for the user.
|
extraGroups = [ "wheel" "docker" "tty" "adb" ];
|
||||||
openssh.authorizedKeys.keyFiles = [ ./secrets/ssh_pubkeys ];
|
openssh.authorizedKeys.keyFiles = [ ./secrets/ssh_pubkeys ];
|
||||||
};
|
};
|
||||||
root.openssh.authorizedKeys.keyFiles = [ ./secrets/ssh_pubkeys ];
|
root.openssh.authorizedKeys.keyFiles = [ ./secrets/ssh_pubkeys ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.adb.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git
|
git
|
||||||
tmux
|
tmux
|
||||||
@ -77,12 +90,37 @@
|
|||||||
nixpkgs-review
|
nixpkgs-review
|
||||||
(pkgs.callPackage /home/illustris/src/percol/percol {})
|
(pkgs.callPackage /home/illustris/src/percol/percol {})
|
||||||
niv
|
niv
|
||||||
|
(
|
||||||
|
rofi.override { plugins = [
|
||||||
|
rofi-calc
|
||||||
|
rofi-pass
|
||||||
|
rofi-systemd
|
||||||
|
]; }
|
||||||
|
)
|
||||||
|
nmap
|
||||||
|
fping
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.gnupg.agent = {
|
programs.gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.bash = {
|
||||||
|
interactiveShellInit = ''
|
||||||
|
export HISTSIZE=-1 HISTFILESIZE=-1 HISTCONTROL=ignoreboth:erasedups;
|
||||||
|
'';
|
||||||
|
shellAliases = {
|
||||||
|
genpass = "cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 20 | head -n 2";
|
||||||
|
};
|
||||||
|
promptInit = ''
|
||||||
|
if [ "$TERM" != "dumb" -o -n "$INSIDE_EMACS" ]; then
|
||||||
|
PROMPT_COLOR="1;31m"
|
||||||
|
let $UID && PROMPT_COLOR="1;36m"
|
||||||
|
PS1="\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] "
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
openssh = {
|
openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@ -31,8 +31,26 @@
|
|||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
programs.chromium = {
|
||||||
|
enable = true;
|
||||||
|
extraOpts = {
|
||||||
|
"PasswordManagerEnabled" = false;
|
||||||
|
"ClearSiteDataOnExit" = false;
|
||||||
|
};
|
||||||
|
extensions = [
|
||||||
|
"gcbommkclmclpchllfjekcdonpmejbdp" # https everywhere
|
||||||
|
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
|
||||||
|
"iipjdmnoigaobkamfhnojmglcdbnfaaf" # Clutter Free
|
||||||
|
"bdakmnplckeopfghnlpocafcepegjeap" # RescueTime
|
||||||
|
"gppongmhjkpfnbhagpmjfkannfbllamg" # wappalyzer
|
||||||
|
"lcbjdhceifofjlpecfpeimnnphbcjgnc" # xBrowserSync
|
||||||
|
"chlffgpmiacpedhhbkiomidkjlcfhogd" # pushbullet
|
||||||
|
];
|
||||||
|
homepageLocation = "https://duckduckgo.com/";
|
||||||
|
defaultSearchProviderSuggestURL = "https://duckduckgo.com/?q={searchTerms}&kp=-1&kac=1";
|
||||||
|
defaultSearchProviderSearchURL = "https://duckduckgo.com/?q=search&kp=-1";
|
||||||
|
};
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
chromium
|
|
||||||
st
|
st
|
||||||
dmenu
|
dmenu
|
||||||
mpv
|
mpv
|
||||||
@ -57,6 +75,11 @@
|
|||||||
blender
|
blender
|
||||||
wireshark
|
wireshark
|
||||||
flutter
|
flutter
|
||||||
|
obs-studio
|
||||||
|
dunst
|
||||||
|
libnotify
|
||||||
|
ungoogled-chromium
|
||||||
|
zoom-us
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.pulseaudio = {
|
hardware.pulseaudio = {
|
||||||
|
|||||||
@ -17,10 +17,10 @@
|
|||||||
"homepage": "",
|
"homepage": "",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f5e8bdd07d1afaabf6b37afc5497b1e498b8046f",
|
"rev": "ad47284f8b01f587e24a4f14e0f93126d8ebecda",
|
||||||
"sha256": "1fmwkb2wjfrpx8fis4x457vslam0x8vqlpfwqii6p9vm33dyxhzk",
|
"sha256": "00m8zhb9lf1shkaf572imsmxq20fmq397jcydx3c651fi28i6rgs",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/f5e8bdd07d1afaabf6b37afc5497b1e498b8046f.tar.gz",
|
"url": "https://github.com/NixOS/nixpkgs/archive/ad47284f8b01f587e24a4f14e0f93126d8ebecda.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user