updated stuff

This commit is contained in:
2021-05-22 11:35:23 +05:30
parent dadc9192ff
commit 5364156d58
9 changed files with 66 additions and 13 deletions

2
flake.nix Normal file → Executable file
View File

@@ -1,4 +1,4 @@
{
{
inputs = {
stable.url = github:nixos/nixpkgs/nixos-20.09;
nixpkgs.url = github:nixos/nixpkgs/nixos-unstable;

View File

@@ -6,7 +6,18 @@ in
imports = [
./stuff/programs/nvim.nix
./stuff/programs/emacs.nix
./stuff/secret.nix
];
/* age = {
sshKeyPaths = [ "${home}/.ssh/id_ed25519" ];
secrets = {
zshrc = {
file = ./secrets/.zshrc.age;
path = "${home}/.zshrc";
mode = "660";
};
};
};*/
home = {
packages = with pkgs; [
pamixer

9
marisa.nix Normal file → Executable file
View File

@@ -2,12 +2,13 @@
{
imports =
[
./modules/xorg.nix
./modules/pipewire.nix
#<nixpkgs/nixos/modules/profiles/all-hardware.nix>
./marisa/pkgs.nix
./marisa/networking.nix
./marisa/stuff.nix
./satori/hardware.nix
./marisa/hardware.nix
./marisa/boot.nix
./marisa/services.nix
];
boot.loader.grub.enable = false;
system.stateVersion = "21.05";
}

18
marisa/boot.nix Executable file
View File

@@ -0,0 +1,18 @@
{config, ...}:
{
boot = {
initrd.availableKernelModules = [ "xhci_pci" "usb_storage" "usbhid" "uas"];
initrd.kernelModules = [ ];
kernelModules = [ ];
extraModulePackages = [ ];
loader = {
grub.enable = false;
generic-extlinux-compatible.enable= true;
raspberryPi= {
version = 4;
firmwareConfig = "dtparam=sd_poll_once=on";
enable = true;
};
};
};
}

22
marisa/hardware.nix Executable file
View File

@@ -0,0 +1,22 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
fileSystems."/" =
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4";
};
fileSystems."/nix/store" =
{ device = "/nix/store";
fsType = "none";
options = [ "bind" ];
};
swapDevices = [ ];
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
hardware.firmware = with pkgs; [ raspberrypiWirelessFirmware ];
}

3
marisa/networking.nix Normal file → Executable file
View File

@@ -2,7 +2,8 @@
{
networking = {
hostName = "Marisa";
wireless.enable = true;
wireless.enable = false;
wireless.iwd.enable = true;
interfaces = {
wlan0 = {
useDHCP = false;

8
marisa/pkgs.nix Normal file → Executable file
View File

@@ -1,16 +1,12 @@
{lib, config, pkgs, ...}:
{
environment.systemPackages = with pkgs; [
xclip
xorg.xkbcomp
p7zip
git
gnumake
neofetch
kbd
htop
feh
st
dwm
vim
wget
];
@@ -26,9 +22,7 @@
};
gnupg = {
agent = {
enableSSHSupport = true;
enable = true;
pinentryFlavor = "curses";
};
};
};

6
marisa/services.nix Executable file
View File

@@ -0,0 +1,6 @@
{config, ...}:
{
services = {
sshd.enable = true;
};
}

0
marisa/stuff.nix Normal file → Executable file
View File