Initial commit
This commit is contained in:
commit
c3fe1114b3
20 changed files with 885 additions and 0 deletions
89
config/config.nix
Normal file
89
config/config.nix
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
{ config, pkgs, nur,
|
||||
nixpkgs, # The flake's input version of nixpkgs
|
||||
... }:
|
||||
let hashedPassword = "$6$lokU/kizIJ/HwEI8$N6c80K0.VHkFBaOMcS8Bc1Fz5bx8qqTRH8brf0.duTOkf4Mja90bLwki8IVCBVpHnj7WqEkF4.CtZA6WczeqQ1";
|
||||
in {
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
nix.package = pkgs.nixFlakes;
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
restrict-eval = false
|
||||
'';
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.overlays = [ nur.overlay ];
|
||||
|
||||
# Pin nixpkgs to the flake input
|
||||
nix.registry.nixpkgs.flake = nixpkgs;
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "kiana-pc"; # Define your hostname.
|
||||
networking.wireless.enable = true;
|
||||
networking.wireless.networks = {
|
||||
"NETGEAR97".psk = "pastelcello694";
|
||||
};
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
# services.printing.enable = true;
|
||||
|
||||
# Enable sound.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
|
||||
hardware.opengl.enable = true;
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users.kiana = {
|
||||
isNormalUser = true;
|
||||
description = "Kiana Sheibani";
|
||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
shell = pkgs.fish;
|
||||
inherit hashedPassword;
|
||||
};
|
||||
users.users.root = {
|
||||
inherit hashedPassword;
|
||||
};
|
||||
|
||||
|
||||
fonts = {
|
||||
enableDefaultFonts = true;
|
||||
fonts = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
ubuntu_font_family
|
||||
(nerdfonts.override { fonts = [ "FiraCode" "Ubuntu" "UbuntuMono" ]; })
|
||||
meslo-lgs-nf
|
||||
];
|
||||
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
serif = [ "Noto Serif" ];
|
||||
sansSerif = [ "Noto Sans" ];
|
||||
monospace = [ "Meslo Nerd Font" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.sessionVariables.GTK_THEME = "Adwaita:dark";
|
||||
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "21.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
8
config/default.nix
Normal file
8
config/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./config.nix
|
||||
./packages.nix
|
||||
./login.nix
|
||||
];
|
||||
}
|
||||
29
config/hardware-configuration.nix
Normal file
29
config/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# 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, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/c8abae41-67ba-47b0-ab99-df5c152b4866";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/C7D1-82A6";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
25
config/login.nix
Normal file
25
config/login.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ config, pkgs, username, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Greeter
|
||||
greetd.gtkgreet
|
||||
# Window manager used to display the greeter
|
||||
cage
|
||||
];
|
||||
|
||||
services.greetd.enable = true;
|
||||
services.greetd.settings = {
|
||||
default_session = {
|
||||
command = "cage -s -- gtkgreet";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
|
||||
environment.etc = {
|
||||
"greetd/environments".text = ''
|
||||
sway
|
||||
fish
|
||||
bash
|
||||
'';
|
||||
};
|
||||
}
|
||||
28
config/packages.nix
Normal file
28
config/packages.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
ffmpeg
|
||||
jq
|
||||
git
|
||||
wget
|
||||
libnotify
|
||||
ripgrep
|
||||
unzip
|
||||
tldr
|
||||
pandoc
|
||||
pamixer
|
||||
screenfetch
|
||||
|
||||
gcc
|
||||
rustup
|
||||
idris2
|
||||
|
||||
wob
|
||||
grim
|
||||
slurp
|
||||
imv
|
||||
];
|
||||
|
||||
programs.sway.enable = true;
|
||||
programs.sway.extraPackages = [];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue