split system packages into a new folder

This commit is contained in:
zoe 2022-10-24 17:04:57 +02:00
parent 078353eede
commit bdaffaddee
4 changed files with 29 additions and 19 deletions

View File

@ -9,6 +9,7 @@
[
# Include the results of the hardware scan.
./hardware-configuration.nix
./packages.nix
<home-manager/nixos>
];
@ -101,28 +102,11 @@
];
};
home-manager.users.zoe = { pkgs, ... }: {
home.packages = [ pkgs.neofetch ];
programs.bash.enable = true;
};
home-manager.users.zoe = { pkgs, ... }: { };
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
nixpkgs-fmt
curl
qtile
rofi
fish
git
tldr
wireguard-tools
networkmanagerapplet
vscodium
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.

10
nvim/settings.lua Normal file
View File

@ -0,0 +1,10 @@
local opt = vim.opt
local g = vim.g
-- allow mouse
opt.mouse = "a"
-- colors
opt.termguicolors = true
opt.cursorline = true
opt.number = true

16
packages.nix Normal file
View File

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
nixpkgs-fmt
curl
qtile
rofi
fish
git
tldr
wireguard-tools
networkmanagerapplet
vscodium
];
}

View File

@ -3,5 +3,5 @@
git pull
nixpkgs-fmt *.nix
cp -r /etc/nixos/ ./backup
sudo cp ./configuration.nix /etc/nixos/configuration.nix
sudo cp -r ./configuration.nix ./nvim/ ./packages.nix /etc/nixos/
sudo nixos-rebuild switch --upgrade