added host Marisa (haven't tested config yet)
This commit is contained in:
18
marisa/networking.nix
Normal file
18
marisa/networking.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{config, ...}:
|
||||
{
|
||||
networking = {
|
||||
hostName = "Marisa";
|
||||
wireless.enable = true;
|
||||
interfaces = {
|
||||
wlan0 = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [ {
|
||||
prefixLength = 24;
|
||||
address = "192.168.0.159";
|
||||
} ];
|
||||
};
|
||||
};
|
||||
defaultGateway = "192.168.0.1";
|
||||
nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
||||
};
|
||||
}
|
42
marisa/pkgs.nix
Normal file
42
marisa/pkgs.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{lib, config, pkgs, ...}:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
xclip
|
||||
xorg.xkbcomp
|
||||
p7zip
|
||||
git
|
||||
gnumake
|
||||
neofetch
|
||||
htop
|
||||
feh
|
||||
st
|
||||
dwm
|
||||
vim
|
||||
wget
|
||||
];
|
||||
programs = {
|
||||
zsh = {
|
||||
enable = true;
|
||||
promptInit = "PROMPT='%F{cyan}%~ %F{blue}>%f '\nRPROMPT='%F{cyan}%n%f@%F{red}%m'";
|
||||
histSize = 12000;
|
||||
enableCompletion = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
autosuggestions. enable = true;
|
||||
ohMyZsh.enable = true;
|
||||
};
|
||||
gnupg = {
|
||||
agent = {
|
||||
enableSSHSupport = true;
|
||||
enable = true;
|
||||
pinentryFlavor = "curses";
|
||||
};
|
||||
};
|
||||
};
|
||||
nix = {
|
||||
package = pkgs.nixUnstable;
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command ca-references flakes
|
||||
'';
|
||||
trustedUsers = [ "root" "ottan" ];
|
||||
};
|
||||
}
|
31
marisa/stuff.nix
Normal file
31
marisa/stuff.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
time.timeZone = "Asia/Kolkata";
|
||||
environment = {
|
||||
sessionVariables = {
|
||||
EDITOR = "vim";
|
||||
};
|
||||
};
|
||||
security = {
|
||||
sudo.enable = false;
|
||||
doas = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{
|
||||
users = [ "ottan" ];
|
||||
keepEnv = true;
|
||||
persist = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
fonts.fonts = with pkgs; [
|
||||
fira-mono
|
||||
];
|
||||
users.users.ottan = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
home = "/home/ottan";
|
||||
extraGroups = [ "wheel" ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user