Skip to content

Commit

Permalink
Truncate unnecessary line
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiyq Widianto committed Sep 18, 2020
1 parent 89e6340 commit 47665df
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 132 deletions.
70 changes: 1 addition & 69 deletions modules/base.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
{ config, lib, pkgs, ... }:

{
# Boot
#boot = {
# loader = {
# efi.canTouchEfiVariables = true;
# systemd-boot = {
# enable = true;
# editor = false;
# };
# timeout = lib.mkDefault 1;
# };
# tmpOnTmpfs = true;
#};

# Grub
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only

# Networking
networking = {
hostName = "nixos";
Expand All @@ -39,7 +21,6 @@
keyMap = "uk";
};

time.timeZone = "Asia/Jakarta";

# Power management
services.tlp.enable = true;
Expand All @@ -51,6 +32,7 @@
services.logind.lidSwitch = "suspend";

# Fn keys
programs.light.enable = true;
services.actkbd = {
enable = true;
bindings = [
Expand Down Expand Up @@ -89,54 +71,4 @@
};
};

# Fonts
fonts = {
enableFontDir = true;
enableGhostscriptFonts = true;
fonts = with pkgs; [
ubuntu_font_family
dejavu_fonts
fira-code fira-code-symbols
noto-fonts noto-fonts-cjk
font-awesome-ttf
];
fontconfig.defaultFonts = {
monospace = [ "Fira Code" ];
sansSerif = [ "Ubuntu" ];
};
};

# Nix
nixpkgs.config.allowUnfree = true;
nix = {
allowedUsers = [ "@wheel" ];
trustedUsers = [ "root" "@wheel" ];
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};

# Users
users.users = {
rafiyq = {
isNormalUser = true;
uid = 1000;
shell = "/run/current-system/sw/bin/zsh";
group = "users";
extraGroups = [
"wheel" "disk" "audio" "video" "input" "kvm" "render"
];
};
};

# System Packages
programs = {
light.enable = true;
dconf.enable = true;
};

environment.systemPackages = with pkgs; [];

system.stateVersion = "20.03"; # Did you read the comment?
}
23 changes: 0 additions & 23 deletions modules/boot.nix

This file was deleted.

7 changes: 0 additions & 7 deletions modules/configuration-def.nix

This file was deleted.

27 changes: 12 additions & 15 deletions modules/fonts.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, lib, pkgs, inputs, ... }: {

console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
fonts.enableFontDir = true;
fonts.enableGhostscriptFonts = true;
fonts.fontconfig.dpi = 192;
fonts.fonts = with pkgs;
[
# corefonts # Micrsoft free fonts
# iosevka
# open-sans # need for telegram app
fonts = {
enableDefaultFonts = true;
enableFontDir = true;
enableGhostscriptFonts = true;
fonts = with pkgs; [
ubuntu_font_family
fira-code fira-code-symbols
];
fonts.fontconfig.defaultFonts.monospace = [ "Iosevka" ];
fonts.enableDefaultFonts = true;
fontconfig.defaultFonts = {
monospace = [ "Fira Code" ];
sansSerif = [ "Ubuntu" ];
};
};

}
4 changes: 0 additions & 4 deletions modules/sway.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, lib, pkgs, inputs, ... }: {

programs.sway = {
Expand Down
20 changes: 13 additions & 7 deletions modules/users.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, lib, pkgs, inputs, ... }: {

users.extraUsers.rafiyq = {
users.users.rafiyq = {
isNormalUser = true;
uid = 1000;
extraGroups =
[ "users" "wheel" "input" "audio" "networkmanager" "docker" "sway" ];
group = "users";
extraGroups = [
"wheel"
"disk"
"networkmanager"
"audio"
"video"
"input"
"sway"
"kvm"
"render"
];
};

}
7 changes: 0 additions & 7 deletions modules/xserver.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, lib, pkgs, inputs, ... }: {

services.xserver = {

# resolutions = [{ x = 1600; y = 900; }];
enable = true;

displayManager.lightdm.enable = true;
displayManager.lightdm.autoLogin = {
enable = true;
Expand Down

0 comments on commit 47665df

Please sign in to comment.